UserAgentPrompt Class

The description of a prompt of the user agent, given to a method of UserAgentUIBackend.

public abstract class UserAgentPrompt

Properties

NameDescription
ContextGets the context of the prompt: the window that shows it, its browsing context and the options.
OriginGets the serialization of the origin of the document that shows the prompt (e.g. https://example.com), as the prompt displays it.
TopLevelOriginGets the serialization of the origin of the top-level document of the browsing context that shows the prompt.

Gets the context of the prompt: the window that shows it, its browsing context and the options.

public CallbackContext Context { get; }

Property value

CallbackContext

Gets the serialization of the origin of the document that shows the prompt (e.g. https://example.com), as the prompt displays it.

public string Origin { get; }

Property value

string

TopLevelOrigin

UserAgentUIBackend.cs

Gets the serialization of the origin of the top-level document of the browsing context that shows the prompt.

public string TopLevelOrigin { get; }

Property value

string