Commit Graph

349 Commits

Author SHA1 Message Date
Drew Willcoxon
466dc7d305 Bug 1693123 - Add a checkbox to the Search Suggestions preferences UI that allows Quick Suggest to be toggled. r=Gijs
This is an unusual revision, but it adds a checkbox to the Search Suggestions
section of the Search pane for the urlbar Quick Suggest experiment, which is
en-US only. The checkbox is hidden by default and it's only shown if the
`browser.urlbar.quicksuggest.enabled` pref, which controls the experiment, is
true. Because this is an experiment and it's en-US only, I've hardcoded some
strings. Bug 1692518 has info on the experiment, and bug 1693345 has a
discussion about hardcoding strings.

The checkbox controls the new pref `browser.urlbar.suggest.quicksuggest`. It's
similar to the other existing `browser.urlbar.suggest.*` prefs.

There's a learn-more link but we don't know the final URL yet, so I'm using
mozilla.org. There's a TODO with a bug number.

We also want to change the Search Suggestions description when the experiment is
enabled. I've hardcoded that new string, too.

The test is pretty thorough and I started writing it before the new prefs
landed, so it doesn't assume the prefs exist or which branch they're on.

Differential Revision: https://phabricator.services.mozilla.com/D105701
2021-02-22 23:08:12 +00:00
Gijs Kruitbosch
c8446f7798 Bug 1685313 - fix tests to pass with either the new or old window modal dialogs, r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D104703
2021-02-12 22:41:54 +00:00
Andreea Pavel
dc95e4ea51 Backed out 3 changesets (bug 1685313) for failing test_prompt.html on a CLOSED TREE
Backed out changeset 7bdcbdc2d57f (bug 1685313)
Backed out changeset 319bc4d7bc0d (bug 1685313)
Backed out changeset 713de42fe3b4 (bug 1685313)
2021-02-12 06:50:58 +02:00
Gijs Kruitbosch
761b707985 Bug 1685313 - fix tests to pass with either the new or old window modal dialogs, r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D104703
2021-02-11 23:57:58 +00:00
Erica Wright
7cc4d5ea06 Bug 1689251 - About:preferences new tab input syncs value from pref. r=preferences-reviewers,mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D104279
2021-02-11 22:14:30 +00:00
Mark Banner
c991d8611e Bug 1608272 - Remove 'this' as the second argument to 'ChromeUtils.import', use object destructuring instead (test-only changes). r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D104683
2021-02-11 22:02:15 +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
Tim Nguyen
a557545e39 Bug 1689742 - Stop using XUL <deck> for #setDefaultPane. r=preferences-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D103522
2021-01-30 16:31:53 +00:00
Drew Willcoxon
2dd0131936 Bug 1688786 - Add a browser.urlbar.showSearchSuggestionsFirst pref. r=mak,preferences-reviewers
Introduce a new `browser.urlbar.showSearchSuggestionsFirst` boolean pref that
determines whether search suggestions are shown before general results.

This keeps the `matchBuckets` pref. I could have removed it since the only thing
we're using it for right now is to tell whether suggestions are shown first. The
reason I didn't remove it is because ultimately we do want a `matchBuckets` or
`resultBuckets` pref so we can experiment with different results compositions
using simple pref-flip studies. Hopefully bug 1676469 will land soon and we'll
replace `matchBuckets` with `resultBuckets`, but in the meantime I think we
should keep `matchBuckets` around.

This also removes some `browser.urlbar.matchBuckets` assignments in tests that
don't actually depend on it. For tests that do depend on it, I changed them so
they set `showSearchSuggestionsFirst` now.

Differential Revision: https://phabricator.services.mozilla.com/D103137
2021-01-28 23:23:16 +00:00
Alexis Beingessner
7b0d5a09cc Bug 1683730 - disabled tests failing with tsan full shutdown. r=decoder
Seems like all timeouts at various levels.

Differential Revision: https://phabricator.services.mozilla.com/D100269
2021-01-08 20:08:29 +00:00
Drew Willcoxon
ed31385248 Bug 1681818 - In the search preferences UI, fix tree view problems that arise when engines are removed and restored due to the local shortcuts being present. r=mak
The problem is that a few sites assume that `lastIndex` is the index of the last
engine in the tree, but since bug 1657790 landed, `lastIndex` is now the index
of the last local shortcut.

Differential Revision: https://phabricator.services.mozilla.com/D100299
2020-12-23 00:58:51 +00:00
Marco Bonardo
4830941a5f Bug 1665049 - Remove browser.urlbar.update2. r=harry
Differential Revision: https://phabricator.services.mozilla.com/D99487
2020-12-18 10:01:24 +00:00
smolnar
7b08899f40 Backed out 4 changesets (bug 1665049) for causing bustages in browser.ini CLOSED TREE
Backed out changeset fd06f6552ad0 (bug 1665049)
Backed out changeset 156a323cd31a (bug 1665049)
Backed out changeset 011f54945acb (bug 1665049)
Backed out changeset 028644c366d5 (bug 1665049)
2020-12-18 11:45:30 +02:00
Marco Bonardo
59fc3065cf Bug 1665049 - Remove browser.urlbar.update2. r=harry
Differential Revision: https://phabricator.services.mozilla.com/D99487
2020-12-18 09:26:35 +00:00
amy churchwell
66bcb60518 Bug 1646128 - Renamed SearchService.getDefaultEngines to SearchService.getAppProvidedEngines. r=harry
Differential Revision: https://phabricator.services.mozilla.com/D99941
2020-12-17 20:54:57 +00:00
Butkovits Atila
03caf2a9e7 Backed out changeset d5111a57ad25 (bug 1646128) for failure on browser_engines.js. 2020-12-17 19:04:40 +02:00
amy churchwell
ebcc696d8e Bug 1646128 - Renamed SearchService.getDefaultEngines to SearchService.getAppProvidedEngines. r=harry
Differential Revision: https://phabricator.services.mozilla.com/D99941
2020-12-17 14:40:05 +00:00
Shane Caraveo
105124d24b Bug 1678829 fix permafail due to pref change during render of about:preferences r=preferences-reviewers,ntim
Differential Revision: https://phabricator.services.mozilla.com/D99948
2020-12-16 22:37:03 +00:00
Tim Huang
dab0b4b8ba Bug 1680459 - Part 2: Modify the tests for the new added content blocking category flag. r=johannh
Depends on D98740

Differential Revision: https://phabricator.services.mozilla.com/D98741
2020-12-09 13:31:44 +00:00
Barret Rennie
de446f2658 Bug 1677000 - Rename IOUtils.writeAtomic{,UTF8} to IOUtils.write{,UTF8} r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D99001
2020-12-09 05:48:46 +00:00
Razvan Maries
f4e9a01af4 Backed out 7 changesets (bug 1677000) for perma failures on test_ioutils_read_write.html. CLOSED TREE
Backed out changeset 3521334cfc38 (bug 1677000)
Backed out changeset 737f380c2cf2 (bug 1677000)
Backed out changeset 9dba15fdfe1f (bug 1677000)
Backed out changeset b2fa1a061b15 (bug 1677000)
Backed out changeset a5d7845d3c0c (bug 1677000)
Backed out changeset 8e6081b0c07d (bug 1677000)
Backed out changeset 6592577cf0fa (bug 1677000)
2020-12-09 07:34:21 +02:00
Barret Rennie
6ccd63bacf Bug 1677000 - Rename IOUtils.writeAtomic{,UTF8} to IOUtils.write{,UTF8} r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D99001
2020-12-09 04:31:40 +00:00
Christian Holler
d2b020d497 Bug 1677049 - Skip problematic mochitest-bc tests in TSan. r=Gankro,preferences-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D98365
2020-12-01 20:21:20 +00:00
Drew Willcoxon
dbb9361da2 Bug 1678770 - Have the local search shortcut rows in the preferences UI show their restriction characters as keywords. r=mak
Depends on D97376

Differential Revision: https://phabricator.services.mozilla.com/D97830
2020-11-21 10:55:28 +00:00
Drew Willcoxon
8868f343fc Bug 1657790 - Allow local search mode buttons to be toggled separately from engines. r=mak,ntim
* Add prefs for each local search shortcut
* Remove the `update2.localOneOffs` pref since it's not necessary with the three
  new prefs
* Modify preferences UI by adding a new row in the engines tree for each local
  shortcut
* Add `UrlbarUtils.LOCAL_SEARCH_MODES` so we have a single place where local
  search modes and their properties are defined
* Add a new test file for the preferences UI
* Modify browser_oneOffs.js to test the three new preferences

Differential Revision: https://phabricator.services.mozilla.com/D97376
2020-11-20 22:35:08 +00:00
Erica Wright
702fb9a86f Bug 1595858 - Allow users to select or deselect addons for homepage and newtab without disabling the addons. r=preferences-reviewers,Gijs,mixedpuppy,ahal
Differential Revision: https://phabricator.services.mozilla.com/D93584
2020-11-20 21:40:14 +00:00
Bogdan Tara
ff248efb24 sBacked out changeset 26f7d3a8b1b6 (bug 1595858) for overrides related mochitest failures CLOSED TREE 2020-11-18 01:42:59 +02:00
Erica Wright
e6b0316387 Bug 1595858 - Allow users to select or deselect addons for homepage and newtab without disabling the addons. r=preferences-reviewers,Gijs,mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D93584
2020-11-17 19:49:36 +00:00
Csoregi Natalia
62ee4a2c9f Backed out changeset ac3e7350aeed (bug 1673962) for failures on browser_experimental_features_restart_required_cancel.js. CLOSED TREE 2020-11-17 00:28:44 +02:00
Jared Wein
c4d1c18cde Bug 1673962 - Test to cover the code path of canceling the Restart Required prompt when enabling a restart-required=true experimental feature. r=Gijs,preferences-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D95058
2020-11-16 19:19:35 +00:00
Noemi Erli
b1d3e523c4 Backed out changeset ac717cd03a6b (bug 1673962) for causing failures in browser_experimental_features_restart_required_cancel.js 2020-11-16 20:28:53 +02:00
Jared Wein
0a925d364e Bug 1673962 - Test to cover the code path of canceling the Restart Required prompt when enabling a restart-required=true experimental feature. r=Gijs,preferences-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D95058
2020-11-16 16:05:51 +00:00
Nika Layzell
ed9e85fc9a Bug 1671983 - Part 4: Stop awaiting BrowserTestUtils.loadURI, r=annyG,remote-protocol-reviewers,extension-reviewers,preferences-reviewers,whimboo,zombie
This method only is async in order to allow callers to wait for a process switch
triggered by the call to `loadURI` to be finished before resolving. With
DocumentChannel, we should never trigger a process switch eagerly like this
again, so we don't need any of the async behaviour here anymore.

This part is largely mechanical changes to tests, removing the `await` calls on
`loadURI`, and a follow-up part will remove the actual async logic from
`BrowserTestUtils.loadURI`.

Differential Revision: https://phabricator.services.mozilla.com/D94641
2020-11-12 18:01:03 +00:00
Bogdan Tara
07d282afc6 Backed out changeset d86e4d6c2be4 (bug 1595858) for browser_ext_chrome_settings_overrides_home.js failures CLOSED TREE 2020-11-13 06:11:35 +02:00
Erica Wright
5855481ca4 Bug 1595858 - Allow users to select or deselect addons for homepage and newtab without disabling the addons. r=preferences-reviewers,Gijs,mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D93584
2020-11-13 02:02:47 +00:00
Michael Goossens
bc9df21bf8 Bug 1649603 - Replace OS.File imports on ExtensionSettingsStore.jsm r=robwu,preferences-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D96776
2020-11-12 22:07:04 +00:00
Nihanth Subramanya
e415d1b8c7 Bug 1637344 - Clean up browser_statePartitioning_strings.js. r=Gijs,preferences-reviewers,ntim
Differential Revision: https://phabricator.services.mozilla.com/D96372
2020-11-12 11:19:59 +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
Neil Deakin
efdf2fd34a Bug 1646177, add button to reset all experimental features in preferences, r=Gijs,fluent-reviewers,preferences-reviewers,jaws
Differential Revision: https://phabricator.services.mozilla.com/D96182
2020-11-10 23:10:38 +00:00
Neil Deakin
40efc89f21 Bug 1667858, preference search filter should hide experiments that don't match the search terms, r=preferences-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D95775
2020-11-10 16:36:23 +00:00
Nihanth Subramanya
b464f0aebf Bug 1672986 - Set the right cookie behavior before state partitioning MVP UI test. r=Gijs,preferences-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D95526
2020-11-09 14:00:05 +00:00
Mihai Alexandru Michis
a75e7e7cb5 Bug 1674135 - Fix lint failure in siteData/head.js a=lint-fix
CLOSED TREE
2020-11-04 13:38:11 +02:00
Emilio Cobos Álvarez
719e59b40f Bug 1674135 - Don't destroy frames from hideDialog() as we rely on printing hidden frames. r=Gijs,preferences-reviewers
Using `visibility` preserves frames of the content inside the dialog,
which we rely on to print the preview `<browser>` element.

This was working before bug 1662336 mostly by chance, because we were
doing an extra clone and that happened to mostly not rely on the cloned
document being rendered.

I'd rather fix it in the front-end (by not trying to print a
`display: none` <browser>) than going back to do a separate clone,
because that can get expensive (specially with fission).

It's not super-clear to me how to best test the "print from system
dialog" case, but ideas certainly welcome.

Differential Revision: https://phabricator.services.mozilla.com/D95501
2020-11-04 11:03:48 +00:00
Razvan Maries
beb7584870 Backed out 7 changesets (bug 1658084, bug 1671983) for perma failures on browser_async_remove_tab.js and browser_e10s_chrome_process.js. CLOSED TREE
Backed out changeset 2e6309c1cdbd (bug 1658084)
Backed out changeset 99aafd9304ef (bug 1671983)
Backed out changeset 80280b85280a (bug 1671983)
Backed out changeset 008db2659002 (bug 1671983)
Backed out changeset 32bd45c7fe3a (bug 1671983)
Backed out changeset 56e227e6580c (bug 1671983)
Backed out changeset a404f809f79d (bug 1671983)
2020-11-04 04:23:47 +02:00
Nika Layzell
f6849f1603 Bug 1671983 - Part 4: Stop awaiting BrowserTestUtils.loadURI, r=annyG,remote-protocol-reviewers,extension-reviewers,preferences-reviewers,whimboo,zombie
This method only is async in order to allow callers to wait for a process switch
triggered by the call to `loadURI` to be finished before resolving. With
DocumentChannel, we should never trigger a process switch eagerly like this
again, so we don't need any of the async behaviour here anymore.

This part is largely mechanical changes to tests, removing the `await` calls on
`loadURI`, and a follow-up part will remove the actual async logic from
`BrowserTestUtils.loadURI`.

Differential Revision: https://phabricator.services.mozilla.com/D94641
2020-11-04 00:55:36 +00:00
Razvan Maries
dde7490fbf Backed out changeset b5330b68ce05 (bug 1674135) for perma failures on browser_siteData2.js and browser_pdf_printer_settings.js. CLOSED TREE 2020-11-04 02:43:34 +02:00
Emilio Cobos Álvarez
e473e3b272 Bug 1674135 - Don't destroy frames from hideDialog() as we rely on printing hidden frames. r=Gijs,preferences-reviewers
Using `visibility` preserves frames of the content inside the dialog,
which we rely on to print the preview `<browser>` element.

This was working before bug 1662336 mostly by chance, because we were
doing an extra clone and that happened to mostly not rely on the cloned
document being rendered.

I'd rather fix it in the front-end (by not trying to print a
`display: none` <browser>) than going back to do a separate clone,
because that can get expensive (specially with fission).

It's not super-clear to me how to best test the "print from system
dialog" case, but ideas certainly welcome.

Differential Revision: https://phabricator.services.mozilla.com/D95501
2020-11-03 23:36:32 +00:00
Dorel Luca
a273b913d8 Backed out changeset 3cc7771c487c (bug 1674135) for Browser-chrome failures in preferences/tests/siteData/browser_siteData.js. CLOSED TREE 2020-11-03 19:37:30 +02:00
Emilio Cobos Álvarez
67981a28a6 Bug 1674135 - Don't destroy frames from hideDialog() as we rely on printing hidden frames. r=Gijs,preferences-reviewers
Using `visibility` preserves frames of the content inside the dialog,
which we rely on to print the preview `<browser>` element.

This was working before bug 1662336 mostly by chance, because we were
doing an extra clone and that happened to mostly not rely on the cloned
document being rendered.

I'd rather fix it in the front-end (by not trying to print a
`display: none` <browser>) than going back to do a separate clone,
because that can get expensive (specially with fission).

It's not super-clear to me how to best test the "print from system
dialog" case, but ideas certainly welcome.

Differential Revision: https://phabricator.services.mozilla.com/D95501
2020-11-03 16:35:34 +00:00
Bogdan Tara
dcfbcc52f7 Backed out changeset 57fcc7dd2219 (bug 1674135) for browser/components/preferences/ mochitest failures CLOSED TREE 2020-11-02 23:12:35 +02:00