Skip to content

support-for-execution-world-MAIN#23539

Merged
rebloor merged 6 commits intomdn:mainfrom
rebloor:support-for-execution-world-MAIN
Jul 2, 2024
Merged

support-for-execution-world-MAIN#23539
rebloor merged 6 commits intomdn:mainfrom
rebloor:support-for-execution-world-MAIN

Conversation

@rebloor
Copy link
Copy Markdown
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
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jul 1, 2024

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

Comment thread webextensions/api/contentScripts.json Outdated
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
Copy Markdown
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.

"edge": "mirror",
"firefox": {
"version_added": false,
"impl_url": "https://bugzil.la/1736575"
Copy link
Copy Markdown
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
"firefox": {
"version_added": "102",
"notes": "Only supports <code>ISOLATED</code>, not <code>MAIN</code>."
"version_added": "102"
Copy link
Copy Markdown
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