Commit graph

27 commits

Author SHA1 Message Date
Marco Bonardo
1b0740623c Bug 1652592 - Unify the query pending checks across urlbar providers. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D83473
2020-07-15 10:16:50 +00:00
Marco Bonardo
19f7160153 Bug 1652040 - Make UrlbarProviderOpenTabs instantiable with static methods. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D83121
2020-07-13 21:43:37 +00:00
Marco Bonardo
595dcb2420 Bug 1650099 - Unify UrlbarProviders logger boilerplate. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D82939
2020-07-12 19:54:09 +00:00
Csoregi Natalia
b74c685d0f Backed out 6 changesets (bug 1650099, bug 1647881, bug 1645521, bug 1645324) for causing Bug 1652024.
Backed out changeset f66c5cce9088 (bug 1650099)
Backed out changeset bf67c2159244 (bug 1645324)
Backed out changeset 76d81e1e728b (bug 1645521)
Backed out changeset ab3766fa81f9 (bug 1645521)
Backed out changeset ff56bb6cbfb7 (bug 1645521)
Backed out changeset aceb6f9acf3b (bug 1647881)
2020-07-12 17:58:28 +03:00
Marco Bonardo
f50762bc54 Bug 1650099 - Unify UrlbarProviders logger boilerplate. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D82939
2020-07-10 09:49:42 +00:00
Cosmin Sabou
71bfce5442 Backed out 5 changesets (bug 1650099, bug 1645521, bug 1645324) as requested by harry for causing bug 1652024.
Backed out changeset 93abbd32c314 (bug 1650099)
Backed out changeset 366f7bfe267c (bug 1645324)
Backed out changeset b92a18e970ee (bug 1645521)
Backed out changeset d57d3a47b1ad (bug 1645521)
Backed out changeset 41e4a6353913 (bug 1645521)
2020-07-11 02:03:18 +03:00
Marco Bonardo
efd2be2d06 Bug 1650099 - Unify UrlbarProviders logger boilerplate. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D82939
2020-07-10 09:49:42 +00:00
Drew Willcoxon
416ccb5261 Bug 1608597 - Quantumbar: Replace restricting providers with a priority system. r=mak
Replace `isRestricting` with `getPriority` -- i.e., replace the binary restricting system with a general priority system. Instead of choosing restricting providers, the providers manager chooses the highest-priority providers.

Differential Revision: https://phabricator.services.mozilla.com/D60093

--HG--
extra : moz-landing-system : lando
2020-01-17 20:50:45 +00:00
Cosmin Sabou
4b24015c8a Backed out changeset c516b5d716f1 (bug 1608597) for browser chrome failures on browser_search_tips. 2020-01-17 20:10:21 +02:00
Drew Willcoxon
e693e42a59 Bug 1608597 - Quantumbar: Replace restricting providers with a priority system. r=mak
Replace `isRestricting` with `getPriority` -- i.e., replace the binary restricting system with a general priority system. Instead of choosing restricting providers, the providers manager chooses the highest-priority providers.

Differential Revision: https://phabricator.services.mozilla.com/D60093

--HG--
extra : moz-landing-system : lando
2020-01-17 16:11:31 +00:00
Marco Bonardo
1e94dca2f5 Bug 1599840 - part 2 - Set restricting behavior based on QueryContext sources. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D56354

--HG--
extra : moz-landing-system : lando
2019-12-11 16:52:09 +00:00
Victor Porof
1f830c96da Bug 1561435 - Format browser/components/, a=automatic-formatting
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D36042

--HG--
extra : source : d3afcafdce650a6f36cebbc126ee93b17f13cf52
2019-07-05 09:53:32 +02:00
Marco Bonardo
1f54ba7d47 Bug 1551898 - Replace UrlbarProvider.sources with a more flexible solution. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D31272

--HG--
extra : moz-landing-system : lando
2019-05-17 14:25:47 +00:00
Marco Bonardo
5f4b5c30cb Bug 1512648 - Implement a Quantum Bar event bufferer. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D18980

--HG--
extra : moz-landing-system : lando
2019-02-09 15:39:20 +00:00
Sebastian Hengst
9ece29fd9b Merge mozilla-central to autoland. CLOSED TREE 2019-01-29 12:59:48 +02:00
Dão Gottwald
969b56a313 Bug 1522425 - Rename MATCH_SOURCE to RESULT_SOURCE. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D17837

--HG--
extra : moz-landing-system : lando
2019-01-29 09:29:21 +00:00
Dão Gottwald
9e40dea2a8 Bug 1522426 - Rename MATCH_TYPE to RESULT_TYPE. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D17628

--HG--
extra : moz-landing-system : lando
2019-01-25 16:14:21 +00:00
Dão Gottwald
40de07781f Bug 1515306 - Rename UrlbarMatch to UrlbarResult. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D17481

--HG--
rename : browser/components/urlbar/UrlbarMatch.jsm => browser/components/urlbar/UrlbarResult.jsm
extra : moz-landing-system : lando
2019-01-24 11:23:20 +00:00
Kris Maglione
e930b89c34 Bug 1514594: Part 3 - Change ChromeUtils.import API.
***
Bug 1514594: Part 3a - Change ChromeUtils.import to return an exports object; not pollute global. r=mccr8

This changes the behavior of ChromeUtils.import() to return an exports object,
rather than a module global, in all cases except when `null` is passed as a
second argument, and changes the default behavior not to pollute the global
scope with the module's exports. Thus, the following code written for the old
model:

  ChromeUtils.import("resource://gre/modules/Services.jsm");

is approximately the same as the following, in the new model:

  var {Services} = ChromeUtils.import("resource://gre/modules/Services.jsm");

Since the two behaviors are mutually incompatible, this patch will land with a
scripted rewrite to update all existing callers to use the new model rather
than the old.
***
Bug 1514594: Part 3b - Mass rewrite all JS code to use the new ChromeUtils.import API. rs=Gijs

This was done using the followng script:

https://bitbucket.org/kmaglione/m-c-rewrites/src/tip/processors/cu-import-exports.jsm
***
Bug 1514594: Part 3c - Update ESLint plugin for ChromeUtils.import API changes. r=Standard8

Differential Revision: https://phabricator.services.mozilla.com/D16747
***
Bug 1514594: Part 3d - Remove/fix hundreds of duplicate imports from sync tests. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16748
***
Bug 1514594: Part 3e - Remove no-op ChromeUtils.import() calls. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16749
***
Bug 1514594: Part 3f.1 - Cleanup various test corner cases after mass rewrite. r=Gijs
***
Bug 1514594: Part 3f.2 - Cleanup various non-test corner cases after mass rewrite. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16750

--HG--
extra : rebase_source : 359574ee3064c90f33bf36c2ebe3159a24cc8895
extra : histedit_source : b93c8f42808b1599f9122d7842d2c0b3e656a594%2C64a3a4e3359dc889e2ab2b49461bab9e27fc10a7
2019-01-17 10:18:31 -08:00
Marco Bonardo
cc99e09b2b Bug 1511693 - Expose base classes for providers and muxers. r=Standard8
Creates base classes for providers and muxers. All the classes are exposed
by UrlbarUtils, for 2 reasons:
1. UrlbarProvidersManager on instantiation is importing provider modules, that
   may reimport the manager module. Exposing classes from it could cause a
   recursive failure.
2. It's nicer if only one of the urlbar modules exports multiple symbols (thus
   moving the QueryContext class here too)

Differential Revision: https://phabricator.services.mozilla.com/D14760

--HG--
extra : moz-landing-system : lando
2018-12-19 12:57:43 +00:00
Dorel Luca
42c3462f80 Backed out changeset b067a683472a (bug 1511529) for xpcshell failure in browser/components/urlbar/tests/unit/test_providerOpenTabs.js. CLOSED TREE 2018-12-11 23:06:31 +02:00
Drew Willcoxon
f91504311e Bug 1511529 - Add substring matching/highlighting to UrlbarMatch and support it in UrlbarView. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D13717

--HG--
extra : moz-landing-system : lando
2018-12-11 19:37:19 +00:00
Marco Bonardo
b27ac6b7e1 Bug 1502879 - Wrap UnifiedComplete in a Provider. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D12321

--HG--
extra : moz-landing-system : lando
2018-11-21 15:29:44 +00:00
Marco Bonardo
9abb5ce7c9 Bug 1502385 - Filter matches and providers in the Quantum Bar manager. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D10348

--HG--
extra : moz-landing-system : lando
2018-11-05 21:54:09 +00:00
arthur.iakab
b6054b92d1 Backed out changeset 1d900d22c448 (bug 1502385) for causing build bustages with FATAL ERROR PROCESSING MOZBUILD FILE CLOSED TREES 2018-11-05 19:15:59 +02:00
Marco Bonardo
f7c0cb4aa3 Bug 1502385 - Filter matches and providers in the Quantum Bar manager. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D10348

--HG--
extra : moz-landing-system : lando
2018-11-05 17:04:07 +00:00
Marco Bonardo
c8b95a9017 Bug 1493193 - Add an initial UrlbarProvidersManager implementation. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D6508

--HG--
rename : browser/components/urlbar/tests/unit/test_QueryContext.js => browser/components/urlbar/tests/unit/test_providerOpenTabs.js
rename : browser/components/urlbar/tests/unit/test_QueryContext.js => browser/components/urlbar/tests/unit/test_providersManager.js
extra : moz-landing-system : lando
2018-09-28 14:18:04 +00:00