Skip to content

Add docs for ExecutionWorld of scripting.executeScript API#24316

Merged
Rob--W merged 4 commits intomdn:mainfrom
Rob--W:webext-scripting-executionworld
Feb 14, 2023
Merged

Add docs for ExecutionWorld of scripting.executeScript API#24316
Rob--W merged 4 commits intomdn:mainfrom
Rob--W:webext-scripting-executionworld

Conversation

@Rob--W
Copy link
Copy Markdown
Member

@Rob--W Rob--W commented Feb 10, 2023

Description

This documents the world option in scripting.executeScript (and registerContentScripts too, in Chrome).

Motivation

This feature is not documented and I saw a request for documentation at #22493.

Additional details

Implemented in https://bugzilla.mozilla.org/show_bug.cgi?id=1759932
Released in Firefox 102 with https://bugzilla.mozilla.org/show_bug.cgi?id=1766615

Related issues and pull requests

Fixes #22493
I added more detail about the environment in #24215

@Rob--W Rob--W added the Content:WebExt WebExtensions docs label Feb 10, 2023
@Rob--W Rob--W requested a review from a team as a code owner February 10, 2023 14:25
@Rob--W Rob--W requested review from rebloor and removed request for a team February 10, 2023 14:25
@github-actions github-actions Bot added the Content:Other Any docs not covered by another "Content:" label label Feb 10, 2023
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Feb 10, 2023

Preview URLs

Flaws (1)

Note! 2 documents with no flaws that don't need to be listed. 🎉

URL: /en-US/docs/Mozilla/Add-ons/WebExtensions/API/scripting/ExecutionWorld
Title: scripting.ExecutionWorld
Flaw count: 1

  • bad_bcd_queries:
    • No BCD data for query: webextensions.api.scripting.ExecutionWorld
External URLs (1)

URL: /en-US/docs/Mozilla/Add-ons/WebExtensions/API/scripting/ExecutionWorld
Title: scripting.ExecutionWorld

(comment last updated: 2023-02-14 13:31:07)

@dawei-wang
Copy link
Copy Markdown
Contributor

dawei-wang commented Feb 10, 2023

Related issue: #22409

Copy link
Copy Markdown
Contributor

@rebloor rebloor left a comment

Choose a reason for hiding this comment

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

@Rob--W I've left some suggestions to correct a few minor points, which I will leave you to apply. Otherwise, it looks good.

Comment thread files/en-us/mozilla/add-ons/webextensions/api/scripting/executionworld/index.md Outdated
Comment thread files/en-us/mozilla/add-ons/webextensions/api/scripting/executescript/index.md Outdated
Comment thread files/en-us/mozilla/add-ons/webextensions/api/scripting/executionworld/index.md Outdated
Rob--W and others added 3 commits February 14, 2023 14:28
…ionworld/index.md

Co-authored-by: rebloor <git@sherpa.co.nz>
…escript/index.md

Co-authored-by: rebloor <git@sherpa.co.nz>
…ionworld/index.md

Co-authored-by: rebloor <git@sherpa.co.nz>
@Rob--W Rob--W merged commit 8939214 into mdn:main Feb 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Content:Other Any docs not covered by another "Content:" label Content:WebExt WebExtensions docs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add-ons/Extensions: "world" not described in scripting.executeScript() (and is referenced in "Browser Compatibility"

3 participants