[wpt-sync] Sync PR 64900 - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=330469
Categories
(Core :: DOM: Core & HTML, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox163 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 64900 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/64900
Details from upstream follow.
Anne van Kesteren <annevk@annevk.nl> wrote:
WebKit export of https://bugs.webkit.org/show_bug.cgi?id=330469
WebKit export from bug: REGRESSION(<!---->325869@<!---->main)<!---->:<!----> history-<!---->traversal-<!---->frames.<!---->tentative.<!---->https.<!---->html times out with site isolation
<pre>
Going back can fail to restore a child frame that loads in another processhistory-traversal-frames.tentative.https.html, added in <a href="https://commits.webkit.org/325854@main">325854@main</a>, timed
out with site isolation after <a href="https://commits.webkit.org/325869@main">325869@main</a>, and <a href="https://commits.webkit.org/326010@main">326010@main</a> added a second
cause.When a child frame's provisional load failed, checkLoadCompleteForThisFrame()
ended the frame's wait for a delegated back/forward load before it reported
the failure. That checks the parent, which checked the child again and
reported the failure a second time, without the
LoadWillContinueInAnotherProcess::Yes of the first check, so the UI process
took away the provisional frame of a load that a Document-Isolation-Policy
response had moved to another process. Until <a href="https://commits.webkit.org/325869@main">325869@main</a>, a failed history
load always reported that loading would continue, which hid this. The wait
now ends after the failure is reported, and not at all when the load
continues in another process: the wait is then all that keeps the parent
from finishing first, and provisionalLoadFailedInAnotherProcess() ends it if
the load fails there.A navigation that moves the page to another process without a user gesture,
or that replaces the entry, sends the new process the current history item.
Building a HistoryItem from it sent each change back to the UI process. Since
<a href="https://commits.webkit.org/326010@main">326010@main</a>, that state only has identifiers for frames the process doesn't
host, so this erased the UI process's state for such a child frame, which
then had no URL to load when going back. toHistoryItem() now ignores those
changes itself, instead of leaving that to its callers, two of which didn't.
ignoreChangesForScope() now restores the previous state, so that the wider
scope in WebFrame::setHistoryItemForBackForwardNavigation() still holds.history-traversal-frames.tentative.https.html now also checks that the
document's load event waits for its child frame.WebKit-Bug: <a href="https://bugs.webkit.org/show_bug.cgi?id=330469">https://bugs.webkit.org/show_bug.cgi?id=330469</a>
</pre>
| Assignee | ||
Comment 1•13 days ago
|
||
PR 64900 applied with additional changes from upstream: fc7c47fcb9172a216914879460e98018348ee3c5
| Assignee | ||
Updated•13 days ago
|
| Assignee | ||
Comment 2•13 days ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=121681
| Assignee | ||
Comment 3•13 days ago
|
||
CI Results
Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 1 tests and 5 subtests
Status Summary
Firefox
OK : 1
PASS: 2
FAIL: 3
Chrome
OK : 1
PASS: 4
FAIL: 1
Safari
OK : 1
PASS: 2
FAIL: 3
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
New Tests That Don't Pass
- /html/document-isolation-policy/history-traversal-frames.tentative.https.html [wpt.fyi]
- A document without a policy and a same-origin child frame with one are loaded again after a cross-site navigation:
FAIL(Chrome:PASS, Safari:FAIL) - A document without a policy and a cross-site child frame with one are loaded again after a cross-site navigation:
FAIL(Chrome:PASS, Safari:FAIL) - A document without a policy and a same-origin child frame that navigated to a document with one are loaded again after a cross-site navigation:
FAIL(Chrome:FAIL, Safari:FAIL)
- A document without a policy and a same-origin child frame with one are loaded again after a cross-site navigation:
Comment 5•10 days ago
|
||
| bugherder | ||
Description
•