Movatterモバイル変換


[0]ホーム

URL:


MDN Web Docs

scripting.ExecutionWorld

Specifies the execution environment of a script injected withscripting.executeScript()or registered withscripting.registerContentScripts().

Type

Values of this type are strings. Possible values are:

  • ISOLATED

    The defaultcontent scripts execution environment.This environment is isolated from the page's context: while they share the same document, the global scopes and available APIs differ.

  • MAIN

    The web page execution environment. This environment is shared with the web page without isolation.Scripts in this environment do not have any access to APIs that are only available to content scripts.

    Warning:Due to the lack of isolation, the web page can detect and interfere with the executed code.Do not use theMAIN world unless it is acceptable for web pages to read, access, or modify the logic or data that flows through the executed code.

Browser compatibility

Note:This API is based on Chromium'schrome.scripting API.

Help improve MDN

Learn how to contribute.

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp