-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Firefox doesn't offer the Permissions API in the devtools #680
Comments
It seems that But:
If checking for permissions is required and it can be changed to a simple .contain, what do you think about lifting permissions.contains into the background? |
It requests permissions at save time so that the extension will work on new tabs immediately The context here is that the user might have added bricks that require additional permissions (e.g., to make network calls, notifications), etc. Otherwise the user has to go into the Active/Installed extensions page of the extension and click "Grant Permissions" on the extension
In my tests, the code was working as-is. I don't recall Chrome having issues tracing trusted events for permissions requests
I think it makes sense to lift the permissions check to the background. If Firefox can't support requesting permissions from the dev tools, we should show the Firefox users a modal that they need to go to the extension options page to finish granting permissions (and provide an option to open the options page) I can help with the React part of the modal |
PixieBrix already have an affordance for this. You can test it by creating an extension that requires permissions, and then revoking the permissions from the Setting page
I don't think this is necessary if: 1) we have the grant permissions button on the main options page, 2) IIRC, when you click "Update Brick" it automatically does the permissions request/check
Which screen/interface are you referring to on this?
I think there needs to be some indication that the brick won't show up in other tabs once you save it. We can't expect users to know they need to open the options page. Is this what you were referring to with 'Pointing the "Grant permissions" button to this tab in the options'? |
In the brick editor
So can we point that Grant Permission button to that page, if it's easily linkable-to (e.g. if there are a lot of bricks, will it be noticeable in the list?)
This is the indication:
|
There's only one problem with the last line in my previous comment: Active Bricks will not appear until the brick has been saved, so it's not a complete solution to the problem. We might still need a custom UI as you initially suggested, and I still suggest it to be part of the brick options UI: This would double as a view that lists a brick’s permissions to the user, which I think is your intention at some point:
Originally posted by @twschiller in #726 (comment) |
Yes, I think we will want to add the permissions listing tab. However, I will probably put the permissions button more prominently up by Update Brick. The "Export Blueprint" button we'll likely be moving, e.g., to a dropdown, as its not commonly used
I forgot about that case - the "Grant Permissions" button in the effect/options section is if we need to make network requests to fetch the available configuration options (for editing) I need to think this over, but we would probably want to open a new options tab that has a button the user can click to grant permissions to the particular domain
Due to what you mentioned (i.e., the brick won't be saved yet necessarily at the time of the request), I suspect we may just want to open the options page to a "request permissions" page where the permissions to request are passed along via URL params. That UX would also be a solution for granting permissions for the purpose of configuring the brick @fregante If the approach of a PixieBrix permissions request page with a URL param for the requested permissions seems good to you, I will go ahead and create that page so you can incorporate it into the flow |
Yes that sounds like a good idea. Do you think it makes sense to show this transitional piece of UI in the Options page though? Or would it make more sense as a standalone page? Perhaps even something that can be opened in a popup similarly to what I had originally suggested for webext-alert, except with local HTML. |
Co-authored-by: Todd Schiller <[email protected]>
I finally opened a bug report for this https://bugzilla.mozilla.org/show_bug.cgi?id=1493396 |
It looks like the issue is also set for discussion in w3c this week: w3c/webextensions#40 |
Somewhat related to https://bugzilla.mozilla.org/show_bug.cgi?id=1493396 (sidebar, not fixed) and refined-github/refined-github#840 (comment) (preferences page, fixed)
Possible solutions:
<PermissionPane>
, without having to go through the options page.The text was updated successfully, but these errors were encountered: