Closed
Bug 1162036
Opened 10 years ago
Closed 10 years ago
onPurgeSessionHistory() empties pending tabs and then just leaves them there
Categories
(Firefox :: Session Restore, defect)
Firefox
Session Restore
Tracking
()
Tracking | Status | |
---|---|---|
firefox40 | --- | verified |
People
(Reporter: ttaubert, Assigned: ttaubert)
References
Details
Attachments
(1 file)
2.22 KB,
patch
|
Yoric
:
review+
|
Details | Diff | Splinter Review |
Currently, sanitizing browser history makes sessionstore throw away most of its state and recollect it. Pending/restoring tabs however are simply "cleared", they keep their icon and title but if you switch to them you just see "about:blank" and nothing happens. Looks like I also broke that functionality with the TabStateCache as quitting the browser in that state brings back all these emptied tabs.
Instead of leaving empty tabs around, that even confuse users due to them still having the same title and favicon, we should simply remove them. That resembles a lot better what actually happens and fixes the TabStateCache problem too.
Assignee | ||
Updated•10 years ago
|
Assignee: nobody → ttaubert
Status: NEW → ASSIGNED
Iteration: --- → 40.3 - 11 May
Points: --- → 2
Flags: qe-verify+
Flags: firefox-backlog+
Assignee | ||
Comment 1•10 years ago
|
||
Attachment #8602101 -
Flags: review?(dteller)
Comment 2•10 years ago
|
||
Comment on attachment 8602101 [details] [diff] [review]
0001-Bug-1162036-Remove-pending-restoring-tabs-when-recei.patch
Review of attachment 8602101 [details] [diff] [review]:
-----------------------------------------------------------------
::: browser/components/sessionstore/SessionStore.jsm
@@ +1260,5 @@
> this._forEachBrowserWindow(function(aWindow) {
> + let tabs = aWindow.gBrowser.tabs;
> + // Remove pending or restoring tabs instead of just emptying them.
> + for (let i = tabs.length - 1; i >= 0; i--) {
> + if (tabs[i].linkedBrowser.__SS_restoreState) {
Note to self: We'll need to get rid of __SS_restoreState one of these days.
Attachment #8602101 -
Flags: review?(dteller) → review+
Assignee | ||
Comment 3•10 years ago
|
||
(In reply to David Rajchenbach-Teller [:Yoric] (use "needinfo") from comment #2)
> Note to self: We'll need to get rid of __SS_restoreState one of these days.
Indeed. Thanks!
Comment 5•10 years ago
|
||
Assignee | ||
Comment 7•10 years ago
|
||
Pushed again with a small fix so that we don't try to remove the last tab of a window when purging shistory.
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 40
Updated•10 years ago
|
QA Contact: cornel.ionce
Comment 9•10 years ago
|
||
Verified as fixed on Windows 7 64-bit, Mac OS X 10.9.5 and Ubuntu 14.04 32-bit using:
- latest Nightly, build ID: 20150617030205.
- latest Aurora, build ID: 20150617004006.
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•