Add an event handler for the PermissionRequested event.
PermissionRequested runs when content in a WebView requests permission
to access some privileged resources.
If a deferral is not taken on the event args, the subsequent scripts are
blocked until the event handler returns. If a deferral is taken, the
scripts are blocked until the deferral is completed.
Add an event handler for the PermissionRequested event. PermissionRequested runs when content in a WebView requests permission to access some privileged resources.
If a deferral is not taken on the event args, the subsequent scripts are blocked until the event handler returns. If a deferral is taken, the scripts are blocked until the deferral is completed.
\snippet SettingsComponent.cpp PermissionRequested0 \snippet SettingsComponent.cpp PermissionRequested1