Skip to content

WPT: "document.open should throw an {InvalidStateError|SecurityError} with XML document even when the ignore-opens-during-unload counter is greater than 0" #25094

Open

Description

@pshaughn

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.

Activity

  1. 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
  2. pshaughn commented on Dec 4, 2019

    @pshaughn
    ContributorAuthor

    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.

  3. 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
  4. added
    A-content/dom
    on Dec 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-content/dom

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions