Open
Bug 789701
Opened 12 years ago
Updated 2 years ago
SessionStore does not dispatch SSWindowClosing event on quit-application-requested
Categories
(Firefox :: Session Restore, defect)
Firefox
Session Restore
Tracking
()
NEW
People
(Reporter: nmaier, Unassigned)
Details
Attachments
(1 file, 1 obsolete file)
1.41 KB,
patch
|
Details | Diff | Splinter Review |
When closing a window SessionStore will dispatch SSIWindowClosing event so that consumers like add-ons may listen to to bring their state in order before the window state is frozen and persisted a last time: http://mxr.mozilla.org/mozilla-central/source/browser/components/sessionstore/src/SessionStore.jsm#821 However, there is no such event dispatched if the window goes away because the user quits the application: http://mxr.mozilla.org/mozilla-central/source/browser/components/sessionstore/src/SessionStore.jsm#889 STR: - Have some code (an add-on) listening to SSWindowClosing - Open two windows - Close one of these windows -> SSWindowClosing is observed - Quit the browser with the other window still open -> No event observed Expected: -> SSWindowClosing is dispatched and can be observed for the second window as well.
Updated•12 years ago
|
Assignee: nobody → michaelkohler
Comment 1•11 years ago
|
||
Attachment #740027 -
Flags: review?(ttaubert)
Comment 2•11 years ago
|
||
Attachment #740027 -
Attachment is obsolete: true
Attachment #740027 -
Flags: review?(ttaubert)
Attachment #740029 -
Flags: review?(ttaubert)
Comment 3•11 years ago
|
||
Comment on attachment 740029 [details] [diff] [review] Patch v2 Review of attachment 740029 [details] [diff] [review]: ----------------------------------------------------------------- I don't see the issue mentioned in this bug. I can open one window and quit and see one SSWindowClosing event dispatched. If I open two windows and quit I receive two SSWindowClosing events. This is on Linux. ::: browser/components/sessionstore/src/SessionStore.jsm @@ +944,5 @@ > */ > onQuitApplicationRequested: function ssi_onQuitApplicationRequested() { > + // notify that the session store will stop tracking this window so that > + // extensions can store any data about this window in session store before > + // that's not possible anymore quit-application-requested doesn't seem like the right place to do it because we could still be kept alive by some observer.
Attachment #740029 -
Flags: review?(ttaubert)
Updated•11 years ago
|
Assignee: mkohler → nobody
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•