Compat impact of omitting subframe detachment events on DOM removal (whatwg/html#10194)
Proposed change: Stop synchronously firing pagehide, visibilitychange (webkitvisibilitychange), and unload inside nested browsing contexts (<iframe>, <frame>, <object>, <embed>) when removed from the DOM (FrameDetachType::kRemove), either across all subframes (Option 1, matching the HTML Standard and Chromium's OmitSubframeDetachmentEventsOnRemoval runtime flag) or only when the detaching subframe can synchronously script an ancestor document (SecurityOrigin::CanAccess any ancestor LocalFrame — Option 2b).
- Crawl exposure (
queries/crawl_pages_counters.csv): In the October 2026 HTTP Archive crawl (2026-10-01,is_root_page = TRUE),PageHideFired(2227) orDocumentUnloadFired(203) fired during page load on 474,165 of 15,366,242 mobile root pages (3.086%, including 57 CrUX top-1,000 pages) and 385,701 of 11,650,352 desktop root pages (3.311%, *52