Closed Bug 1989132 Opened 6 months ago Closed 6 months ago

Remove unnecessary `isTransient` check when removing entries from the active entry list

Categories

(Core :: DOM: Navigation, task)

task

Tracking

()

RESOLVED FIXED
145 Branch
Tracking Status
firefox145 --- fixed

People

(Reporter: avandolder, Assigned: avandolder)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

The check at https://searchfox.org/firefox-main/rev/302639e599957123f8845cf7655ec10f479f2da2/docshell/base/CanonicalBrowsingContext.cpp#1230 was added when the active entry list consisted of RefPtrs to the various entries, which was causing initial about:blank entries to be kept around for too long and causing crashes when cycle-collecting. Removing transient entries bypassed that issue - but now that the active entry list does not use RefPtrs, these entries are cycle-collected correctly and remove themselves from the list via their destructor, so this check is now unnecessary (and may actually cause entries to be dropped from the list too early).

The check was added when the active entry list consisted of RefPtrs to the
various entries, which caused initial about:blank entries to be kept around for
too long and crashing when being cycle-collected. Removing transient entries
bypassed that issue - but now that the active entry list does not use RefPtrs,
these entries are cycle-collected correctly and remove themselves from the list
via their destructor, so this check is now unnecessary (and may actually cause
entries to be dropped from the list too early).

Assignee: nobody → avandolder
Status: NEW → ASSIGNED
Pushed by avandolder@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/c83f7c7cd342 https://hg.mozilla.org/integration/autoland/rev/110ca57a03c5 Remove unnecessary transient check when updating the active entry list. r=dom-core,smaug
Status: ASSIGNED → RESOLVED
Closed: 6 months ago
Resolution: --- → FIXED
Target Milestone: --- → 145 Branch
QA Whiteboard: [qa-triage-done-c146/b145]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: