newForWorld

fun newForWorld(source: String, injectedFrames: UserContentInjectedFrames, level: UserStyleLevel, worldName: String, allowList: List<String>? = null, blockList: List<String>? = null): UserStyleSheet

Creates a new user style sheet for script world.

Creates a new user style sheet for script world with name @world_name. See webkit_user_style_sheet_new() for a full description.

Return

A new #WebKitUserStyleSheet

Since

2.22

Parameters

source

Source code of the user style sheet.

injectedFrames

A #WebKitUserContentInjectedFrames value

level

A #WebKitUserStyleLevel

worldName

the name of a #WebKitScriptWorld

allowList

An allow_list of URI patterns or null

blockList

A block_list of URI patterns or null