Language

CoreWebView2DedicatedWorker.ScriptUri Property

Definition

A string representing the Uri of the script that the worker is executing.

The scriptUri is a fully qualified URI, including the scheme, host, and path. In contrast, the script URL passed to the Worker constructor in the DOM can be relative. For more details on DOM API, see the DOM API documentation.

Refer to the Host Name Canonicalization for details on how normalization is performed. The same process applies to the script URL when a worker is created from DOM API. The scriptUri property reflects this normalization, ensuring that the URL is standardized. For example, HTTPS://EXAMPLE.COM/worker.js is canonicalized to https://example.com/worker.js; https://bücher.de/worker.js is canonicalized to https://xn--bcher-kva.de/worker.js.

public string ScriptUri { get; }
member this.ScriptUri : string
Public ReadOnly Property ScriptUri As String

Property Value

Applies to