Skip to content

Docs for support for execution-world MAIN#34466

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

Docs for support for execution-world MAIN#34466
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

Description

Documentation in support of Bug 1736575 Support execution world MAIN in scripting.executeScript() and content_scripts including:

  • a release note
  • removal of comment about non-support for MAIN in scripting.ExecutionWorld
  • addition of scripting.ExecutionWorld and the world property to contentScripts.register()

Related issues and pull requests

Related BCD changes in mdn/browser-compat-data#23539

@rebloor rebloor added the Content:WebExt WebExtensions docs label Jun 27, 2024
@rebloor rebloor requested a review from dotproto June 27, 2024 18:47
@rebloor rebloor self-assigned this Jun 27, 2024
@rebloor rebloor requested review from a team as code owners June 27, 2024 18:47
@rebloor rebloor requested review from Elchi3 and removed request for a team June 27, 2024 18:47
@github-actions github-actions Bot added Content:Firefox Content in the Mozilla/Firefox subtree size/s [PR only] 6-50 LoC changed labels Jun 27, 2024
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 27, 2024

Preview URLs

Flaws (1)

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

URL: /en-US/docs/Mozilla/Firefox/Releases/128
Title: Firefox 128 for developers
Flaw count: 1

  • macros:
    • /en-US/docs/Web/API/MediaKeys/getStatusForPolicy does not exist
External URLs (1)

URL: /en-US/docs/Mozilla/Firefox/Releases/128
Title: Firefox 128 for developers

(comment last updated: 2024-07-02 22:15:24)

Comment thread files/en-us/mozilla/firefox/releases/128/index.md Outdated
@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.

@github-actions github-actions Bot added the merge conflicts 🚧 [PR only] label Jul 1, 2024
<p>
<strong>Warning:</strong> Due to the lack of isolation, the web page can detect and interfere with the executed code.
Do not use the <code>MAIN</code> world unless it is acceptable for web pages to read, access, or modify the logic or data that flows through the executed code.
<code>world</code>, and therefore <code>"MAIN"</code>, is not supported in Firefox (although it is planned, and the work to introduce it is tracked by <a href="https://bugzil.la/1736575" class="external" target="_blank">Bug 1736575</a>). In the meantime, JavaScript code running in the isolated content script sandbox can use the Firefox "Xray vision" feature, as described in <a href="/en-US/docs/Mozilla/Add-ons/WebExtensions/Sharing_objects_with_page_scripts">Share objects with page scripts</a>.
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.

Above id="run_at" shoud be changed to id="world".

- `runAt` {{optional_inline}}
- : Same as `run_at` in the [`content_scripts`](/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/content_scripts) key.
- `world` {{optional_inline}}
- : {{WebExtAPIRef("contentScripts.ExecutionWorld")}}. The execution environment for a script to execute in.
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.

Link to the content_scripts manifest key instead, like all other properties here already do.

@@ -0,0 +1,35 @@
---
title: contentScripts.ExecutionWorld
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.

Drop this article. The API doesn't expose this type.

@rebloor rebloor requested a review from Rob--W July 2, 2024 10:58
@github-actions github-actions Bot removed the merge conflicts 🚧 [PR only] label Jul 2, 2024
@rebloor rebloor merged commit 7b33fd0 into mdn:main Jul 2, 2024
@rebloor rebloor deleted the support-for-execution-world-MAIN branch July 2, 2024 22:16
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.

2 participants