Idioma

CoreWebView2ServiceWorker.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 scriptURL property of the ServiceWorker object in the DOM returns the relative URL of the script being executed by the worker. 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 scriptURL when a worker is registered 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