Closed Bug 1644309 Opened 5 years ago Closed 5 years ago

[wpt-sync] Sync PR 24051 - Add WPTs for Window object reuse when navigating from the initial empty document

Categories

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

task

Tracking

()

RESOLVED FIXED
mozilla79
Tracking Status
firefox79 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Daniel Cheng <dcheng@chromium.org> wrote:

Add WPTs for Window object reuse when navigating from the initial empty document

No browser appears to implement the behavior defined in the HTML spec.
The test expectations are currently baselined to Firefox, which appears
to be the closest match.

Firefox appears to reuse the Window object iff the \<iframe> load
event has never fired and the a same-origin navigation commits. In
particular, this means that an \<iframe> with no src attribute set can be
inserted into the DOM and synchronously navigated, yet still reuse the
Window object if the asynchronous navigation commit is same-origin.

In contrast, Chrome only reuses the Window object iff the \<iframe>
element has a src attribute set when inserted into the document;
otherwise, the Window object will never be reused. IE also appears to
implement similar behavior.

Bug: 778318
Change-Id: Ie45be130e196c385bff62260467cbb2733c4a54e

Reviewed-on: https://chromium-review.googlesource.com/2236721
WPT-Export-Revision: 79b163bb8797c6b8baf63137a34f360912382fca

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

CI Results

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

Total 1 tests and 7 subtests

Status Summary

Firefox

OK : 1
PASS: 6
FAIL: 1

Chrome

OK : 1
PASS: 1
FAIL: 6

Safari

OK : 1
PASS: 1
FAIL: 6

Links

GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

/html/browsers/the-window-object/window-reuse-in-nested-browsing-contexts.tentative.html
after the first iframe load event, navigate iframe with no initial src.: FAIL (Chrome: FAIL, Safari: FAIL)

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/efcd9deaf221 [wpt PR 24051] - Add WPTs for Window object reuse in nested browsing contexts., a=testonly https://hg.mozilla.org/integration/autoland/rev/eafad858f878 [wpt PR 24051] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla79
You need to log in before you can comment on or make changes to this bug.