Skip to content
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

support-for-execution-world-MAIN #23539

Merged
merged 6 commits into from
Jul 2, 2024

Conversation

rebloor
Copy link
Contributor

@rebloor rebloor commented Jun 27, 2024

Summary

BCD in support of Bug 1736575 Support execution world MAIN in scripting.executeScript() and content_scripts including:

  • support for MAIN in scripting.ExecutionWorld
  • addition of scripting.ExecutionWorld and the world property to contentScripts.register()

Related issues

Related content changes are in mdn/content#34466

@rebloor rebloor added the data:webext Compat data for Browser Extensions. https://developer.mozilla.org/Add-ons/WebExtensions label Jun 27, 2024
@rebloor rebloor requested a review from dotproto June 27, 2024 19:03
@rebloor rebloor self-assigned this Jun 27, 2024
@github-actions github-actions bot added the merge conflicts 🚧 This PR needs to merge latest "main" branch to resolve a merge conflict or other issue. label Jul 1, 2024
Copy link

github-actions bot commented Jul 1, 2024

This pull request has merge conflicts that must be resolved before it can be merged.

Comment on lines 23 to 41
"ExecutionWorld": {
"__compat": {
"support": {
"chrome": {
"version_added": false
},
"edge": "mirror",
"firefox": {
"version_added": "128"
},
"firefox_android": "mirror",
"opera": "mirror",
"safari": {
"version_added": false
},
"safari_ios": "mirror"
}
}
},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"ExecutionWorld": {
"__compat": {
"support": {
"chrome": {
"version_added": false
},
"edge": "mirror",
"firefox": {
"version_added": "128"
},
"firefox_android": "mirror",
"opera": "mirror",
"safari": {
"version_added": false
},
"safari_ios": "mirror"
}
}
},

The contentScripts.ExecutionWorld type doesn't exist.

@@ -67,8 +67,7 @@
},
"edge": "mirror",
"firefox": {
"version_added": false,
"impl_url": "https://bugzil.la/1736575"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also drop the note from

"notes": "Only supports <code>ISOLATED</code>, not <code>MAIN</code>."

@rebloor rebloor marked this pull request as ready for review July 2, 2024 11:01
@rebloor rebloor requested a review from Rob--W July 2, 2024 11:01
@github-actions github-actions bot removed the merge conflicts 🚧 This PR needs to merge latest "main" branch to resolve a merge conflict or other issue. label Jul 2, 2024
@@ -308,8 +307,7 @@
},
"edge": "mirror",
"firefox": {
"version_added": "102",
"notes": "Only supports <code>ISOLATED</code>, not <code>MAIN</code>."
"version_added": "102"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm. Someone skimming this could mistakenly think that MAIN is supported in 102. Could you add multiple ranges to clarify that 102 only introduced support for ISOLATED, and 128 also added support for MAIN?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data:webext Compat data for Browser Extensions. https://developer.mozilla.org/Add-ons/WebExtensions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants