Closed Bug 826371 Opened 12 years ago Closed 12 years ago

Canceling UI for per-window private browsing autostart mode, doesn't revert browser.privatebrowsing.autostart preference

Categories

(Firefox :: Private Browsing, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 20

People

(Reporter: morac, Assigned: ehsan.akhgari)

References

Details

Attachments

(1 file)

Bug 801823 added a UI to force the browser to restart if the user tries to enable private browsing autostart mode.  The problem is that if the user cancels the prompt, the browser.privatebrowsing.autostart isn't reverted to the original value so a restart isn't "required" to change the setting.

Steps to reproduce:
1. Open options and change the "Firefox will" setting on the Privacy tab.
2. Click Okay.
3. At prompt click cancel.

At this point the options window will close, but the browser.privatebrowsing.autostart preference will be changed.  This can be verified by re-opening the Options window or checking about:config


I looked at the code and it appears that the options in the preference window are being reverted (and I can see this quickly before the option window closes), but since the "Okay" button was clicked and the options window is closing, that doesn't actually revert the preference change.  

Either the close of the options window needs to be stopped or (and this is better since the user could then cancel the options) the prefs.valueFromPreferences should be reverted.


Also I'll mention the options window UI change does nothing to prevent the actual changing of the browser.privatebrowsing.autostart preference from something like the about:config page (or any where other than the options window).
(In reply to Michael Kraft [:morac] from comment #0)
> Also I'll mention the options window UI change does nothing to prevent the
> actual changing of the browser.privatebrowsing.autostart preference from
> something like the about:config page (or any where other than the options
> window).

Yes, that is intentional.  That is not a supported way of turning this feature on.
Blocks: PBnGen
Assignee: nobody → ehsan
Attached patch Patch (v1)Splinter Review
We just need to make sure that the autostart pref is always instantApply, even on Windows.  I also took out the obsolete keep_current_session pref while I was there.
Attachment #697552 - Flags: review?(josh)
Attachment #697552 - Flags: review?(josh) → review+
https://hg.mozilla.org/mozilla-central/rev/2c7919e052be
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 20
Depends on: 842290
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: