[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)
Tracking
()
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: Ie45be130e196c385bff62260467cbb2733c4a54eReviewed-on: https://chromium-review.googlesource.com/2236721
WPT-Export-Revision: 79b163bb8797c6b8baf63137a34f360912382fca
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 1•5 years ago
|
||
Assignee | ||
Comment 2•5 years ago
|
||
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
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)
Comment 4•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/efcd9deaf221
https://hg.mozilla.org/mozilla-central/rev/eafad858f878
Description
•