-
Notifications
You must be signed in to change notification settings - Fork 56
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
Proposal: add optional_host_permissions
#119
Comments
Based on meeting 2021-10-28 (from meeting notes): Issue has also been added to chromiums issue tracker: |
When I asked for missing |
Can totally imagine that. As Simeon mentioned in meeting 2021-10-28, they expected all of them to be optional. Yet not every change in Chrome has arrived as soon as they expected. So now they are more open to it. Even if in the future, some browsers consider "host_permissions" as being optional, it can still be a great addition for the reasons stated in my original post. |
Chrome is still considering whether or not we will support optional_host_permissions. This capability is not on our immediate roadmap, but we do not have strong objections to the proposal. |
I think there are two different kinds of "optional" permissions: In MV2, (A) would be listed in But we don't have a place for (B), since you don't want the browser to flag whenever user is on That said, I'm not sure we need yet another manifest key, we can re-use the existing |
Seems one of the reasons Google went for In addition, using In addition, if we introduce |
I'm in favor of supporting |
See also: https://groups.google.com/a/chromium.org/g/chromium-extensions/c/EnUmtHWOI9o
|
This issue has been mentioned in Publish minutes of 2022-02-03 meeting. Apple Safari and Mozilla Firefox are in favor. Google intend to support this, will work on it soon. |
Seems that optional_host_permissions is now implemented: https://bugs.chromium.org/p/chromium/issues/detail?id=1265064 |
Support for It is also in Safari 15.5 which is currently being tested in the iOS 15.5 betas and macOS 12.4 betas. |
The Firefox side of this feature is tracked at https://bugzilla.mozilla.org/show_bug.cgi?id=1766026 |
Looking forward to it being released to stable versions. I have one question: I would imagine that for older versions of Chrome, if they install the latest version of the extension with |
@webextensions You could add a "minimum_chrome_version" field in manifest.json, e.g. |
Does chrome 102 support optional_host_permissions? |
@guyschlider Yes, it supports. See link1 and link2. |
Support for |
As noted in today's meeting, Firefox currently supports optional host permissions via the |
As noted in the minutes and at https://bugzilla.mozilla.org/show_bug.cgi?id=1766026#c1, the plan is for Firefox to drop host permissions from optional_permissions and relying on optional_host_permissions instead. |
@Rob--W Considering this has been implemented by both Chrome and Safari, and since it is already clear Firefox wants to support this. Should we close the issue, or create |
We don't have a "planned" labels. The supportive label is already used for this. There is "neutral" and "supportive", I'm not sure how much "planned" would add to that. There is cross-browser consensus on this, so I suppose that the "standardization" part of it is done and the ticket can be closed. |
@Rob--W The reason I brought it up is the fact there is quite a big gap between "supportive" and "implemented". Thanks for closing! |
There is not really that much between "supportive" and "implemented". An issue being filed on the issue tracker of a browser does not mean that much. When engineering work is planned and/or patches exist, then it is close to "implemented" already, at which point it is not really necessary to have another status label. A separate status label would just be more administrative overhead. |
In mv3, the idea is to only have
host_permissions
and make them optional by default. This prevents vendors from deciding whether or not somehost_permissions
should be requested upon installation or only later in the process. And also prevents extension authors from telling the stores, browsers and users whathost_permissions
are needed for the core functionality and which ones areoptional_host_permissions
.The proposal here is to add a new property in addition to
host_permissions
namedoptional_host_permissions
allowing extension authors to define which host permissions are optional and which are mandatory for the core functionality. This would then allow some vendors to request the required host permissions upon installation, and allow other vendors to also treat the requiredhost_permissions
as being optional.For example, Apple currently requests host permissions just after installation from the user. Yet the developer may not want to ask all host permissions right away upon installation.
One of the reasons for this proposal is the fact not all extensions act on websites / tabs, but need host permissions for functionality provided separately in an extension popup completely independent from browser tabs.
An issue in the chromium issue tracker can be found here:
https://bugs.chromium.org/p/chromium/issues/detail?id=1265064
Status
Apple Safari: in favor, not yet implemented.
Mozilla Firefox: in favor, not yet implemented.
Google Chrome: intend to support this, will work on it soon.
The text was updated successfully, but these errors were encountered: