How we built it

Disallow document.open and document.write during unload

Aligns our behavior to match Firefox, Safari, and the spec. Allows potential future simplification of code: there have been a number of bugs in the past related to using document.open during unload.

Comments

Note: Edge currently allows document.write while a document is unloading.

Specification

Established standard

Status in Chromium

Proposed (launch bug)

Consensus & Standardization

  • Shipped
  • No public signals
  • Shipped
  • No signals

Owner

Last updated on 2016-03-11