Closed Bug 340895 Opened 18 years ago Closed 18 years ago

Move SessionStore preferences to firefox.js

Categories

(Firefox :: Session Restore, defect)

2.0 Branch
defect
Not set
minor

Tracking

()

VERIFIED FIXED
Firefox 2

People

(Reporter: zeniko, Assigned: zeniko)

References

Details

(Keywords: fixed1.8.1.2)

Attachments

(3 files, 8 obsolete files)

... and get rid of _getPref and DEFAULT_* altogether. This is what most other components do and would at least make it obvious to testers what defaults were chosen (i.e. that it's currently disabled and that POSTDATA won't be saved).
*** Bug 343151 has been marked as a duplicate of this bug. ***
Attached patch fix (obsolete) — Splinter Review
Assignee: nobody → zeniko
Status: NEW → ASSIGNED
Attachment #227758 - Flags: review?(mconnor)
Attached patch browser.js bits (obsolete) — Splinter Review
Attachment #227762 - Flags: review?(mconnor)
Flags: blocking-firefox2?
Target Milestone: --- → Firefox 2 beta2
Version: unspecified → 2.0 Branch
Will likely still take this, but not going to block on code cleanup.
Flags: blocking-firefox2? → blocking-firefox2-
Attached patch .startup.page firefox.js bits (obsolete) — Splinter Review
just updates browser.startup.page notes in firefox.js after bug 340898
Attached patch all-in-one patch (obsolete) — Splinter Review
Asking review from Dietrich since he's probably got more time for this.
Attachment #227758 - Attachment is obsolete: true
Attachment #227762 - Attachment is obsolete: true
Attachment #229878 - Attachment is obsolete: true
Attachment #229881 - Flags: review?(dietrich)
Attachment #227758 - Flags: review?(mconnor)
Attachment #227762 - Flags: review?(mconnor)
Comment on attachment 229881 [details] [diff] [review] all-in-one patch Simon, could you please update this patch to current trunk? thanks.
Attachment #229881 - Flags: review?(dietrich)
Attached patch fix (unbitrotted) (obsolete) — Splinter Review
Attachment #229881 - Attachment is obsolete: true
Attachment #233498 - Flags: review?(bugs.mano)
Comment on attachment 233498 [details] [diff] [review] fix (unbitrotted) r=mano (trunk only for now).
Attachment #233498 - Flags: review?(bugs.mano) → review+
Whiteboard: [checkin needed]
Checked in on trunk. Request approval as necessary if you want this landed on branch. /mozilla/browser/components/sessionstore/src/nsSessionStore.js 1.37 /mozilla/browser/components/sessionstore/src/nsSessionStartup.js 1.11 /mozilla/browser/app/profile/firefox.js 1.147 /mozilla/browser/base/content/browser.js 1.685
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Whiteboard: [checkin needed]
Backed out due to tinderbox orange.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Attached patch fix (unbitrotted 2) (obsolete) — Splinter Review
(In reply to comment #11) > Backed out due to tinderbox orange. Any idea what might have caused this? In case it was just bitrot - please land this updated patch.
Attachment #233498 - Attachment is obsolete: true
Whiteboard: [checkin needed]
Target Milestone: Firefox 2 beta2 → Firefox 2
I don't think it was bitrot; I think it had something to do with moving the prefs. to firefox.js -- the startup tests were failing in the same way they did when session store was first enabled. pkasting, rhelmer and I discussed this on IRC. I don't know if they ever figured out what was /actually/ going on, though.
(In reply to comment #13) > I don't think it was bitrot; I think it had something to do with moving the > prefs. to firefox.js -- the startup tests were failing in the same way they did > when session store was first enabled. IIRC the startup tests were failing because SessionStore tried to restore the previous session since Firefox is simply killed after each test. To that end we had introduced the browser.sessionstore.resume_from_crash pref which is set to false by the test setup script. Adding that pref to firefox.js should however not have any effect since the setup script already changes the value of other prefs having a default value. I'd thus appreciate it if anybody with better knowledge about the testing infrastructure could shed some insight on the matter.
Status: REOPENED → NEW
Simon, could you post an updated patch that applies to current trunk?
Whiteboard: [checkin needed] → [updated patch needed]
Attached patch fix (unbitrotted 3) (obsolete) — Splinter Review
Attachment #236432 - Attachment is obsolete: true
*** Bug 363650 has been marked as a duplicate of this bug. ***
Attached patch fix (unbitrotted 4) (obsolete) — Splinter Review
unbitrotted, and fixed syntax error.
Assignee: zeniko → dietrich
Attachment #240048 - Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #248466 - Flags: review?(mano)
Bug 363650 was marked a duplicate of this (sorry about that, I did search), but for the FF2 updates I only want the firefox.js changes, not the code cleanup (defaults in the code aren't going to hurt anything in FF2).
Flags: blocking1.8.1.2?
Flags: blocking1.8.1.2? → blocking1.8.1.2+
Assignee: dietrich → zeniko
Attachment #249011 - Flags: review?(gavin.sharp)
Attachment #249011 - Flags: approval1.8.1.2?
Attachment #249011 - Flags: review?(gavin.sharp) → review+
Whiteboard: [updated patch needed]
Comment on attachment 248466 [details] [diff] [review] fix (unbitrotted 4) lets try landing this again.
Attachment #248466 - Flags: review?(mano) → review+
Whiteboard: [checkin needed]
Comment on attachment 249011 [details] [diff] [review] prefs only (branch patch) Approved for 1.8 branch, a=jay for drivers.
Attachment #249011 - Flags: approval1.8.1.2? → approval1.8.1.2+
Whiteboard: [checkin needed] → [checkin needed][checkin needed (1.8 branch)]
I was just about to check this in, but it got bitrotted by bug 364972 :(.
Whiteboard: [checkin needed][checkin needed (1.8 branch)] → [checkin needed (1.8 branch)]
mozilla/browser/app/profile/firefox.js 1.71.2.80
Keywords: fixed1.8.1.2
Whiteboard: [checkin needed (1.8 branch)]
i'm un-bitrotting the trunk patch now for check-in.
Sorry 'bout the bitrot. Here we go again...
Attachment #248466 - Attachment is obsolete: true
Checking in browser/app/profile/firefox.js; /cvsroot/mozilla/browser/app/profile/firefox.js,v <-- firefox.js new revision: 1.168; previous revision: 1.167 done Checking in browser/base/content/browser.js; /cvsroot/mozilla/browser/base/content/browser.js,v <-- browser.js new revision: 1.748; previous revision: 1.747 done Checking in browser/components/sessionstore/src/nsSessionStartup.js; /cvsroot/mozilla/browser/components/sessionstore/src/nsSessionStartup.js,v <-- nsSessionStartup.js new revision: 1.15; previous revision: 1.14 done Checking in browser/components/sessionstore/src/nsSessionStore.js; /cvsroot/mozilla/browser/components/sessionstore/src/nsSessionStore.js,v <-- nsSessionStore.js new revision: 1.57; previous revision: 1.56 done
Status: ASSIGNED → RESOLVED
Closed: 18 years ago18 years ago
Resolution: --- → FIXED
Component: General → Session Restore
QA Contact: general → session.restore
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: