Closed
Bug 609706
Opened 14 years ago
Closed 11 years ago
Logic in nsSessionStore.init is unnecessarily complex
Categories
(Firefox :: Session Restore, defect)
Firefox
Session Restore
Tracking
()
RESOLVED
FIXED
People
(Reporter: zpao, Unassigned)
Details
We have 2 conditions going down the same path with more conditions to differentiate those 2 conditions, just so we can hit the same return statement. That makes the code more difficult than it needs to be.
Comment 1•12 years ago
|
||
Do you mean http://mxr.mozilla.org/mozilla-central/source/browser/components/sessionstore/src/SessionStore.jsm#482 ? If so, I think that we could just remove http://mxr.mozilla.org/mozilla-central/source/browser/components/sessionstore/src/SessionStore.jsm#497 since |this.unload(aWindow)| does set the state to RUNNING if it was STOPPED before (http://mxr.mozilla.org/mozilla-central/source/browser/components/sessionstore/src/SessionStore.jsm#667). Is this the correct approach?
Assignee: nobody → michaelkohler
Status: NEW → ASSIGNED
Updated•12 years ago
|
Assignee: michaelkohler → nobody
Comment 2•11 years ago
|
||
This looks much better now due to recent rewrites.
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•