dynamic_cast
as
as_if
User prompts are not tied to specific Windows or the client's Window. They are tied to a traversable navigable (browser tab).
A violation provides several details about an enforcement failing, such as the URL of the document, the directive that returned "Blocked", etc.