Граф коммитов

70945 Коммитов

Автор SHA1 Сообщение Дата
Mark Banner 8161a9bd69 Bug 1559530 - Remove nsISearchService.reInit. r=daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D88277
2020-09-02 22:24:37 +00:00
Mark Banner 090dd4370d Bug 1612824 - Search Services shouldn't use reInit for when the locale is changed or the ignore list is updated. r=daleharvey
reInit is unsafe as it completely removes the existing data before reloading. If something interrupts the process that can cause dataloss.

_maybeReloadEngines is safer as it does changes progressively, it also now handles removing engines, which it didn't before.

Depends on D88023

Differential Revision: https://phabricator.services.mozilla.com/D88272
2020-09-02 22:24:20 +00:00
Chris H-C 284c6c3ed7 Bug 1658359 - Initialize FOG during startup idle. r=janerik
This makes FOG self-contained and no longer reliant on Telemetry for init.

We may need to adjust the timeout of the startup idle task to init earlier,
or adjust the pre-init buffer to allow us to init later.

For now of course all of this is moot because no one's using this for anything.

Differential Revision: https://phabricator.services.mozilla.com/D87276
2020-09-02 17:06:29 +00:00
Harry Twyford 4cd4dde714 Bug 1655473 - Allow autofill only in local search modes. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D88219
2020-09-02 19:23:12 +00:00
Michael Kaply 31316102d3 Bug 1656556 - Switch to device context as default for Firefox MSI. r=mhowell
Differential Revision: https://phabricator.services.mozilla.com/D89186
2020-09-02 18:58:49 +00:00
Scott b7689303c8 Bug 1657306 - Fixing old newtab AS ignoring user pref. r=gvn
Differential Revision: https://phabricator.services.mozilla.com/D88642
2020-09-02 18:46:54 +00:00
Scott bebe317a39 Bug 1655124 - Show similar recs when a page is saved to Pocket. r=gvn
Differential Revision: https://phabricator.services.mozilla.com/D86120
2020-09-02 17:53:21 +00:00
Andrei Oprea af96e9a8f9 Bug 1662144 - Update experiments collection name to nimbus-desktop-experiments r=k88hudson
Differential Revision: https://phabricator.services.mozilla.com/D88866
2020-09-01 13:08:05 +00:00
Drew Willcoxon 5a0de3ee53 Bug 1600864 - Remove legacy aboutDialog-appUpdater.js implementation r=bytesized
This patch reverts the relevant parts of D54837

Differential Revision: https://phabricator.services.mozilla.com/D55612
2020-09-02 17:59:01 +00:00
Nan Jiang 78ec00ea9e Bug 1661707 - Add ASRouter targeting for newtab and home page settings r=andreio
Differential Revision: https://phabricator.services.mozilla.com/D89027
2020-09-02 17:54:23 +00:00
Drew Willcoxon 6d6402fb4e Bug 1658964 - Convert local restriction chars to search mode and make other improvements to search mode. r=harry
Summary of major changes:

* Bookmarks, history, and tabs restriction chars now enter search mode. I added
  a method to UrlbarProviderHeuristicFallback to return a result with a keyword
  when one of these is used.
* This fixes other bugs like recognizing aliases that are entered at the
  beginning of non-empty search strings, and not quasi-re-entering search mode
  when search mode is already entered and you type another alias.
* The heuristic now determines whether we enter search mode, similar to how it
  also determines whether we autofill. When the heuristic has a keyword but no
  keyword offer, and the keyword is one of the recognized search mode keywords,
  then we enter search mode, cancel the current query, and start a new query
  with the remainder of the search string after the keyword.
* I slightly changed how we detect an alias, but only when update2 is
  enabled. Now, an alias must be followed by a space; otherwise, the alias is
  not recognized and instead just remains part of the seach string. Because if
  we don't do that, then you end up in a strange situation after typing an alias
  but before pressing space: The heuristic says "Search with <engine with the
  alias>", but we haven't entered search mode yet because you haven't typed a
  space yet. This is true for both @aliaes and non-@aliases.
* A consequence of the previous point is that we can still autofill @aliases
  with a trailing space, which IMO is important. Then, once the user types any
  char (space or not), we immediately enter search mode with the query being
  whatever char they typed. This is less important after bug 1658605 landed, but
  it's still good to have.
* Previously, `UrlbarView.onQueryResults` called UrlbarInput in order to
  autofill after the first result is received. This is circuitous becaue the
  input already has an `onFirstResult` method, which I now use to enter search
  mode when appropriate. So I moved the autofill call from UrlbarView to
  `UrlbarInput.onFirstResult`.
* As I mentioned, I improved some test framework and simplified some related
  product (non-test) code. For example:
    * I removed `UrlbarUtils.KEYWORD_OFFER.NONE` in favor of just leaving
      `keywordOffer` as `undefined`.
    * `tailOffsetIndex` can now be `undefined` if it's not relevant.
    * I removed empty-string `icon` properties from payloads in favor of
      `undefined`.
    * In tests, I ignore `undefined` but present properties in payloads so they
      don't count when comparing payloads with `deepEqual`.
    * We weren't previously comparing `result.source` and `result.type` in
      xpcshell tests, and that's important IMO, so I added checks for those and
      updated tests.
    * `isSearchHistory` is redundant, so I removed it. For form history, we
      should be checking `result.source == HISTORY` and `result.type == SEARCH`.
* A bunch of tests needed to be updated for this new behavior.

Differential Revision: https://phabricator.services.mozilla.com/D87944
2020-09-02 00:52:12 +00:00
Scott 7f1c17db7a Bug 1662292 - Enabling Pocket stories in more regions with German speakers. r=gvn
Differential Revision: https://phabricator.services.mozilla.com/D88925
2020-09-02 17:20:09 +00:00
Scott 917d882847 Bug 1662199 - Flip newtab story targeting pref back to v1. r=gvn
Differential Revision: https://phabricator.services.mozilla.com/D89033
2020-09-02 17:20:02 +00:00
Dan Mosedale f852bf592b Bug 1659871 - Clean up tests + manifest parsing, add an Alpenglow test, r=pdahiya,florian
Differential Revision: https://phabricator.services.mozilla.com/D89005
2020-09-02 16:46:37 +00:00
Mark Banner 552793d2cc Bug 1619926 - Remove remnants of Search geo-location handling now it is handled by Region.jsm. r=daleharvey
Depends on D88021

Differential Revision: https://phabricator.services.mozilla.com/D88022
2020-09-01 18:08:46 +00:00
Mark Banner c58199cf9f Bug 1619926 - Remove old search config list.json files from tests as they aren't necessary anymore. r=daleharvey
Depends on D88020

Differential Revision: https://phabricator.services.mozilla.com/D88021
2020-09-01 18:08:43 +00:00
Mark Banner 5a80757288 Bug 1619926 - Remove distribution search directory provider definitions. r=daleharvey
Also remove DirectoryProvider as it is now unused.

Depends on D88018

Differential Revision: https://phabricator.services.mozilla.com/D88019
2020-09-01 18:08:22 +00:00
Mark Banner b0311dd767 Bug 1619926 - Remove legacy search configuration code from the search service. r=daleharvey,geckoview-reviewers,agi
Depends on D87894

Differential Revision: https://phabricator.services.mozilla.com/D88017
2020-09-01 18:08:29 +00:00
Harry Twyford 63344f5398 Bug 1654680 - Add telemetry for search mode. r=adw
Summary of changes:
1. Adds an `entry` property to the searchMode object to tag how search mode was entered.
2. Introduces `urlbar.searchmode.*` scalars.  These scalars are suffixed with an entry point into search mode, for example `urlbar.searchmode.oneoff`, or `urlbar.searchmode.topsites_urlbar`. Those entry points tell us how search mode is entered most often. The keys for these scalars are strings describing what kind of search mode was entered. In most cases, this will be the name of a search engine, like "Google", or "DuckDuckGo". It may also be one of "history", "bookmarks", or "tabs". We only collect the names of engines that are bundled with Firefox. If the user enters search mode with an engine they installed themselves, we record "other" as the key.
3. Adds a urlbar-searchmode SAP to SEARCH_COUNTS.
4. Adds a browser.engagement.navigation.urlbar_searchmode probe.
5. Adds a urlbar_searchmode SAP to the navigation.search event.

Differential Revision: https://phabricator.services.mozilla.com/D87510
2020-09-02 15:08:50 +00:00
emcminn fb8b1f15c8 Bug 1661744 - Remove hover state from topsites tiles on the import screen of about:welcome r=pdahiya
Differential Revision: https://phabricator.services.mozilla.com/D88631
2020-09-02 00:30:18 +00:00
pbz 32b7cf7c35 Bug 1661030 - Extended TabDialogBox with an option to persist dialogs across same origin location change. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D88423
2020-09-02 14:24:58 +00:00
pbz 2a72e0a43c 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
Bryce Seager van Dyk d4f39d03a6 Bug 1649532 - Add cross origin DecoderDoctor notification test. r=Gijs
Expand the decoder doctor browser chrome test to check that notifications
trigger the expected UI behaviour when sent from cross origin iframes.

Differential Revision: https://phabricator.services.mozilla.com/D88651
2020-09-01 15:09:19 +00:00
Bryce Seager van Dyk a90a447c1c Bug 1649532 - Port DecoderDoctor notifications to fission. r=Gijs
Port handling of DecoderDoctor notifications for fission. This is done by moving
the observing of 'decoder-doctor-notification' from browser-media.js to fission
friendly actors.

As browser-media.js had only code related to this patch left it is removed along
with references to it. Same with ContentObservers.js.

Differential Revision: https://phabricator.services.mozilla.com/D88322
2020-08-28 18:34:24 +00:00
Razvan Maries f0e5ef1e55 Bug 1661833 - Disabled browser_alltabslistener.js on fission. r?#intermittent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D89094
2020-09-02 08:13:47 +03:00
Mark Banner 9748a2783a Bug 1661526 - Fix search attributions for one-off buttons. r=mikedeboer
Differential Revision: https://phabricator.services.mozilla.com/D89052
2020-09-02 11:46:14 +00:00
Gijs Kruitbosch 563e70deeb Bug 1524323 - fix advanced error messages for certificate error pages regarding certs broken in several ways, r=prathiksha,April
Differential Revision: https://phabricator.services.mozilla.com/D88135
2020-09-02 01:50:06 +00:00
Razvan Maries 83f4507fd3 Backed out changeset c0e35053e222 (bug 1662183) for perma failures on browser_contextmenu_sendtab.js. CLOSED TREE 2020-09-02 09:45:59 +03:00
Emma Malysz 97bb860597 Bug 1662183, hide fxa button from main menu when identity.fxaccounts.enabled is false r=Gijs,mkaply
Differential Revision: https://phabricator.services.mozilla.com/D88946
2020-09-02 04:18:01 +00:00
Emilio Cobos Álvarez 03baee9d8a Bug 1662478 - Rename ::file-chooser-button to ::file-selector-button, and enable it in all channels. r=jwatt
See https://github.com/w3c/csswg-drafts/issues/5049

Differential Revision: https://phabricator.services.mozilla.com/D88995
2020-09-01 22:58:10 +00:00
Gavin Lazar Suntop acb92a483c Bug 1658404 - Adding handlebars compilation r=thecount
Differential Revision: https://phabricator.services.mozilla.com/D88647
2020-09-01 22:31:20 +00:00
Drew Willcoxon 67317ab76f Bug 1658993 - Disable the context menu for local one-off search buttons. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D88948
2020-09-01 20:01:26 +00:00
Drew Willcoxon a7e3fab5dc Bug 1661811 - Move obsolete/deprecated sections in telemetry.rst to make it less misleading. r=mak
This adds an Obsolete section to the doc. I overused the word "obsolete" in
order to make it hard for your eyes to skip over just an "Obsolete" section
heading as you're skimming this page for info.

Also, `SELECTED_RESULT_TYPES` by itself wasn't clear, so I changed it to
`UrlbarUtils.SELECTED_RESULT_TYPES` and added a link that shouldn't be broken by
future changes.

Differential Revision: https://phabricator.services.mozilla.com/D88675
2020-09-01 19:44:36 +00:00
Artem Polivanchuk ef6e8ef035 Bug 1659537 - Sync additional preferences in Privacy & Security r=lina DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D89024
2020-09-01 19:16:49 +00:00
Butkovits Atila 7b340f9684 Backed out 15 changesets (bug 1612824, bug 1661234, bug 1619926, bug 1612380, bug 1559530, bug 1642990) for Xpc failures. CLOSED TREE
Backed out changeset 426d017d7e46 (bug 1642990)
Backed out changeset 84ab4021d403 (bug 1559530)
Backed out changeset 82a8305543e5 (bug 1559530)
Backed out changeset 38832c1185b8 (bug 1559530)
Backed out changeset f16918c10a6b (bug 1661234)
Backed out changeset 3a13258fbd51 (bug 1661234)
Backed out changeset abf8d8b24845 (bug 1612824)
Backed out changeset 7dfeb065a385 (bug 1619926)
Backed out changeset bc9d3e210fe7 (bug 1619926)
Backed out changeset 786164c461ae (bug 1619926)
Backed out changeset d89793e9d17d (bug 1619926)
Backed out changeset d665885bc912 (bug 1619926)
Backed out changeset 9260b6620943 (bug 1619926)
Backed out changeset af69a4896f2f (bug 1619926)
Backed out changeset b9cd6b7047b9 (bug 1612380)
2020-09-01 21:03:23 +03:00
Bogdan Tara 175f238a05 Backed out changeset 14502dd9ab37 (bug 1661350) for browser_aboutwelcome_multistage.js failures CLOSED TREE 2020-09-01 20:02:16 +03:00
Marco Bonardo 05dde8785e Bug 1632318 - Left / Right Arrow key navigation in the one-off search buttons breaks convention (should move caret, not select one-off). r=adw
Differential Revision: https://phabricator.services.mozilla.com/D88536
2020-09-01 13:28:00 +00:00
emcminn 70fa39bdfd Bug 1661350 - Add tests for long and short zaps r=andreio
Differential Revision: https://phabricator.services.mozilla.com/D88485
2020-09-01 15:21:11 +00:00
Mark Banner 783dff5b28 Bug 1559530 - Remove nsISearchService.reInit. r=daleharvey
Depends on D88276

Differential Revision: https://phabricator.services.mozilla.com/D88277
2020-08-28 11:39:22 +00:00
Mark Banner fd382ca569 Bug 1612824 - Search Services shouldn't use reInit for when the locale is changed or the ignore list is updated. r=daleharvey
reInit is unsafe as it completely removes the existing data before reloading. If something interrupts the process that can cause dataloss.

_maybeReloadEngines is safer as it does changes progressively, it also now handles removing engines, which it didn't before.

Depends on D88023

Differential Revision: https://phabricator.services.mozilla.com/D88272
2020-08-28 11:25:34 +00:00
Mark Banner 074a2c9ecb Bug 1619926 - Remove remnants of Search geo-location handling now it is handled by Region.jsm. r=daleharvey
Depends on D88021

Differential Revision: https://phabricator.services.mozilla.com/D88022
2020-08-31 16:34:25 +00:00
Mark Banner ea5b87fb78 Bug 1619926 - Remove old search config list.json files from tests as they aren't necessary anymore. r=daleharvey
Depends on D88020

Differential Revision: https://phabricator.services.mozilla.com/D88021
2020-08-31 16:34:24 +00:00
Mark Banner f793b08aba Bug 1619926 - Remove distribution search directory provider definitions. r=daleharvey
Also remove DirectoryProvider as it is now unused.

Depends on D88018

Differential Revision: https://phabricator.services.mozilla.com/D88019
2020-08-31 16:34:24 +00:00
Mark Banner 3ac411544c Bug 1619926 - Remove legacy search configuration code from the search service. r=daleharvey,geckoview-reviewers,agi
Depends on D87894

Differential Revision: https://phabricator.services.mozilla.com/D88017
2020-09-01 12:51:08 +00:00
Bogdan Tara e30a2f5c84 Backed out 2 changesets (bug 1580117) for mochitest and webrender failures CLOSED TREE
Backed out changeset aba57d4f19cb (bug 1580117)
Backed out changeset 70b864f4b6a5 (bug 1580117)
2020-09-01 15:15:29 +03:00
J. Ryan Stinnett ef41af7907 Bug 1580117 - Skip preloaded browsers in minimized windows. r=mattwoodrow,Gijs
If the browser window is minimized, it's unlikely that a preloaded browser will
be useful in the near future. This change skips creating one in such a case.

This avoids an issue in the graphics layer where about:newtab content marks
itself as `renderLayers = true`, and will try to composite content in windows
which are not compositing (because they are hidden).

As an additional level of safety, we also check the preloaded browser's owner
window's minimized state just before setting `renderLayers`, in case it may have
changed after the preloaded browser was created.

Differential Revision: https://phabricator.services.mozilla.com/D85955
2020-09-01 10:56:46 +00:00
Narcis Beleuzu a7cd806311 Backed out 2 changesets (bug 1659530, bug 1657476) for bustages on check.svg. CLOSED TREE
Backed out changeset 761a09f4d153 (bug 1659530)
Backed out changeset c8afdd9434bb (bug 1657476)
2020-09-01 02:30:36 +03:00
Shane Caraveo 6f359e0bea Bug 1659530 skip 3rd party panel when installing recommended addons r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D87326
2020-08-31 21:38:13 +00:00
Ryan VanderMeulen d912656d9c Bug 1662118 - Update pdf.js to version 2.6.336. r=bdahl
Differential Revision: https://phabricator.services.mozilla.com/D88856
2020-08-31 21:59:19 +00:00
Robert Helmer 2107e42238 Bug 1661803 - ensure default study is installed before unlocking studies r=fluent-reviewers,flod,sfoster
Differential Revision: https://phabricator.services.mozilla.com/D88669
2020-08-31 21:55:11 +00:00