Closed Bug 1747077 Opened 3 years ago Closed 3 years ago

[wpt-sync] Sync PR 32158 - Add web platform tests for cross-origin parent navigation attempts.

Categories

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

task

Tracking

()

RESOLVED FIXED
97 Branch
Tracking Status
firefox97 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

(Blocks 1 open bug, )

Details

(Whiteboard: [wptsync downstream])

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

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

Titouan Rigoudy <titouan@chromium.org> wrote:

Add web platform tests for cross-origin parent navigation attempts.

These replace the old text dump tests in http/test/security, one of
which has been flaky recently.

I placed the new tests alongside the same-origin child -> parent
navigation tests, but I could also see them belonging in
html/browsers/history/the-location-interface/.

Fixed: chromium:1267551
Change-Id: I67c0cae630acc7c17959ae6de2dba3a64c267798

Reviewed-on: https://chromium-review.googlesource.com/3350656
WPT-Export-Revision: ecddca9bd2a1b0af14595d098a5b1803c909e11f

Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core

CI Results

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

Total 1 tests and 11 subtests

Status Summary

Firefox

TIMEOUT: 2
NOTRUN : 10

Chrome

OK : 1
PASS : 11

Safari

OK : 1
PASS : 10
FAIL : 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

Firefox-only Failures

/html/browsers/browsing-the-web/navigating-across-documents/child-navigates-parent-cross-origin.window.html: TIMEOUT
Child document attempts to navigate cross-origin parent via location: TIMEOUT
Child document attempts to navigate cross-origin parent via location.hash: NOTRUN
Child document attempts to navigate cross-origin parent via location.host: NOTRUN
Child document attempts to navigate cross-origin parent via location.hostname: NOTRUN
Child document attempts to navigate cross-origin parent via location.href: NOTRUN
Child document attempts to navigate cross-origin parent via location.pathname: NOTRUN
Child document attempts to navigate cross-origin parent via location.protocol: NOTRUN
Child document attempts to navigate cross-origin parent via location.reload(): NOTRUN
Child document attempts to navigate cross-origin parent via location.search: NOTRUN
Child document attempts to navigate cross-origin parent via non-standard location property: NOTRUN

New Tests That Don't Pass

/html/browsers/browsing-the-web/navigating-across-documents/child-navigates-parent-cross-origin.window.html: TIMEOUT (Chrome: OK, Safari: OK)
Child document attempts to navigate cross-origin parent via location: TIMEOUT (Chrome: PASS, Safari: PASS)
Child document attempts to navigate cross-origin parent via location.hash: NOTRUN (Chrome: PASS, Safari: PASS)
Child document attempts to navigate cross-origin parent via location.host: NOTRUN (Chrome: PASS, Safari: PASS)
Child document attempts to navigate cross-origin parent via location.hostname: NOTRUN (Chrome: PASS, Safari: PASS)
Child document attempts to navigate cross-origin parent via location.href: NOTRUN (Chrome: PASS, Safari: PASS)
Child document attempts to navigate cross-origin parent via location.pathname: NOTRUN (Chrome: PASS, Safari: PASS)
Child document attempts to navigate cross-origin parent via location.protocol: NOTRUN (Chrome: PASS, Safari: PASS)
Child document attempts to navigate cross-origin parent via location.reload(): NOTRUN (Chrome: PASS, Safari: PASS)
Child document attempts to navigate cross-origin parent via location.replace(): NOTRUN (Chrome: PASS, Safari: FAIL)
Child document attempts to navigate cross-origin parent via location.search: NOTRUN (Chrome: PASS, Safari: PASS)
Child document attempts to navigate cross-origin parent via non-standard location property: NOTRUN (Chrome: PASS, Safari: PASS)

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f99ea13f088e [wpt PR 32158] - Add web platform tests for cross-origin parent navigation attempts., a=testonly https://hg.mozilla.org/integration/autoland/rev/367ecf9039a0 [wpt PR 32158] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 97 Branch
You need to log in before you can comment on or make changes to this bug.