Closed
Bug 900089
Opened 11 years ago
Closed 11 years ago
SessionStore.setTabState on pending tab doesn't call _resetTabRestoringState
Categories
(Firefox :: Session Restore, defect)
Firefox
Session Restore
Tracking
()
RESOLVED
FIXED
Firefox 27
People
(Reporter: tabmix.onemen, Assigned: avp)
Details
(Whiteboard: [good first bug][mentor=ttaubert][lang=js])
Attachments
(1 file, 1 obsolete file)
SessionRetore.setTabState on pending tab doesn't call _resetTabRestoringState _resetTabRestoringState comment is: "Reset the restoring state for a particular tab. This will be called when removing a tab or when a tab needs to be reset (it's being overwritten)."
Reporter | ||
Updated•11 years ago
|
Summary: SessionRetore.setTabState on pending tab doesn't call _resetTabRestoringState → SessionStore.setTabState on pending tab doesn't call _resetTabRestoringState
Updated•11 years ago
|
Assignee: nobody → ttaubert
OS: Windows 7 → All
Comment 1•11 years ago
|
||
Oops, didn't mean to assign that to me.
Assignee: ttaubert → nobody
Whiteboard: [good first bug][mentor=ttaubert][lang=js]
Assignee | ||
Comment 2•11 years ago
|
||
Hi Tim, I would like to work on this bug. Can you please help me get started with it? Thanks.
Comment 3•11 years ago
|
||
Hey Abhishek, that's great to hear! This is what we need to do: Right above the TabStateCache.delete() call [1] we want to reset the tab's restoring state but only if it currently is restoring. To do that we can just insert the following code: if (aTab.linkedBrowser.__SS_restoreState) { this._resetTabRestoringState(aTab); } Should you have any more questions don't hesitate to ask here or on IRC. [1] http://mxr.mozilla.org/mozilla-central/source/browser/components/sessionstore/src/SessionStore.jsm#1463
Assignee | ||
Comment 4•11 years ago
|
||
Assignee: nobody → abhishekp.bugzilla
Status: NEW → ASSIGNED
Attachment #811226 -
Flags: review?(ttaubert)
Comment 5•11 years ago
|
||
Comment on attachment 811226 [details] [diff] [review] bug-900089-fix.patch Review of attachment 811226 [details] [diff] [review]: ----------------------------------------------------------------- Thanks, this looks great! Can you please prepare the patch for checkin-needed? ::: browser/components/sessionstore/src/SessionStore.jsm @@ +1459,5 @@ > debug("Default view of ownerDocument must have a unique identifier"); > throw (Components.returnCode = Cr.NS_ERROR_INVALID_ARG); > } > + > + if (aTab.linkedBrowser.__SS_restoreState) { Nit: the first line above the if statement has some white space in it, can you please remove that?
Attachment #811226 -
Flags: review?(ttaubert) → review+
Assignee | ||
Comment 6•11 years ago
|
||
Attachment #811226 -
Attachment is obsolete: true
Attachment #811701 -
Flags: checkin?
Comment 7•11 years ago
|
||
Thanks! https://hg.mozilla.org/integration/fx-team/rev/8d198483ae3b
Comment 8•11 years ago
|
||
Comment on attachment 811701 [details] [diff] [review] Added call to _resetTabRestoringState in SessionRestore.setTabState Small hint: Please use the 'checkin-needed' keyword the next time. You can set is using the 'Keywords' field at the top. The checkin flag is only used for bugs with multiple patches that need to be landed.
Attachment #811701 -
Flags: checkin?
Comment 9•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/8d198483ae3b
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 27
Assignee | ||
Comment 10•11 years ago
|
||
Thanks Tim, will take care about that from next time ! :)
You need to log in
before you can comment on or make changes to this bug.
Description
•