Bug 1930776 updates for the implementation of userScripts.execute#44369
Bug 1930776 updates for the implementation of userScripts.execute#44369rebloor wants to merge 3 commits into
Conversation
|
Preview URLs (3 pages)
Flaws (1) Note! 2 documents with no flaws that don't need to be listed. 🎉 Found an unexpected or unresolvable flaw? Please report it here. URL:
External URLs (2)URL:
(comment last updated: 2026-06-10 16:55:39) |
Rob--W
left a comment
There was a problem hiding this comment.
Please update the description of ScriptSource to also reference userScripts.execute in the intro at https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/userScripts/ScriptSource
| ## Execution worlds | ||
|
|
||
| When a user script is registered or updated (using {{WebExtAPIRef("userScripts.register()")}} or {{WebExtAPIRef("userScripts.update()")}}), your extension can set it to run in an isolated `USER_SCRIPT` world or the `MAIN` world. | ||
| When a user script is registered, updated, or executed (using {{WebExtAPIRef("userScripts.register()")}}, {{WebExtAPIRef("userScripts.update()")}}, or {{WebExtAPIRef("userScripts.execute()")}}), your extension can set it to run in an isolated `USER_SCRIPT` world or the `MAIN` world. |
There was a problem hiding this comment.
Reduced ambiguity.
| When a user script is registered, updated, or executed (using {{WebExtAPIRef("userScripts.register()")}}, {{WebExtAPIRef("userScripts.update()")}}, or {{WebExtAPIRef("userScripts.execute()")}}), your extension can set it to run in an isolated `USER_SCRIPT` world or the `MAIN` world. | |
| When a user script is registered or updated (using {{WebExtAPIRef("userScripts.register()")}} or {{WebExtAPIRef("userScripts.update()")}}) or executed (using {{WebExtAPIRef("userScripts.execute()")}}), your extension can set it to run in an isolated `USER_SCRIPT` world or the `MAIN` world. |
There was a problem hiding this comment.
@Rob--W as rewritte, this now says that userScripts.register can register or update, and userScripts.update can register or update. Unless there's something missing from the documentation, I don't think that's the case.
However, I think this might address your concern.
| When a user script is registered, updated, or executed (using {{WebExtAPIRef("userScripts.register()")}}, {{WebExtAPIRef("userScripts.update()")}}, or {{WebExtAPIRef("userScripts.execute()")}}), your extension can set it to run in an isolated `USER_SCRIPT` world or the `MAIN` world. | |
| When a user script is registered, updated, or executed (using {{WebExtAPIRef("userScripts.register()")}}, {{WebExtAPIRef("userScripts.update()")}}, and {{WebExtAPIRef("userScripts.execute()")}} respectively), your extension can set it to run in an isolated `USER_SCRIPT` world or the `MAIN` world. |
| <!-- ### Removals --> | ||
|
|
||
| <!-- ### Other --> | ||
| ### Other |
There was a problem hiding this comment.
Is this "Other" header something new? We haven't used that before. I double checked the last 10 releases and we only used a list of bullet points.
| ### Other |
There was a problem hiding this comment.
At least recently, it's always been in the template, but I usually put the additions immediately below the section title.
|
This pull request has merge conflicts that must be resolved before it can be merged. |
Description
Documents the implementation of userScripts.execute() in Firefox 153 (bug 1930776).
userScripts.execute().execute()in the "Execution worlds" section and in the ExecutionWorld type description, both of which previously only referencedregister()andupdate().Related issues and pull requests
BCD changes in mdn/browser-compat-data#29811