Closed
Bug 938093
Opened 11 years ago
Closed 11 years ago
Swap TabStateCache contents when docShells are swapped
Categories
(Firefox :: Session Restore, defect)
Firefox
Session Restore
Tracking
()
RESOLVED
FIXED
Firefox 28
People
(Reporter: ttaubert, Assigned: ttaubert)
References
Details
(Whiteboard: [qa-])
Attachments
(1 file)
3.96 KB,
patch
|
billm
:
review+
|
Details | Diff | Splinter Review |
We currently only swap existing tabs (that most likely have data in the tab state cache) with new ones. Therefore after swapping the tab state cache will not contain an entry for the non-blank docShell and we will collect data properly. We should handle the case correctly though.
Assignee | ||
Comment 1•11 years ago
|
||
Attachment #831453 -
Flags: review?(wmccloskey)
Comment on attachment 831453 [details] [diff] [review] 0003-Bug-938093-Swap-TabStateCache-contents-when-docShell.patch Review of attachment 831453 [details] [diff] [review]: ----------------------------------------------------------------- Why did you decide to go with aBrowser here? ::: browser/components/sessionstore/src/TabStateCache.jsm @@ +98,5 @@ > > /** > + * Swap cached data for two given browsers. > + * > + * @param {xul:browser} aBrowser The first of the two browsers that swapped Doesn't the final text usually go on its own line? @@ +234,5 @@ > + * swapped docShells. > + */ > + onSwapDocShells: function(aBrowser, aOtherBrowser) { > + // Make sure that one or the other of these has cached data, > + // and let it be |browser|. aBrowser @@ +243,5 @@ > + } > + } > + > + // At this point, |browser| is guaranteed to have cached data, > + // although |otherBrowser| may not. Perform the swap. Names also need update here.
Attachment #831453 -
Flags: review?(wmccloskey) → review+
Assignee | ||
Comment 3•11 years ago
|
||
(In reply to Bill McCloskey (:billm) from comment #2) > Why did you decide to go with aBrowser here? You're right, that should be |browser| and |otherBrowser| here. I usually just stick with the surrounding conventions but we should rather improve incrementally towards what most of sessionstore looks like nowadays (or will be soon). > > /** > > + * Swap cached data for two given browsers. > > + * > > + * @param {xul:browser} aBrowser The first of the two browsers that swapped > > Doesn't the final text usually go on its own line? Yeah, that looks better.
Assignee | ||
Comment 4•11 years ago
|
||
https://hg.mozilla.org/integration/fx-team/rev/60c9e7d0d038
Whiteboard: [fixed-in-fx-team]
Comment 5•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/60c9e7d0d038
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Flags: in-testsuite?
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 28
Updated•11 years ago
|
Whiteboard: [qa-]
You need to log in
before you can comment on or make changes to this bug.
Description
•