Closed Bug 2031836 Opened 5 months ago Closed 2 days ago

Rename preferences related to a separate search engine in default private browsing mode

Categories

(Firefox :: Search, task, P3)

task

Tracking

()

RESOLVED FIXED
158 Branch
Tracking Status
firefox158 --- fixed

People

(Reporter: standard8, Assigned: cachan)

References

(Blocks 1 open bug)

Details

(Whiteboard: [sng][private-search])

Attachments

(1 file)

The naming of the preferences for the separate private default are not ideal, and do not reflect what we typically do today. Therefore we think we should rename the prefs as follows:

  • browser.search.separatePrivateDefault -> browser.search.separatePrivateDefault.enabled
    • This is the preference behind the "Use a different default search engine in private windows" checkbox in preferences.
    • This should now default to false.
  • browser.search.separatePrivateDefault.ui.enabled -> browser.search.separatePrivateDefault.featureGate
    • This is the preference that enables the feature in the UI.

We should also migrate the existing values for the preferences, to save disturbing users who have manually enabled it:

  • browser.search.separatePrivateDefault.featureGate should be migrated directly from the original preference.
  • browser.search.separatePrivateDefault.enabled should be set to true only if:
    • browser.search.separatePrivateDefault.ui.enabled was set to true, and browser.search.separatePrivateDefault does not have a user value of false.
      • The previous default for browser.search.separatePrivateDefault was true, so it will only have a user set value if the user turned it off. As we'll be removing the default value from all.js (because of removing the preference), we should check the user-value status. If it was not set to a user value, then it must have been true, hence we should maintain that true value if the UI was enabled.

Additionally we should also remove any user-set values for the previous preferences when migrating.

Priority: P5 → P3
Assignee: nobody → cachan
Attachment #9631240 - Attachment description: Bug 2031836 - rename preferences related to a separate search engine in default private browsing. r=standard8 → Bug 2031836 - rename preferences related to a separate search engine in default private browsing and make the renamed enabled pref's default consistent with its default gated behavior. r=standard8
Attachment #9631240 - Attachment description: Bug 2031836 - rename preferences related to a separate search engine in default private browsing and make the renamed enabled pref's default consistent with its default gated behavior. r=standard8 → Bug 2031836 - rename preferences related to a separate search engine in default private browsing. r=standard8
Attachment #9631240 - Attachment description: Bug 2031836 - rename preferences related to a separate search engine in default private browsing. r=standard8 → Bug 2031836 - Rename separate private default search engine preferences and don't turn on the split by default. r=standard8
Pushed by cachan@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/c3965fa0d595 https://hg.mozilla.org/integration/autoland/rev/903c4b53ff3c Rename separate private default search engine preferences and don't turn on the split by default. r=Standard8,firefox-desktop-core-reviewers ,urlbar-reviewers,akulyk,hsohaney,chutten
Status: NEW → RESOLVED
Closed: 2 days ago
Resolution: --- → FIXED
Target Milestone: --- → 158 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: