Skip to content

Commit

Permalink
Merge pull request #11124 from w3c/sync_40a0ace6add33a4b01d49514f2ff7…
Browse files Browse the repository at this point in the history
…47b69b4c85a

Merge pull request #11124 from sync_40a0ace6add33a4b01d49514f2ff747b69b4c85a
  • Loading branch information
servo-wpt-sync authored May 23, 2018
2 parents 7f56040 + 40a0ace commit dd43ad0
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@

iframe.onload = function() {
setTimeout(function() {iframe.contentWindow.location="navigation-within-beforeunload-2.html";}, 100);
iframe.onload = t.step_func(function() {assert_equals(counter, 1000); t.done()});
// Step 4 of https://html.spec.whatwg.org/multipage/browsing-the-web.html#navigating-across-documents
// doesn't seem to allow navigation within a beforeunload handler,
// so the counter should not go beyond 1.
iframe.onload = t.step_func(function() {assert_equals(counter, 1); t.done()});
};

iframe.src = "navigation-within-beforeunload-1.html?" + Math.random();
Expand Down

0 comments on commit dd43ad0

Please sign in to comment.