Closed Bug 373949 Opened 18 years ago Closed 18 years ago

Crash restoration logic is wrong

Categories

(Camino Graveyard :: General, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Camino1.5

People

(Reporter: stuart.morgan+bugzilla, Assigned: stuart.morgan+bugzilla)

References

Details

(Keywords: fixed1.8.1.4)

Attachments

(1 file)

The code to not show the post-crash UI when there's no saved session introduced a bug that totally breaks our crash detection for people that don't turn session saving on: 1) Quit normally; PreviousSessionTerminatedNormally is now YES, and there's no saved session (since we delete it on normal quit when the pref is off) 2) Relaunch, and since there is no stored state we don't check for a crash, so we never set PreviousSessionTerminatedNormally back to NO 3) Crash 4) Be sad I'll post a fix tonight.
Attached patch fixSplinter Review
Having the update of the defaults done as a side effect of checking it makes it too easy to make the mistake I made, and solved a problem we don't have (being able to check it more than once), so this just moves the existing update logic into applicationDidFinishLaunching.
Attachment #258621 - Flags: review?
Comment on attachment 258621 [details] [diff] [review] fix r=me; Thanks for clearing this up, and sorry for missing the problem the first place.
Attachment #258621 - Flags: review? → review+
Attachment #258621 - Flags: superreview?(joshmoz)
Attachment #258621 - Flags: superreview?(joshmoz) → superreview+
Landed on trunk and MOZILLA_1_8_BRANCH.
Status: NEW → RESOLVED
Closed: 18 years ago
Keywords: fixed1.8.1.4
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: