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
MV3 feature release clarification #19026
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Notes are actually formatted as HTML rather than Markdown, so we'll need to use <a href=""></a>
rather than []()
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Github does not offer the ability to comment on non-changed lines, so here are more pieces of feedback:
- Drop mentions of "MV3 preview" from the BCD. The pre-release testing phase is not relevant to devs, especially because MV3 support has been enabled by default in Firefox 109+.
- manifest/action.js: should refer to the action MDN articles instead of the browser_action one.
- Not strictly part of this PR, but it would also be nice tot interlink each other (action / browser_action at "See also" in mdn/content )
- manifest/content_security_policy.json: Like Firefox, Chrome has also dropped the object-src requirement, since version 111 - https://bugs.chromium.org/p/chromium/issues/detail?id=1320785#c10
Co-authored-by: Rob Wu <rob@robwu.nl>
"support": { | ||
"chrome": { | ||
"version_added": "88", | ||
"notes": "Available for use in Manifest V3 or later." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Rob--W should I repeat this against all the sub features?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Rob--W do you think we need the "Available for use in Manifest V2 or later." notes against Safari support?
webextensions/manifest/action.json
Outdated
"support": { | ||
"chrome": { | ||
"version_added": "88", | ||
"notes": [ | ||
"Available for use in Manifest V3 or later.", | ||
"If an extension defines a browser action, it is not allowed to define a page action as well." | ||
"If an extension defines an action, it is not allowed to define a page action as well." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Rob--W correct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Chrome does not support page_action
in MV3 at all. So "not allowed to define a page action" is not conditional on the action key being present. In MV2, Chrome does not allow browser_action and page_action to co-exist (and doesn't support the action key either).
FYI: Safari does not support page_action nor browser_action in MV3 either (only action
). In MV2 Safari does support page_action and browser_action.
(and for completeness: Firefox supports browser_action only in MV2, action only in MV3, and page_action in MV2+MV3).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @Rob--W I've removed this note.
Is not the "This key replaces browser_action in Manifest V3 extensions." and the reciprocal version in browser_action adequate? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Current changes here look good.
To complete the full scope of "MV3 feature clarification", please also update:
- https://github.com/mdn/browser-compat-data/blob/22e0f5f1707f29f0c646ea89f5ba5ea7734fa48a/webextensions/manifest/web_accessible_resources.json
- Anything with a property that is supported in Firefox should have its version changed to 109 (MV3), because the object format (in an array) of
web_accessible_resources
is MV3-only. In MV2, web_accessible_resources was merely an array of strings. This implies that properties are only supported with the release of MV3.
- Anything with a property that is supported in Firefox should have its version changed to 109 (MV3), because the object format (in an array) of
That change is trivial, so feel free to merge after making the change (or submit a follow-up PR if you wish).
Thanks @Rob--W, I have made the final change you requested and merged. |
Summary
Updates support information for Manifest V3 features which were in preview prior to Firefox 109.
Related issues
Related changes to content made in mdn/content#24916