Commit Graph

275 Commits

Author SHA1 Message Date
Csoregi Natalia
da07cbd9a3 Backed out changeset 4f1bde7bc105 (bug 1740828) as per request. CLOSED TREE 2021-12-09 22:10:08 +02:00
Benjamin VanderSloot
db5b26c8aa Bug 1740828 - Improve UI to clarify difference between cross site tracking cookies and cross site cookies option, r=pbz,flod,fluent-reviewers,preferences-reviewers
Revise two strings, choosing "Option 1" from the discussion on Bugzilla:
	https://bugzilla.mozilla.org/show_bug.cgi?id=1740828#c3

Differential Revision: https://phabricator.services.mozilla.com/D133346
2021-12-09 15:57:16 +00:00
Gijs Kruitbosch
41fdc16945 Bug 1294999 - put module getters in preferences.js and de-duplicate them, r=jaws,preferences-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D132529
2021-12-01 16:35:25 +00:00
Drew Willcoxon
7cbdd20c67 Bug 1735976 - Update Firefox Suggest preferences: Part 4 - Migrate suggest.quicksuggest to suggest.quicksuggest.nonsponsored. r=nanj
Now that we're likely not targeting a 94 dot release anymore, I'd like to go
ahead and rename the `suggest.quicksuggest` pref to
`suggest.quicksuggest.nonsponsored` as we considered doing before. There won't
be a better time to do it.

Depends on D128665

Differential Revision: https://phabricator.services.mozilla.com/D130565
2021-11-09 17:17:11 +00:00
Drew Willcoxon
e494b5943d Bug 1735976 - Update Firefox Suggest preferences: Part 2 - Update the preferences UI. r=Gijs
This updates the Privacy pane for the new Firefox Suggest preferences spec.

Please see the spec here: https://mozilla-hub.atlassian.net/browse/SNT-37

The Jira description is a little out of date, and the wording of these new
strings (which are not exposed to localizers) isn't finalized, but I'm told the
structure of the UI is final more or less.

There is also a Figma here: https://www.figma.com/file/seJ2ZA4v3FgoV7jCxUR74B/Firefox-Suggest-exploration?node-id=3197%3A55695

We're replacing the current two Firefox Suggest checkboxes with three toggle
buttons. The first two toggle buttons correspond to the existing
`browser.urlbar.suggest.quicksuggest` and
`browser.urlbar.suggest.quicksuggest.sponsored` prefs. However, the second pref
is no longer dependent on the first, and it can be toggled regardless of whether
the first is enabled. The third toggle corresponds to a new pref,
`browser.urlbar.quicksuggest.dataCollection.enabled`. It can also be toggled
independently of the others.

In addition, we're adding an info bar/box below the toggles to explain to the
user the effect of their toggle selection. The text in the box depends on the
state of the toggles. The box itself is hidden when all three toggles are off.

Depends on D129224

Differential Revision: https://phabricator.services.mozilla.com/D128661
2021-11-09 17:17:11 +00:00
Andrei Oprea
d042e1f37e Bug 1738206 - Switch TCP Preferences UI to rely on Nimbus r=Mardak,pbz
Differential Revision: https://phabricator.services.mozilla.com/D129617
2021-11-01 16:57:37 +00:00
criss
b6518b6cc6 Backed out 2 changesets (bug 1738206) for causing mochitests failures. CLOSED TREE
Backed out changeset be8c4d9dd03f (bug 1738206)
Backed out changeset 5c003995f9b5 (bug 1738206)
2021-11-01 17:21:06 +02:00
Andrei Oprea
93e9a90570 Bug 1738206 - Switch TCP Preferences UI to rely on Nimbus r=Mardak,pbz
Differential Revision: https://phabricator.services.mozilla.com/D129617
2021-11-01 14:29:12 +00:00
Norisz Fay
beddfcfb29 Backed out changeset 2f9fee41d745 (bug 1738206) for causing xpcshell failures on test_FeatureManifest.js CLOSED TREE 2021-11-01 13:19:11 +02:00
Andrei Oprea
05e7693290 Bug 1738206 - Switch TCP Preferences UI to rely on Nimbus r=Mardak,pbz
Differential Revision: https://phabricator.services.mozilla.com/D129617
2021-11-01 10:36:23 +00:00
Paul Zuehlcke
d260fb0038 Bug 1737565 - Added UI for toggling Total Cookie Protection in ETP standard in about:preferences. r=johannh,fluent-reviewers,preferences-reviewers,flod,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D129408
2021-10-28 12:23:59 +00:00
Itiel
57b4f10c9d Bug 1710392 - Consolidate info boxes in about:preferences r=Gijs,preferences-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D115421
2021-09-21 18:14:52 +00:00
Drew Willcoxon
8e64eb7091 Bug 1730618 - Allow Nimbus to enable Firefox Suggest online and override the offline default. r=mythmon,preferences-reviewers,mstriemer
This reworks the fix to bug 1729776.

Currently Nimbus doesn't have a way to force the two suggestions prefs [1] on or
off. That might seem surprising since we've run experiments already. Initially
we defaulted the two prefs to true but we defaulted the separate feature-gate
pref [2] to false, and it was the feature-gate pref we controlled via Nimbus. At
some point we changed the defaults to false and then in Firefox flipped them to
true after showing the onboarding dialog. As a result we've never needed to
override the two suggestion prefs via Nimbus.

The problem now is that we default-enable offline (for US en users), so we set
all three prefs to true. For the online rollout, we need to keep the
feature-gate pref enabled but disable the suggestion prefs, and there's no way
to do that.

My first idea was to add new Nimbus variables to override the two suggestion
prefs. The prefs would keep their default true values but be overridden by
Nimbus. But that doesn't work because there's no way for Firefox to tell whether
the prefs are true because the user has opted in (overriding Nimbus) or because
they still have their default values. Setting the prefs to true on the user
branch doesn't have any effect because they're also true on the default branch.
Or maybe there's a way I don't know about to force them to true on the user
branch, but even if there were, it seems brittle to rely on a value being set on
the user branch to distinguish between the two cases. (This is a potential
problem for any prefs that are controlled by both Nimbus and the user. So far
the prefs we've been using via Nimbus have all been hidden feature-gate-type
things and implementation details.)

We already have a `quickSuggestScenario` variable. We currently use it only to
tell what we should send in the telemetry ping (bug 1729576) and whether some
parts of the prefs UI should be shown. This revision makes it much more
important by treating it as the source of truth for the user's scenario. It now
determines the default values of related prefs, including the two suggestions
prefs.

The logic is:

```
If quickSuggestScenario is non-null:
  scenario = quickSuggestScenario
Else (e.g., there's no rollout):
  If the user is US en:
    scenario = offline
  Else:
    scenario = history
```

After determining the scenario, it's set it as
`browser.urlbar.quicksuggest.scenario` on the default branch. There's an
existing pref observer in UrlbarPrefs, and I added a case for this pref so that
when it's updated we also update all the other prefs that depend on the
scenario. This way when the pref is set -- either due to Nimbus update or by
changing it on about:config -- all the other prefs stay in sync.

I kept the default value of `browser.urlbar.quicksuggest.scenario` but removed
it as the fallback for `quickSuggestScenario`. If it still both had a default
and remained the fallback, then it would be impossible to tell when Nimbus is
trying to override it, because any fetch of the value from Nimbus would just
return the fallback pref's value if there is no override.

I considered instead removing the default value and keeping it as the fallback.
The drawback of that is that unenrollments would not take effect until restart.
I actually tried this approach first, and in tests, after mock experiments were
unenrolled, the pref values remained what they were when the experiment was
active.

It might also be possible to not have the `browser.urlbar.quicksuggest.scenario`
pref at all. We could call NimbusFeatures directly to get the scenario. However,
currently we cache and access Nimbus variables through UrlbarPrefs, as we do
with prefs, and I don't want to add an inconsistency.

This revision also fixes bug 1730596 since it was easy to do given that I needed
a way to prevent indirect recursive updates to the scenario, and I can use that
for bug 1730596 too (the `_updatingFirefoxSuggestScenario` bool).

[1] `browser.urlbar.suggest.quicksuggest` and `browser.urlbar.suggest.quicksuggest.sponsored`
[2] `browser.urlbar.quicksuggest.enabled`

Differential Revision: https://phabricator.services.mozilla.com/D125511
2021-09-16 18:28:02 +00:00
Drew Willcoxon
451009454c Bug 1729587 - Tweaks to the Firefox Suggest preferences UI. r=mak,preferences-reviewers,jaws,fluent-reviewers
Per spec, the informational description about data collection under the main
Firefox Suggest checkbox should be hidden except for the "online" scenario,
since only the online scenario sends data to Mozilla.

We're also changing the two checkbox labels and adding another description under
the sponsored checkbox.

Depends on D125024

Differential Revision: https://phabricator.services.mozilla.com/D125031
2021-09-11 02:27:38 +00:00
Drew Willcoxon
b68bffd897 Bug 1729776 - Enable the Firefox Suggest "offline" scenario by default for users in the US region with en-* locales. r=mythmon,daleharvey,mak
Enable the Firefox Suggest "offline" scenario by default for users in the US
region with en-* locales.

Previously we relied on Nimbus to enable the offline scenario, and the goal here
is to make it permanent for all users in the US `home` region using en-* locales
so that we don't need Nimbus for it anymore.

With Nimbus, there were two essential mechanisms that restricted the scenario to
the desired population: the `browser.urlbar.quicksuggest.enabled` pref, which is
a global toggle for Firefox Suggest suggestions regardless of region and locale,
and a Nimbus recipe that enabled the pref for US en-* users only.

Without Nimbus, we have only the `browser.urlbar.quicksuggest.enabled` pref. We
can't rely on a server-side solution to target a specific population, so we need
to do it in the client. This patch keeps the default `false` value of
`browser.urlbar.quicksuggest.enabled` in firefox.js, and then it sets a new
default-branch value for the pref for the US en-* population on app startup.

There's actually a set of prefs related to the offline scenario that need to be
set, not only `browser.urlbar.quicksuggest.enabled`.

Depends on D124943

Differential Revision: https://phabricator.services.mozilla.com/D125024
2021-09-11 02:27:38 +00:00
Harry Twyford
b62fce7b38 Bug 1710937 - Part 1 - Remove newNewTabExperienceEnabled pref and associated code. r=amy,preferences-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D123248
2021-09-08 22:06:22 +00:00
Drew Willcoxon
85983d13bf Bug 1728430 - Part 2: Update the Firefox Suggest preferences UI. r=mak
This implements the spec in https://mozilla-hub.atlassian.net/browse/SNT-26, but
Natalie and I have made some tweaks over Slack that aren't reflected in that
ticket.

We want to move the Firefox Suggest preferences from the Search pane to the
Address Bar section of the Privacy pane. There are now two Firefox Suggest
checkboxes instead of one: a main one that enables Firefox Suggest suggestions
and another one that enables sponsored suggestions separately. If the main one
is checked but the sponsored one isn't, then the user will see only
non-sponsored suggestions.

I renamed and modified the browser_searchQuickSuggest.js test I added in
D105701, but a lot of the test changed and it's probably not helpful to look at
the diff against the old version.

Previously strings were hardcoded in search.js. I've added the new ones to the
new preview Fluent file for Firefox Suggest.

Depends on D124300

Differential Revision: https://phabricator.services.mozilla.com/D124431
2021-09-06 18:56:11 +00:00
Harry Twyford
87f29f6e7f Bug 1717509 - Part 1 - Hook up UrlbarProviderPlaces and fix various lint issues. r=adw,preferences-reviewers
UnifiedComplete must stick around to serve as an mozIPlacesAutoComplete implementation for XUL consumers like search.js and privacy.js.

Differential Revision: https://phabricator.services.mozilla.com/D119306
2021-07-09 23:52:37 +00:00
Mike Kaply
e933b64d09 Bug 1716360 - Add a preference for Windows 10 SSO - r=emalysz,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D118087
2021-07-08 20:06:18 +00:00
julianwels
7be2b311c8 Bug 1662710 - Added UI to manage HTTPS-Only Mode exceptions from about:preferences. r=flod,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D102401
2021-05-27 20:07:32 +00:00
Dorel Luca
bb359d80bd Backed out changeset ccdbd76fc479 (bug 1662710) for Browser-chrome failures in toolkit/components/passwordmgr/test/browser/browser_exceptions_dialog.js. CLOSED TREE 2021-05-27 19:03:46 +03:00
julianwels
ceef73535a Bug 1662710 - Added UI to manage HTTPS-Only Mode exceptions from about:preferences. r=flod,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D102401
2021-05-27 14:30:30 +00:00
ry99
4039935c3c Bug 1703792 - Fixed the last [Learn more] link floating to right in Nightly Data Collection and Use inside Preferences r=Gijs,preferences-reviewers,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D112192
2021-05-03 13:24:26 +00:00
Tim Huang
c96270666c Bug 1698845 - Part 1: Add a new cookie info for the state partitioning in PBM in 'about:preference#privacy'. r=johannh,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D111933
2021-04-15 07:17:34 +00:00
Tim Huang
0470c65b89 Bug 1695050 - Part 2: Modify CookieJarSettings::Create() to be able to creat cookieJarSettings according to the browsing mode. r=dimi,preferences-reviewers
This patch modifies the current CookieJarSettings::Create() function.
It removes the current function and adds two variants. One takes the
nsIPrincipal as input and another takes the enum value. The new
functions will test if the input is for the private browsing window to
create the corresponding cookieJarSettings.

Differential Revision: https://phabricator.services.mozilla.com/D109045
2021-03-29 11:01:51 +00:00
james
c8a67215e0 Bug 1691274 - Use DOM hidden property methods instead of attribute methods in browser/ directory. r=ntim,preferences-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D104552
2021-02-13 23:33:51 +00:00
Narcis Beleuzu
d5390af0ba Backed out changeset b3fcb4fcea64 (bug 1691274) for bc failures on browser_pointerlock_warning.js . CLOSED TREE 2021-02-13 21:46:51 +02:00
james
1c970f6297 Bug 1691274 - Use DOM hidden property methods instead of attribute methods in browser/ directory. r=ntim,preferences-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D104552
2021-02-13 18:11:18 +00:00
leli
1309c53fb0 Bug 1690276 - Remove unused pref browser.preferences.exposeHTTPSOnly r=ckerschb,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D103806
2021-02-04 16:48:42 +00:00
Erica Wright
4b15bc0bb2 Bug 1685133 - String changes due to newtab updates r=preferences-reviewers,prathiksha,fluent-reviewers,flod,ntim
Differential Revision: https://phabricator.services.mozilla.com/D100819
2021-01-08 18:55:24 +00:00
Csoregi Natalia
d56135a020 Backed out changeset c98a54c184d0 (bug 1685133) for newtab failures. CLOSED TREE 2021-01-08 19:23:33 +02:00
Erica Wright
7ab3893483 Bug 1685133 - String changes due to newtab updates r=preferences-reviewers,prathiksha,fluent-reviewers,flod,ntim
Differential Revision: https://phabricator.services.mozilla.com/D100819
2021-01-08 07:34:44 +00:00
Marco Bonardo
c60c5083ed Bug 1678138 - Add a Preferences toggle for tab-to-search results. r=harry,fluent-reviewers,preferences-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D99393
2020-12-11 11:05:43 +00:00
Nihanth Subramanya
cd88aa75ea Bug 1637344 - Show message in privacy preferences to indicate FPI is incompatible with dFPI. r=fluent-reviewers,johannh,preferences-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D96371
2020-11-12 11:18:23 +00:00
Nihanth Subramanya
26cf222d69 Bug 1645924 - Update "Cookies" and "Heads up" strings for cookieBehavior=5 in content blocking prefs. r=prathiksha,fluent-reviewers,preferences-reviewers,flod,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D92430
2020-10-22 13:03:48 +00:00
julianwels
0c80a84d5b Bug 1671122 - Fixed bug where second click on HTTPS-Only Mode enable-checkbox disables it again. r=ckerschb,preferences-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D93519
2020-10-15 19:54:31 +00:00
Gijs Kruitbosch
282c8bc7e2 Bug 1663852 - fix identical code in both branches in the preferences, r=emalysz,preferences-reviewers,mstriemer
Differential Revision: https://phabricator.services.mozilla.com/D89556
2020-09-09 16:54:51 +00:00
pbz
51cee31f8d Bug 1663750 - Removed duplicate click event listener for 'changeBlockListLink'. r=Gijs,preferences-reviewers
The 'allowDuplicateDialogs' option covered up a bug where we had two click event listeners for the
changeBlockListLink. This should fix the duplicate dialog.
However, there seem to be timing issues with the 'allowDuplicateDialogs' option we should look
into as follow up work.

Differential Revision: https://phabricator.services.mozilla.com/D89585
2020-09-09 12:53:18 +00:00
pbz
9684cdfd60 Bug 1661030 - Refactor SubDialog and TabDialogBox to support passing multiple window arguments. r=Gijs,preferences-reviewers
This also updates the behavior of the allowDuplicates check:
Instead of only checking if the top dialog is a duplicate, it will now check the whole stack and
skip the dialog open if a duplicate URL is found.
This fixes an issue where callers could alternate between dialogs to bypass the check.

Differential Revision: https://phabricator.services.mozilla.com/D88422
2020-09-02 14:24:47 +00:00
Tim Giles
203eb2de91 Bug 1660998 - Don't disable the password manager checkbox in permanent private browsing mode. r=MattN,preferences-reviewers,ntim
Password saving has been possible in private browsing since bug 1520960

Differential Revision: https://phabricator.services.mozilla.com/D88323
2020-08-28 03:44:42 +00:00
Yura Zenevich
6550e83abc Bug 1613468 - remove "Prevent accessibility services from accessing your browser" from about:preferences/Privacy & Security. r=chutten,fluent-reviewers,preferences-reviewers,Gijs
* Removing front end for the checkbox that allows users disable accessibility services
* Removing already expired telemtry probe for preferences.prevent_accessibility_services

Differential Revision: https://phabricator.services.mozilla.com/D86994
2020-08-14 15:40:28 +00:00
Tim Giles
50342e1a5d Bug 1620753 - Indicate to the user when privacy.services.passwordSavingEnabled has set a new value via an extension. r=mstriemer,fluent-reviewers,preferences-reviewers,flod,mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D85629
2020-08-12 18:06:30 +00:00
Christoph Kerschbaumer
9aabc9d545 Bug 1658325: HTTPS-Only Mode: Have HOM entry in about:preferences link to sumo page r=JulianWels,preferences-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D86561
2020-08-11 11:07:26 +00:00
Matthew Noorenberghe
1d915725c4 Bug 1653798 - Add Primary Password SUMO link and text about the name change. r=preferences-reviewers,fluent-reviewers,flod,ntim
`forms-primary-pw-former-name = {""}` is used when this term didn't change for a locale.

Differential Revision: https://phabricator.services.mozilla.com/D84291
2020-07-22 07:16:29 +00:00
Matthew Noorenberghe
6bcdecd274 Bug 1644807 - Switch to Primary Password user-facing terminology in browser/. r=Gijs,mkaply,fluent-reviewers,preferences-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D83895
2020-07-17 23:00:37 +00:00
Christoph Kerschbaumer
94971078df Bug 1644152: Expose HTTPS-Only Mode in about:preferences. r=preferences-reviewers,Gijs,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D82074
2020-07-09 16:56:46 +00:00
Michael Kaply
cdcabe513f Bug 1466512 - Add a policy for forcing a master password. r=fluent-reviewers,MattN,flod
Differential Revision: https://phabricator.services.mozilla.com/D70935
2020-06-04 20:01:54 +00:00
Harry Twyford
1c89d4ac36 Bug 1627858 - Add a user visible preference to disable Top Sites on focus. r=dao,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D76246
2020-05-27 16:45:47 +00:00
Liang-Heng Chen
48423d9c60 Bug 1635984 - use effective cookie behavior in preferences page; r=ewright
Differential Revision: https://phabricator.services.mozilla.com/D74128
2020-05-26 17:35:12 +00:00
Jared Wein
aef0b07057 Bug 1636820 - Don't request dialog strings for OS authentication on Linux since the feature isn't supported there yet. r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D74698
2020-05-13 05:11:36 +00:00