Closed Bug 552236 Opened 14 years ago Closed 14 years ago

History not saved to disk on quit

Categories

(Camino Graveyard :: History, defect)

1.9.2 Branch
All
macOS
defect
Not set
major

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: chris, Assigned: chris)

Details

(Whiteboard: [cm192test])

Attachments

(1 file, 1 obsolete file)

Places doesn't save history to disk on quitting Camino. We need to package nsPlacesDBFlush.js and send Places the 'quit-application' message when shutting down embedding.
Attached patch Fix v1.0 (obsolete) — Splinter Review
Adds nsPlacesDBFlush.js to the project, and notifies observers (particularly nsPlacesDBFlush) of the 'quit-application' signal when shutting down.

Please note that this is a hg diff file.
Assignee: nobody → trendyhendy2000
Status: NEW → ASSIGNED
Attachment #432660 - Flags: superreview?(stuart.morgan+bugzilla)
Attachment #432660 - Flags: feedback?(alqahira)
Comment on attachment 432660 [details] [diff] [review]
Fix v1.0

f+

Thanks for being attentive to the alphabet, too :-)
Comment on attachment 432660 [details] [diff] [review]
Fix v1.0

>+  if (observerService) {
>     observerService->NotifyObservers(nsnull, "profile-change-net-teardown", nsnull);
>-  
>+    observerService->NotifyObservers(nsnull, "quit-application", nsnull);
>+  }
>+
>   // phase 2 notifcation (we really are about to terminate)
>   [[NSNotificationCenter defaultCenter] postNotificationName:XPCOMShutDownNotificationName object:nil];

Does the ordering of quit-application and our XPCOMShutDownNotification matter? I'm wondering if we might cause things to be closed down while our objects still want to use them.
Attached patch Fix v1.2Splinter Review
The order doesn't matter too much at the moment, but looking at other Camino code it would make more sense to notify Gecko observers after Camino observers.
Attachment #432660 - Attachment is obsolete: true
Attachment #434680 - Flags: superreview?(stuart.morgan+bugzilla)
Attachment #432660 - Flags: superreview?(stuart.morgan+bugzilla)
Attachment #434680 - Flags: superreview?(stuart.morgan+bugzilla) → superreview+
Comment on attachment 434680 [details] [diff] [review]
Fix v1.2

sr=smorgan
http://hg.mozilla.org/camino/rev/4c64f9b49b84
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: