This page must be served from an origin that Safe Browsing flags for abusive
ads so that Chrome's subresource filter activates and shows the "Ads blocked"
message. In a lab setup, force activation via:
chrome://flags/#enable-subresource-filter and the testing ruleset,
or add this origin to the local Safe Browsing list.
reprompt_required_ is set to true.OnWebContentsFocused fires,
which posts the dialog-show Runnable to the UI Handler.visibilitychange handler below calls
window.close() synchronously. The WebContents (and the native
AdsBlockedDialog) are destroyed while the Runnable is still
queued.onAllowAdsClicked(mNativeDialog) on freed memory → UAF in the
browser process.