run_javascript_in_world


Description:

[ Version ( deprecated = true , deprecated_since = "2.40" , since = "2.22" ) ]
public async JavascriptResult run_javascript_in_world (string script, string world_name, Cancellable? cancellable = null) throws Error

Warning: run_javascript_in_world is deprecated since 2.40.

Asynchronously run script in the script world.

Note:

Use evaluate_javascript instead.

Asynchronously run script in the script world with name world_name of the current page context in this. If WebKitSettings:enable-javascript is FALSE, this method will do nothing.

When the operation is finished, callback will be called. You can then call run_javascript_in_world.end to get the result of the operation.

Parameters:

this

a WebView

script

the script to run

world_name

the name of a WebKitScriptWorld

cancellable

a Cancellable or null to ignore

callback

a TaskReadyCallback to call when the script finished

user_data

the data to pass to callback function