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

Add docs for ExecutionWorld of scripting.executeScript API #24316

Merged
merged 4 commits into from
Feb 14, 2023

Conversation

Rob--W
Copy link
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
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
Contributor

dawei-wang commented Feb 10, 2023

Related issue: #22409

Copy link
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.

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
3 participants