diff --git a/proposals/multiple_user_script_worlds.md b/proposals/multiple_user_script_worlds.md index 55d694e1..89e1d69c 100644 --- a/proposals/multiple_user_script_worlds.md +++ b/proposals/multiple_user_script_worlds.md @@ -140,8 +140,8 @@ Relevant methods and types: + /** + * If specified, specifies a specific user script world ID to execute in. -+ * Only valid if `world` is omitted or is `USER_SCRIPT`. If omitted, the -+ * script will execute in the default user script world. ++ * Only valid if `world` is omitted or is `USER_SCRIPT`. If `worldId` is ++ * omitted, the script will execute in the default user script world. + * Values with leading underscores (`_`) are reserved. + */ + worldId?: string; @@ -149,6 +149,16 @@ Relevant methods and types: ... + export function configureWorld(config: WorldProperties): Promise; + + export function getScripts(filter?: UserScriptFilter[]): Promise; + + export function register(scripts: RegisteredUserScript): Promise; + + export function unregister(filter?: UserScriptFilter[]): Promise; + + export function update(scripts: RegisteredUserScript[]): Promise; + + /** + * Resets the configuration for a given world. Any scripts that inject into + * the world with the specified ID will use the default world configuration. @@ -165,8 +175,9 @@ Relevant methods and types: } ``` -Note that the signatures of the related functions, including `configureWorld()`, -`register()`, and others are left unchanged. +Note that save for the introduction of `worldId` on these interfaces, +the signatures of the related functions - `configureWorld()`, +`register()`, and others – are left unchanged. When the developer specifies a `RegisteredUserScript`, the browser will use a separate user script world when injecting the scripts into a document. If