Closed Bug 1888673 Opened 8 months ago Closed 8 months ago

New Sanitize dialog breaks policy

Categories

(Toolkit :: Data Sanitization, defect, P1)

defect

Tracking

()

RESOLVED FIXED
126 Branch
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

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?

Severity: -- → S3
Flags: needinfo?(mozilla)
Flags: needinfo?(hsohaney)
Priority: -- → P1
Keywords: regression
Regressed by: 1854680

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:

  1. 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.
  2. Support locking of prefs in the new dialog. How does the old dialog behave? Do we just disable the checkboxes?
  3. 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.

Set release status flags based on info from the regressing bug 1854680

Dialog is Nightly only currently. At least before Bug 1883764 lands.

Assignee: nobody → hsohaney
Status: NEW → ASSIGNED
Flags: needinfo?(hsohaney)

Did we verify the disabling works right in the dialog (and only when loaded from prefs)?

Flags: needinfo?(mozilla)

(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

Pushed by hsohaney@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/4c7e76efdac6 Add new clearOnShutdown prefs to policy. r=pbz,mkaply
Status: ASSIGNED → RESOLVED
Closed: 8 months ago
Resolution: --- → FIXED
Target Milestone: --- → 126 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: