Closed Bug 1703291 Opened 3 years ago Closed 3 years ago

Fix dom/base/test/test_window_close.html for Fission+BFCache

Categories

(Core :: DOM: Navigation, defect, P2)

defect

Tracking

()

RESOLVED FIXED
89 Branch
Fission Milestone M7a
Tracking Status
firefox89 --- fixed

People

(Reporter: neha, Assigned: emilio)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

Failure log: https://treeherder.mozilla.org/logviewer?job_id=332690237&repo=try&lineNumber=6103

Prefs to set: fission.autostart and fission.bfcacheInParent

Severity: -- → S3
Fission Milestone: --- → M7a
Flags: needinfo?(emilio)
Priority: -- → P2

This is because mBrowsingContext->GetIsSingleToplevelInHistory(); is wrong with bfcache enabled, need to dig into how that is computed.

Ok, so in the test there's the following going on: We open a tab, let's call it 1.html, that tab loads a 2.html file via window.location = "2.html", then that second file does history.back(). With bfcache enabled, the three session history entries end up being referring to 1.html, which is obviously wrong.

But then GetIsSingleToplevelInHistory correctly says that there's only one document in session history (but there shouldn't!). So it's a bit of a deeper issue. Will dig more.

Otherwise when navigating to a replaced browsing context we might have
an incorrect "is single top-level in history".

Fixes test_window_close.html with Fission+bfcache.

Assignee: nobody → emilio
Status: NEW → ASSIGNED
Flags: needinfo?(emilio)
Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/51d244d886aa
Update root bc state when the root bc changes in the session history. r=smaug
Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/4d216ecbacd9
Run test_window_close with bfcacheInParent enabled. r=smaug
Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/73004945dd3e
Run test_window_close with bfcacheInParent enabled. r=smaug
https://hg.mozilla.org/integration/autoland/rev/abfde00b3322
Update root bc state when the root bc changes in the session history. r=smaug
Flags: needinfo?(emilio)
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 89 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: