UserContentManager.registerScriptMessageHandlerInWorld

Registers a new user script message handler in script world with name @world_name. See webkit_user_content_manager_register_script_message_handler() for full description.

Registering a script message handler will fail if the requested name has been already registered before.

class UserContentManager
bool
registerScriptMessageHandlerInWorld
(
string name
,
string worldName
)

Parameters

name string

Name of the script message channel

worldName string

the name of a #WebKitScriptWorld

Return Value

Type: bool

%TRUE if message handler was registered successfully, or %FALSE otherwise.

Meta

Since

2.22