Remove unnecessary `isTransient` check when removing entries from the active entry list
Categories
(Core :: DOM: Navigation, task)
Tracking
()
| 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).
| Assignee | ||
Comment 1•6 months ago
|
||
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).
Updated•6 months ago
|
Comment 3•6 months ago
|
||
| bugherder | ||
Updated•5 months ago
|
Description
•