Closed
Bug 855147
Opened 12 years ago
Closed 12 years ago
Defect: Settings do not persist when closing Firefox from desktop application bar
Categories
(Firefox for Metro Graveyard :: Shell, defect, P1)
Tracking
(Not tracked)
VERIFIED
FIXED
Firefox 24
People
(Reporter: kjozwiak, Assigned: TimAbraldes)
References
Details
(Whiteboard: feature=defect c=Settings_pane_options_and_about u=metro_firefox_user p=2)
Attachments
(1 file, 1 obsolete file)
(deleted),
patch
|
benjamin
:
review+
|
Details | Diff | Splinter Review |
Settings will not persist in Metro Firefox when you follow these steps:
1. Open Metro Firefox
2. Change some settings
3. Go to Desktop
4. Expand the application bar on the left and locate Metro Firefox
5. Right click on Metro Firefox and click the close menu
6. Re-open Metro Firefox
Actual Results:
- No settings are persisted.
Expected Results:
- Settings should be persisted.
Updated•12 years ago
|
Blocks: metrov1it5
Flags: needinfo?(mmucci)
Priority: -- → P1
Whiteboard: feature=defect c=Settings_pane_options_and_about u=metro_firefox_user p=tbd
Comment 2•12 years ago
|
||
When closing Firefox in this way we basically don't get a clean shutdown. Maybe the fix here is to save after dismissing the settings pane instead of on app shutdown.
Assignee: nobody → netzen
Whiteboard: feature=defect c=Settings_pane_options_and_about u=metro_firefox_user p=tbd → feature=defect c=Settings_pane_options_and_about u=metro_firefox_user p=2
Comment 3•12 years ago
|
||
Unassigned myself for now, but if no one else wants it I'll take it.
Assignee: netzen → nobody
Updated•12 years ago
|
Updated•12 years ago
|
Updated•12 years ago
|
Priority: P1 → --
Comment 5•12 years ago
|
||
Point Estimation =2.
Whiteboard: feature=defect c=Settings_pane_options_and_about u=metro_firefox_user p=2 → feature=defect c=Settings_pane_options_and_about u=metro_firefox_user p=0
Updated•12 years ago
|
Assignee: nobody → tabraldes
Status: NEW → ASSIGNED
QA Contact: jbecerra
Whiteboard: feature=defect c=Settings_pane_options_and_about u=metro_firefox_user p=0 → feature=defect c=Settings_pane_options_and_about u=metro_firefox_user p=2
Updated•12 years ago
|
Priority: -- → P1
Assignee | ||
Comment 6•12 years ago
|
||
This patch listens saves preferences when the metro process is suspended.
This patch modifies metro's browser.js to listen for process suspension, but really I'm thinking that the preferences service should do this at [1]. I'm not sure how that will affect other platforms, so maybe let's land this patch and file a follow-up to modify the preferences service?
[1] https://mxr.mozilla.org/mozilla-central/source/modules/libpref/src/Preferences.cpp?rev=36a1a6b81f90#405
Attachment #745323 -
Flags: review?(netzen)
Comment 7•12 years ago
|
||
Comment on attachment 745323 [details] [diff] [review]
patch v1
Review of attachment 745323 [details] [diff] [review]:
-----------------------------------------------------------------
We'll be saving it sometimes when we don't need to but I don't think that matters too much since it's on suspend. Thanks!
> I'm not sure how that will affect other platforms, so maybe let's land this patch and file a follow-up to modify the preferences service?
Improper shutdowns like this from the application bar is unique to windows so we don't have to worry about other platforms w/ -metrodesktop.
suspend_process_notification will only be fired from windows so this patch has pretty much no effect on those other platforms, which is fine.
::: browser/metro/base/content/browser.js
@@ +610,5 @@
> */
> _handleCertException: function _handleCertException(aMessage) {
> let json = aMessage.json;
> if (json.action == "leave") {
> + // Get the start page from the *default* prefbranch, not the user's
nit: I think I prefer pref branch
Attachment #745323 -
Flags: review?(netzen) → review+
Assignee | ||
Comment 8•12 years ago
|
||
(In reply to Brian R. Bondy [:bbondy] from comment #7)
> Comment on attachment 745323 [details] [diff] [review]
> patch v1
>
> Review of attachment 745323 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> We'll be saving it sometimes when we don't need to but I don't think that
> matters too much since it's on suspend. Thanks!
>
> > I'm not sure how that will affect other platforms, so maybe let's land this patch and file a follow-up to modify the preferences service?
>
> Improper shutdowns like this from the application bar is unique to windows
> so we don't have to worry about other platforms w/ -metrodesktop.
> suspend_process_notification will only be fired from windows so this patch
> has pretty much no effect on those other platforms, which is fine.
Ah, then maybe I can go ahead and change the prefs service instead of modifying browser.js? The only reason I was thinking that this change should go in the prefs service instead of browser.js is that there are other shared services that handle the message directly [1][2][3] instead of us doing the processing in metro-specific code.
> ::: browser/metro/base/content/browser.js
> @@ +610,5 @@
> > */
> > _handleCertException: function _handleCertException(aMessage) {
> > let json = aMessage.json;
> > if (json.action == "leave") {
> > + // Get the start page from the *default* prefbranch, not the user's
>
> nit: I think I prefer pref branch
ha, I'm not even sure how that change got in there. I guess a cat stepped on my keyboard while I had that file open in a text editor :)
[1] https://mxr.mozilla.org/mozilla-central/source/xpcom/threads/TimerThread.cpp?rev=fb7aae8421bc#417
[2] https://mxr.mozilla.org/mozilla-central/source/netwerk/cache/nsCacheService.cpp?rev=e73333270ce5#408
[3] https://mxr.mozilla.org/mozilla-central/source/toolkit/components/downloads/nsDownloadManager.cpp?rev=c8b3e4b6a8b5#2400
Comment 9•12 years ago
|
||
Ya I added those calls, I think that's a good suggestion but it may take a while to get a review if you do it that way. I'm ok with landing it this way to save time, but I'll leave it up to you.
Assignee | ||
Comment 10•12 years ago
|
||
This patch save preferences when the process is being suspended.
Benjamin: You're listed as a Preferences peer. Dan Witte is listed as the module owner, but his bugzilla name indicates that he doesn't read bugmail. Please feel free to forward this review to whomever makes sense/has time.
Attachment #745323 -
Attachment is obsolete: true
Attachment #746085 -
Flags: review?(benjamin)
Updated•12 years ago
|
Attachment #746085 -
Flags: review?(benjamin) → review+
Assignee | ||
Comment 11•12 years ago
|
||
Comment 12•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 24
Comment 14•12 years ago
|
||
Mozilla/5.0 (Windows NT 6.2; rv:24.0) Gecko/20130526 Firefox/24.0
Could still reproduce with my older profile (used since before the fix), but it works on a clean one. So I'll set this to verified.
- settings (Startup, Character Encoding, Password and DNT) are remembered when exiting Metro Firefox normally through drag and drop.
- settings (Startup, Character Encoding, Password and DNT) are remembered when exiting Metro Firefox through the application bar
Status: RESOLVED → VERIFIED
Flags: needinfo?(virgil.dicu)
Updated•10 years ago
|
OS: Windows 8 Metro → Windows 8.1
You need to log in
before you can comment on or make changes to this bug.
Description
•