New Sanitize dialog breaks policy
Categories
(Toolkit :: Data Sanitization, defect, P1)
Tracking
()
Tracking | Status | |
---|---|---|
firefox-esr115 | --- | unaffected |
firefox124 | --- | disabled |
firefox125 | --- | disabled |
firefox126 | --- | fixed |
People
(Reporter: mkaply, Assigned: hsohaney)
References
(Blocks 1 open bug, Regression)
Details
(Keywords: regression)
Attachments
(1 file)
This breaks enteprise policy.
We have policy related to sanitize on shutdown.
There are seven preferences that control this:
privacy.sanitize.sanitizeOnShutdown
privacy.clearOnShutdown.cache, privacy.clearOnShutdown.cookies, privacy.clearOnShutdown.downloads, privacy.clearOnShutdown.formdata, privacy.clearOnShutdown.history, privacy.clearOnShutdown.sessions, privacy.clearOnShutdown.siteSettings, privacy.clearOnShutdown.offlineApps
And we have policy settings to control them by name:
Cache, Cookies, Download History, Form & Search History, Browsing History, Active Logins, Site Preferences and Offline Website Data.
With the new dialog, there are only four options, and locking the above preferences doesn't impact the dialog at all.
https://mozilla.github.io/policy-templates/#sanitizeonshutdown-selective
Comment 1•8 months ago
|
||
Thanks Mike! This looks like something we should address before releasing the new dialog. Harshit, could you take a look please?
We will have to update the policy settings to align with our new prefs. Mike, do we need any kind of migration, or would we just update the code + documentation for enterprise policy? We do migrate the prefs, but I assume that wouldn't affect any policy changes since those set the default pref state. Do you know where the code lives that controls the clear-on-shutdown prefs from the enterprise policy side?
Updated•8 months ago
|
Comment 2•8 months ago
|
||
Found the policy code controlling the prefs: https://searchfox.org/mozilla-central/rev/159929cd10b8fba135c72a497d815ab2dd5a521c/browser/components/enterprisepolicies/Policies.sys.mjs#2016
Looks like we need to do the following:
- Extend https://searchfox.org/mozilla-central/rev/159929cd10b8fba135c72a497d815ab2dd5a521c/browser/components/enterprisepolicies/Policies.sys.mjs#2016 to also support the new prefs. We should keep support for the old prefs until we remove the old dialog.
- Support locking of prefs in the new dialog. How does the old dialog behave? Do we just disable the checkboxes?
- Migration or some form of backwards compatibility for the policy settings? I'm hoping we won't have to do this because it adds more complexity.
Comment 3•8 months ago
|
||
Set release status flags based on info from the regressing bug 1854680
Comment 4•8 months ago
|
||
Dialog is Nightly only currently. At least before Bug 1883764 lands.
Updated•8 months ago
|
Assignee | ||
Comment 5•8 months ago
|
||
Updated•8 months ago
|
Assignee | ||
Updated•8 months ago
|
Reporter | ||
Comment 6•8 months ago
|
||
Did we verify the disabling works right in the dialog (and only when loaded from prefs)?
Comment 7•8 months ago
|
||
(In reply to Mike Kaply [:mkaply] from comment #6)
Did we verify the disabling works right in the dialog (and only when loaded from prefs)?
Harshit showed me some screenshots of that working yesterday. That's with https://phabricator.services.mozilla.com/D206513
Comment 9•8 months ago
|
||
bugherder |
Description
•