Closed Bug 1795635 Opened 2 years ago Closed 2 years ago

[wpt-sync] Sync PR 36488 - Test that javascript: URL navigation does not fire beforeunload

Categories

(Core :: DOM: Core & HTML, task, P4)

task

Tracking

()

RESOLVED FIXED
108 Branch
Tracking Status
firefox108 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

(Blocks 1 open bug, )

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 36488 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/36488
Details from upstream follow.

Domenic Denicola <d@domenic.me> wrote:

Test that javascript: URL navigation does not fire beforeunload

The current spec fires beforeunload, but the rewrite in https://github.com/whatwg/html/pull/6315 does not.

Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]

CI Results

Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 1 tests and 8 subtests

Status Summary

Firefox

OK : 1
PASS: 4
FAIL: 4

Chrome

OK : 1
PASS: 8

Safari

OK : 1
PASS: 8

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

Firefox-only Failures

  • /html/browsers/browsing-the-web/navigating-across-documents/javascript-url-no-beforeunload.window.html [wpt.fyi]
    • Navigating an iframe via location.href to a javascript: URL must not fire beforeunload: string completion: FAIL
    • Navigating an iframe via src="" to a javascript: URL after insertion must not fire beforeunload: string completion: FAIL
    • Navigating an opened window via location.href to a javascript: URL must not fire beforeunload: string completion: FAIL
    • Navigating an opened window with an iframe via location.href to a javascript: URL must not fire beforeunload on the iframe: string completion: FAIL

New Tests That Don't Pass

  • /html/browsers/browsing-the-web/navigating-across-documents/javascript-url-no-beforeunload.window.html [wpt.fyi]
    • Navigating an iframe via location.href to a javascript: URL must not fire beforeunload: string completion: FAIL (Chrome: PASS, Safari: PASS)
    • Navigating an iframe via src="" to a javascript: URL after insertion must not fire beforeunload: string completion: FAIL (Chrome: PASS, Safari: PASS)
    • Navigating an opened window via location.href to a javascript: URL must not fire beforeunload: string completion: FAIL (Chrome: PASS, Safari: PASS)
    • Navigating an opened window with an iframe via location.href to a javascript: URL must not fire beforeunload on the iframe: string completion: FAIL (Chrome: PASS, Safari: PASS)
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/8668168a5448 [wpt PR 36488] - Test that javascript: URL navigation does not fire beforeunload, a=testonly https://hg.mozilla.org/integration/autoland/rev/63cfa4506647 [wpt PR 36488] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 108 Branch
You need to log in before you can comment on or make changes to this bug.