Closed
Bug 351490
Opened 20 years ago
Closed 20 years ago
"clear now" button doesn't behave according to checkbox "ask me before clearing private data" in tools - options - privacy
Categories
(Firefox :: Settings UI, defect, P1)
Tracking
()
RESOLVED
FIXED
Firefox 2
People
(Reporter: u130342, Assigned: Gavin)
Details
(Keywords: fixed1.8.1)
Attachments
(1 file)
|
1.63 KB,
patch
|
mconnor
:
review+
mtschrep
:
approval1.8.1+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1b2) Gecko/20060821 Firefox/2.0b2
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1b2) Gecko/20060821 Firefox/2.0b2
In options - privacy - checkbox "ask me before clearing private data" there's a button "clear now".
When the checkbox is checked the button gets ellipses "Clear Now..." indicating a dialog will appear after clicking, if unchecked ellipses disappear.
But, when clicking "Clear Now" or "Clear Now..." the state of the checkbox is ignored! Instead the setting gets used which was active when opening the dialog (privacy.sanitize.promptOnSanitize).
Thus:
privacy.sanitize.promptOnSanitize=true, checkbox=unchecked, "Clear Now", shows dialog
privacy.sanitize.promptOnSanitize=false, checkbox=checked, "Clear Now", doesn't show dialog
Reproducible: Always
Steps to Reproduce:
1. open - tools - options, select privacy
2. change checkbox "ask me before clearing private data" !important!
3. click "clear now/..."
4. click ok (saves preferences)
5. repeat step 1-4
Actual Results:
if "clear now...": no dialog is shown
if "clear now": dialog is shown
Expected Results:
"Clear Now..." should always show dialog
"Clear Now" should never show dialog
Clear Now button should show dialog according to checkbox
Maybe it's a critical bug, because one might think to be able click on "clear now..." then deselect something (e.g. browsing history). Browsing history is the lost immediately, without further notice!
Comment 1•20 years ago
|
||
I can reproduce "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1b2) Gecko/20060904 BonEcho/2.0b2". Requesting "blocking-firefox2"
Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: blocking-firefox2?
Comment 3•20 years ago
|
||
Gavin, short version is, from looking at how we call this, the pref needs to be synced when the Clear Now button is clicked.
This is going to be whenever instantApply is set to false
Assignee: nobody → gavin.sharp
Flags: blocking-firefox2? → blocking-firefox2+
| Assignee | ||
Comment 4•20 years ago
|
||
It's not just a matter of syncing the pref before calling sanitize, because we don't want the pref to be changed if the user then clicks cancel. Option 1 would be to set and the restore the pref around the sanitize() call, but that's pretty hacky. Option 2 would be to not update the button unless the pref actually changes, but I'm not sure that that is optimal behavior.
Status: NEW → ASSIGNED
OS: Windows XP → All
Priority: -- → P1
Hardware: PC → All
Target Milestone: --- → Firefox 2
Comment 5•20 years ago
|
||
Maybe we should just update the ellipsis on windows open, and onsynctopreference, then the behaviour doesn't change until the pref takes effect. This is correct, if slightly confusing.
| Assignee | ||
Comment 6•20 years ago
|
||
This makes it so that the button label doesn't change when instantApply is false, and the checkbox is toggled. The instantApply=true case isn't affected, since valueFromPreferences changes before the onchange handler is called.
Attachment #238008 -
Flags: review?(mconnor)
| Assignee | ||
Updated•20 years ago
|
Whiteboard: [patch-r?]
Comment 7•20 years ago
|
||
Comment on attachment 238008 [details] [diff] [review]
update the button based on the actual pref value
please get this in ASAP and request approval.
this shouldn't have any risk, its just calling another method on the same object.
Attachment #238008 -
Flags: review?(mconnor) → review+
| Assignee | ||
Comment 8•20 years ago
|
||
mozilla/browser/components/preferences/privacy.js 1.18
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Whiteboard: [patch-r?] → [needs approval]
| Assignee | ||
Updated•20 years ago
|
Attachment #238008 -
Flags: approval1.8.1?
Comment 9•20 years ago
|
||
Comment on attachment 238008 [details] [diff] [review]
update the button based on the actual pref value
a=schrep for drivers.
Attachment #238008 -
Flags: approval1.8.1? → approval1.8.1+
| Assignee | ||
Comment 10•20 years ago
|
||
mozilla/browser/components/preferences/privacy.js 1.9.2.6
Keywords: fixed1.8.1
Whiteboard: [needs approval]
You need to log in
before you can comment on or make changes to this bug.
Description
•