userScripts.ExecutionWorld
The execution environment for a script injected with userScripts.register()
or userScripts.update().
Type
Values of this type are a string. Possible values are:
- 
MAINThe web page execution environment. This environment is shared with the web page without isolation. Scripts in this environment don't have access to the APIs that are only available to content scripts. Warning: Web pages can detect and interfere with the executed code due to the lack of isolation. Therefore, don't use the MAINworld unless it's acceptable for web pages to read, access, or modify the logic or data that flows through the executed code.
- 
USER_SCRIPTThe default execution environment for user scripts. This environment is isolated from the page's context and other USER_SCRIPTworlds. Extension APIs are unavailable, unlikeISOLATEDworlds of content scripts. SeveralUSER_SCRIPTworlds can exist when scripts are registered withworldId.userScripts.configureWorld()is used to change the configuration of aUSER_SCRIPTworld.
Browser compatibility
Loading…