Skip to content

Bug 1930776 updates for the implementation of userScripts.execute#44369

Open
rebloor wants to merge 1 commit into
mdn:mainfrom
rebloor:Bug-1930776-userScripts.execute-implement
Open

Bug 1930776 updates for the implementation of userScripts.execute#44369
rebloor wants to merge 1 commit into
mdn:mainfrom
rebloor:Bug-1930776-userScripts.execute-implement

Conversation

@rebloor

@rebloor rebloor commented Jun 6, 2026

Copy link
Copy Markdown
Contributor

Description

Documents the implementation of userScripts.execute() in Firefox 153 (bug 1930776).

  • Adds a Firefox 153 release note for userScripts.execute().
  • Updates the userScripts API overview page to include execute() in the "Execution worlds" section and in the ExecutionWorld type description, both of which previously only referenced register() and update().

Related issues and pull requests

BCD changes in mdn/browser-compat-data#29811

@rebloor rebloor requested review from Rob--W and bacharakis June 6, 2026 17:40
@rebloor rebloor self-assigned this Jun 6, 2026
@rebloor rebloor requested review from a team as code owners June 6, 2026 17:40
@rebloor rebloor added the Content:WebExt WebExtensions docs label Jun 6, 2026
@rebloor rebloor requested review from pepelsbey and removed request for a team June 6, 2026 17:40
@github-actions github-actions Bot added the Content:Firefox Content in the Mozilla/Firefox subtree label Jun 6, 2026
@github-actions github-actions Bot added the size/s [PR only] 6-50 LoC changed label Jun 6, 2026
@github-actions

github-actions Bot commented Jun 6, 2026

Copy link
Copy Markdown
Contributor

Preview URLs (2 pages)

External URLs (1)

URL: /en-US/docs/Mozilla/Firefox/Releases/153
Title: Firefox 153 release notes for developers (Nightly)

@Rob--W Rob--W left a comment

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.

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.

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.

Reduced ambiguity.

Suggested change
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.

<!-- ### Removals -->

<!-- ### Other -->
### Other

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.

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.

Suggested change
### Other

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Content:Firefox Content in the Mozilla/Firefox subtree Content:WebExt WebExtensions docs size/s [PR only] 6-50 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants