(annoying nit: I think the subject is wrong - a Deprecation Trial
typically means an Origin Trial that enables an origin to re-enable some
functionality. This is really just an Experiment ahead of a Deprecation.
But it doesn't matter much).
LGTM to experiment for up to 12 milestones, but please consider only
turning this on after holiday freezes to avoid any unexpected disruption.
Good luck!
On 11/12/26 3:13 a.m., Chromestatus wrote:
*Contact emails*
[email protected]
*Explainer*
https://github.com/whatwg/html/issues/10194
https://gist.github.com/noamr/f80676a616444de7efb5be671692e919
*Specification*
https://html.spec.whatwg.org/multipage/document-sequences.html#destroy-a-child-navigable
*Summary*
Stop synchronously firing pagehide, visibilitychange, and unload
events when a subframe that has script access to an ancestor frame's
DOM is removed from the DOM. Per the HTML Standard, destroying a child
navigable on DOM removal does not fire these events, and firing them
synchronously enables ancestor DOM re-entrancy during node removal.
*Blink component*
Blink>HTML>IFrame
<https://issues.chromium.org/issues?q=customfield1222907:%22Blink%3EHTML%3EIFrame%22>
*Web Feature ID*
Missing feature
*TAG review*
/No information provided/
*TAG review status*
Not applicable
*Goals for experimentation*
Run a Finch experiment (Beta / 1% Stable) with
OmitSubframeDetachmentEventsOnRemoval enabled to verify that omitting
synchronous pagehide, visibilitychange, and unload events on DOM
removal of subframes that have script access to an ancestor frame
causes no web-compatibility regressions in the wild, and to evaluate
whether we can subsequently expand to all subframes per the HTML
Standard.
*Risks*
*Interoperability and Compatibility*
Gecko and WebKit also historically fired pagehide/unload on subframe
removal despite the HTML Standard omitting them (see
https://github.com/whatwg/html/issues/10194). To minimize web
compatibility risk while eliminating synchronous DOM re-entrancy
during node removal, we constrain this behavior change to subframes
that can access an ancestor LocalFrame's DOM by script
(SecurityOrigin::CanAccess). In an HTTP Archive (15.37M mobile pages)
+ live compatibility study across 367 assessable mobile pages
(https://gist.github.com/noamr/f80676a616444de7efb5be671692e919),
gating on ancestor script access affected ~0.026% of mobile root pages
(all benign cleanup) with 0 user-facing or visual regressions.
/Gecko/: No signal Will work with other browser vendors once we have
some web compat input from the deprecation trial. Note that the
deprecation trial aligns us closer with the standard.
/WebKit/: No signal Will work with other browser vendors once we have
some web compat input from the deprecation trial. Note that the
deprecation trial aligns us closer with the standard.
/Web developers/: No signals
/Other signals/:
*WebView application risks*
Does this intent deprecate or change behavior of existing APIs, such
that it has potentially high risk for Android WebView-based applications?
/No information provided/
*Ongoing technical constraints*
/No information provided/
*Debuggability*
Standard DevTools debugging applies.
*Will this feature be supported on all six Blink platforms (Windows,
Mac, Linux, ChromeOS, Android, and Android WebView)?*
Yes
*Is this feature fully tested by web-platform-tests
<https://chromium.googlesource.com/chromium/src/+/main/docs/testing/web_platform_tests.md>?*
Yes
Blink web tests in
fast/frames/subframe-detachment-events-on-removal.html (covering
same-origin, cross-origin/opaque, sandboxed with/without
allow-same-origin, and A1->B->A2 cross-origin sandwich removals).
*Flag name on about://flags*
OmitSubframeDetachmentEventsOnRemoval
*Finch feature name*
OmitSubframeDetachmentEventsOnRemoval
*Requires code in //chrome?*
False
*Tracking bug*
https://issues.chromium.org/issues/552675453
*Estimated milestones*
Origin trial desktop first 160
Origin trial desktop last 162
DevTrial on desktop 156
Origin trial Android first 160
Origin trial Android last 162
DevTrial on Android 156
Origin trial WebView first 160
Origin trial WebView last 162
*Link to entry on the Chrome Platform Status*
https://chromestatus.com/feature/5754395122860032?gate=5893029352308736
This intent message was generated by Chrome Platform Status
<https://chromestatus.com>.
--
You received this message because you are subscribed to the Google
Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected].
To view this discussion visit
https://groups.google.com/a/chromium.org/d/msgid/blink-dev/6af5753f.5413fcea.cb0f5.0027.GAE%40google.com
<https://groups.google.com/a/chromium.org/d/msgid/blink-dev/6af5753f.5413fcea.cb0f5.0027.GAE%40google.com?utm_medium=email&utm_source=footer>.
--
You received this message because you are subscribed to the Google Groups
"blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/a/chromium.org/d/msgid/blink-dev/54ab69ac-781a-48b7-a27c-7c4d4e471294%40chromium.org.