Intent to Implement and Ship: Disallow document.open and document.write during unload

41 views
Skip to first unread message

Daniel Cheng

unread,
Mar 10, 2016, 10:49:40 PM3/10/16
to blink-dev
dch...@chromium.org https://html.spec.whatwg.org/multipage/webappapis.html#opening-the-input-stream document.open() and document.write() while a document is unloading will be ignored. This aligns our behavior to match Firefox, Safari, and the spec. It also allows potential future simplification of code: there have been a number of bugs in the past related to using document.open during unload.
Firefox: Shipped Edge: No public signals Safari: Shipped Web developers: No signals Low risk: already shipped in Firefox for several years now.
None.
Yes
https://crbug.com/583586 https://www.chromestatus.com/features/5702730488217600 Yes

TAMURA, Kent

unread,
Mar 11, 2016, 1:20:55 AM3/11/16
to Daniel Cheng, blink-dev
LGTM1.  It's safe because of the status of Firefox and Safari.

--
TAMURA Kent
Software Engineer, Google


Jochen Eisinger

unread,
Mar 11, 2016, 1:23:02 AM3/11/16
to TAMURA, Kent, Daniel Cheng, blink-dev

lgtm2

Philip Jägenstedt

unread,
Mar 11, 2016, 3:23:07 AM3/11/16
to Jochen Eisinger, TAMURA, Kent, Daniel Cheng, blink-dev
LGTM3

lgtm2

--
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 blink-dev+...@chromium.org.

Chris Harrelson

unread,
Mar 11, 2016, 11:42:49 AM3/11/16
to Philip Jägenstedt, Jochen Eisinger, TAMURA, Kent, Daniel Cheng, blink-dev
LGTM4

Rick Byers

unread,
Mar 11, 2016, 3:06:55 PM3/11/16
to Chris Harrelson, Philip Jägenstedt, Jochen Eisinger, TAMURA, Kent, Daniel Cheng, blink-dev
LGTM5 if we really want to keep counting ;-)
Reply all
Reply to author
Forward
0 new messages