Skip to content

Recursion error in "navigation-within-beforeunload" WPT test #20496

Closed

Description

@gterzian

In the context of running this tests/wpt/web-platform-tests/html/browsers/browsing-the-web/unloading-documents/navigation-within-beforeunload.html for #20329, I am getting the below recursion error.

This happens reliably after 66 navigation, while the test seems to expect 1000 to occur without such error happening(the test ends up failing with assert_equals: expected 1000 but got 66).

ERROR:script::dom::bindings::error: Error at http://web-platform.test:8000/html/browsers/browsing-the-web/unloading-documents/navigation-within-beforeunload-1.html?0.6222672494976191:8:3 too much recursion

Any ideas how this could be solved?

Activity

  1. gterzian commented on Apr 21, 2018

    @gterzian
    MemberAuthor

    Fixed by adding, as par the spec, a recursiveFlag to both document.prompt_to_unload and `document.unload. See

  2. added 3 commits that reference this issue on May 1, 2018
    884851b
    ae80a01
    1d8283e
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions