You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
WPT: "document.open should throw an {InvalidStateError|SecurityError} with XML document even when the ignore-opens-during-unload counter is greater than 0" #25094
This is in html/webappapis/dynamic-markup-insertion/opening-the-input-stream/bailout-exception-vs-return-xml.window.js. It fails to throw when the open happens during the pagehide and unload events; it times out when it's on a beforeunload event, suggesting that in the state the test has arrived at, beforeunload might not even fire.
The crash of #21444 could be relevant since this is testing for similar behavior.
changed the title [-]WPT: "document.open should throw an InvalidStateError with XML document even when the ignore-opens-during-unload counter is greater than 0[/-][+]WPT: "document.open should throw an InvalidStateError with XML document even when the ignore-opens-during-unload counter is greater than 0"[/+]on Dec 4, 2019
html/webappapis/dynamic-markup-insertion/opening-the-input-stream/bailout-exception-vs-return-origin.sub.window.js has a very similar test, but the document's cross-origin and the expected exception in this case is SecurityError instead of InvalidStateError. Again beforeunload times out while the others fail.
changed the title [-]WPT: "document.open should throw an InvalidStateError with XML document even when the ignore-opens-during-unload counter is greater than 0"[/-][+]WPT: "document.open should throw an {InvalidStateError|SecurityError} with XML document even when the ignore-opens-during-unload counter is greater than 0"[/+]on Dec 4, 2019
Activity
[-]WPT: "document.open should throw an InvalidStateError with XML document even when the ignore-opens-during-unload counter is greater than 0[/-][+]WPT: "document.open should throw an InvalidStateError with XML document even when the ignore-opens-during-unload counter is greater than 0"[/+]pshaughn commentedon Dec 4, 2019
html/webappapis/dynamic-markup-insertion/opening-the-input-stream/bailout-exception-vs-return-origin.sub.window.js has a very similar test, but the document's cross-origin and the expected exception in this case is SecurityError instead of InvalidStateError. Again beforeunload times out while the others fail.
[-]WPT: "document.open should throw an InvalidStateError with XML document even when the ignore-opens-during-unload counter is greater than 0"[/-][+]WPT: "document.open should throw an {InvalidStateError|SecurityError} with XML document even when the ignore-opens-during-unload counter is greater than 0"[/+]