Commit graph

18 commits

Author SHA1 Message Date
Drew Willcoxon
aa16935357 Bug 1545916 - Make quantumbar match highlighting case insensitive. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D28751

--HG--
extra : moz-landing-system : lando
2019-04-25 18:12:06 +00:00
Bogdan Tara
769a1f0d22 Backed out changeset 2fb18533192e (bug 1545916) for test_tokenizer.js failures CLOSED TREE 2019-04-25 19:57:27 +03:00
Drew Willcoxon
441baf366e Bug 1545916 - Make quantumbar match highlighting case insensitive. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D28751

--HG--
extra : moz-landing-system : lando
2019-04-25 08:56:47 +00:00
Marco Bonardo
06d433199e Bug 1541399 - Ensure we don't fetch search suggestions for file urls. r=adw
Fixes the tokenizer to recognize file:/// urls, plus adds a second layer of
protection, so that if URI fixup thinks the typed string may be an url, we don't
fetch suggestions for it.

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

--HG--
extra : moz-landing-system : lando
2019-04-08 23:50:21 +00:00
Marco Bonardo
20e5ae9990 Bug 1538050 - Split restriction characters only if they are at the beginning or end of the search string. r=adw
The new tokenizer, to make more natural typing restrictions like "?search terms", "search terms?" or "%my tab",
splits out restriction characters if they appear at the beginning or end of the search string. This means
keywords and aliases can't in general begin or end with a restriction character, but we don't have an input
check to prevent those.
For now the tokenizer can't recognize keywords or aliases, because it can't be made asynchronous until the
Quantum Bar is the default implementation, and anyway the complexity must be considered at that point.

The best we can do is to stop splitting out restriction character in the middle of the search string.
This will allow a part of the old interaction like searching for "keyword? something".

This patch also prevents us from splitting a %encoded string, fixing bug 1538715.

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

--HG--
extra : moz-landing-system : lando
2019-03-27 10:40:54 +00:00
Marco Bonardo
5306fabe9c Bug 1537640 - Properly autofill partial IPs in the address bar. r=adw
Trying to autofill as urls breaks our assumptions.

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

--HG--
extra : moz-landing-system : lando
2019-03-23 00:12:21 +00:00
Marco Bonardo
a5fe67550e Bug 1521366 - Searching for a space in the Quantum Bar causes an infinite loop. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D19979

--HG--
extra : moz-landing-system : lando
2019-02-15 20:55:30 +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
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
Drew Willcoxon
78544a4304 Bug 1520907 - Rename QueryContext to UrlbarQueryContext. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D17033

--HG--
rename : browser/components/urlbar/tests/unit/test_QueryContext.js => browser/components/urlbar/tests/unit/test_UrlbarQueryContext.js
extra : moz-landing-system : lando
2019-01-23 00:39:07 +00:00
Marco Bonardo
de59370b24 Bug 1514780 - Use the Quantum Bar tokenizer in UnifiedComplete. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D16676

--HG--
extra : moz-landing-system : lando
2019-01-17 11:26:29 +00:00
Marco Bonardo
763cb09e27 Bug 1515015 - Quantum Bar results are messed up. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D14960

--HG--
rename : toolkit/components/places/tests/unifiedcomplete/data/engine-suggestions.xml => browser/components/urlbar/tests/unit/data/engine-suggestions.xml
extra : moz-landing-system : lando
2018-12-21 21:22:07 +00:00
Margareta Eliza Balazs
be60f2ecdd Backed out changeset a9a84d2e19ef (bug 1515015) for X perma failures in toolkit/components/places/tests/unit/test_telemetry.js CLOSED TREE 2018-12-21 18:11:55 +02:00
Marco Bonardo
3ebdf2f1a9 Bug 1515015 - Quantum Bar results are messed up. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D14960

--HG--
rename : toolkit/components/places/tests/unifiedcomplete/data/engine-suggestions.xml => browser/components/urlbar/tests/unit/data/engine-suggestions.xml
extra : moz-landing-system : lando
2018-12-21 13:38:00 +00:00
Marco Bonardo
134e4ec293 Bug 1499743 - Address Bar restriction characters: remove typed, change url and search r=adw
Remove the "~" typed restriction character.
Change the url restriction character to "$" and the search one to "?".

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

--HG--
extra : moz-landing-system : lando
2018-10-24 12:49:00 +00:00
Marco Bonardo
8f1401cf22 Bug 1478582 - Bug 14785825 - Move address bar model tokenization to a module. r=adw
This is a first stab at the new tokenizer.
It's not expected to be perfect yet, but good enough to be modified and replace the existing code in unifiedComplete with just a few modifications.
It's mostly intended to start setting up a code and tests structure.

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

--HG--
extra : moz-landing-system : lando
2018-09-06 15:12:10 +00:00
Coroiu Cristina
ee08c248cc Backed out changeset c291d6d95022 (bug 1478582) for browser-chome failures at browser/base/content/test/static/browser_all_files_referenced.js 2018-09-06 17:26:22 +03:00
Marco Bonardo
7d48aaf18e Bug 1478582 - Bug 14785825 - Move address bar model tokenization to a module. r=adw
This is a first stab at the new tokenizer.
It's not expected to be perfect yet, but good enough to be modified and replace the existing code in unifiedComplete with just a few modifications.
It's mostly intended to start setting up a code and tests structure.

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

--HG--
extra : moz-landing-system : lando
2018-09-05 23:38:17 +00:00