Closed Bug 1786093 Opened 2 years ago Closed 2 years ago

[wpt-sync] Sync PR 35539 - Navigation-rewrite: Test child navigation cancelation

Categories

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

task

Tracking

()

RESOLVED FIXED
106 Branch
Tracking Status
firefox106 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

(Depends on 1 open bug, )

Details

(Whiteboard: [wptsync downstream])

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

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

Dominic Farolino <dom@chromium.org> wrote:

Navigation-rewrite: Test child navigation cancelation

This CL adds two navigation cancelation tests:
1.) A parent Document cancels an ongoing navigation in a same-origin
child frame. We assert that no load events are fired in the parent
synchronously
2.) A descendant (grandparent) Document cancels an ongoing navigation
in a cross-origin (grand)child frame. We assert that no load
events are fired in the grandparent synchronously, but that both
the grandparent and parent Documents have their unload events
blocked, even though the grandchild iframe element (which owns the
"subsequent" navigation that its grandparent started) has not
fired its load event in its parent yet.

This work is part of the HTML Standard's navigation and session history
rewrite happening in https://github.com/whatwg/html/pull/6315. See https://docs.google.com/document/d/1yxnzjRDVmAR5CC9GcAyY448lBD0u0E98eUEMHDhx1Dw/edit#heading=h.gre3tigel3bw and https://docs.google.com/document/d/1yxnzjRDVmAR5CC9GcAyY448lBD0u0E98eUEMHDhx1Dw/edit#heading=h.o7u949eajh00.

See https://crbug.com/XXX for information on why Chrome fails these tests.

R=domenic@chromium.org

Bug: TODO(domfarolino): Before merging, file a bug describing the chrome failures in depth
Change-Id: I4df03a723344a539e676707f32f81e1dd2d474e5

Reviewed-on: https://chromium-review.googlesource.com/3840476
WPT-Export-Revision: 640e8e631b1090972fb0496b346a62ff990d7939

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

CI Results

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

Total 2 tests and 1 subtests

Status Summary

Firefox

OK : 2
FAIL: 2

Chrome

OK : 2
FAIL: 2

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/0282c32725a3 [wpt PR 35539] - Navigation-rewrite: Test child navigation cancelation, a=testonly https://hg.mozilla.org/integration/autoland/rev/86a288b60ca8 [wpt PR 35539] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 106 Branch
You need to log in before you can comment on or make changes to this bug.