Commit graph

996 commits

Author SHA1 Message Date
Drew Willcoxon
1046583b93 Bug 1398416 - Part 1: Rewrite Query.start() to be a little faster and in preparation for form history changes. r=mak
`Query.start` shouldn't `await provider.tryMethod("isActive")`. Instead it
should call all providers at once and then await all the promises. Also make
some other simplifications and changes to `Query.start` in preparation for later
patches.

Factor out `notifyResults` into `Query._notifyResultsFromProvider` because the
next patch will use it.

Differential Revision: https://phabricator.services.mozilla.com/D74191
2020-05-08 06:00:50 +00:00
Dorel Luca
bdddaad896 Backed out changeset 57d78ba110be (bug 1634650) for marionette failures in migration/tests/marionette/test_refresh_firefox.py. CLOSED TREE 2020-05-07 19:36:39 +03:00
Marco Bonardo
410cff4774 Bug 1634650 - Add whitelisting of domain suffixes for URIFixup. r=harry
Differential Revision: https://phabricator.services.mozilla.com/D74015
2020-05-07 08:42:10 +00:00
Marco Bonardo
6ebc5624fc Bug 1628557 - Address bar results aren't cleared if the new query returns no results. r=harry
Differential Revision: https://phabricator.services.mozilla.com/D73279
2020-04-30 15:43:16 +00:00
Marco Bonardo
ee1ecb6963 Bug 1633885 - The urlbar's placeholder may be shown in the wrong locale direction. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D73090
2020-04-30 16:15:14 +00:00
Stefan Hindli
438dc464d0 Backed out changeset 23997add99f6 (bug 1633885) for mochitest failures in layout/base/tests/test_reftests_with_caret.html CLOSED TREE 2020-04-30 17:30:37 +03:00
Marco Bonardo
d4189bc369 Bug 1633885 - The urlbar's placeholder may be shown in the wrong locale direction. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D73090
2020-04-30 11:28:52 +00:00
Drew Willcoxon
14879e2fe7 Bug 1632918 - Postpone update check until the user triggers the update intervention. r=harry
As a quick fix to bug 1632918, don't check for app updates until the user
triggers the update intervention. There will still be some jank, but it'll be
postponed until the user types a phrase that triggers the intervention, which is
much better than at the first urlbar use. To avoid the problem where we wouldn't
show an intervention at all the first time the update intervention is triggered
since the updater status in that case will be CHECKING, add an updater listener
to wait for the check to finish and add our result then.

We should look into a better long-term fix, like making the updater's IO async
or not checking for updates at all inside urlbar.

Differential Revision: https://phabricator.services.mozilla.com/D73001
2020-04-29 23:05:38 +00:00
Marco Bonardo
c0ccd572ea Bug 1633910 - Encode all whitespaces but single or isolated \u0020. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D73026
2020-04-29 12:44:54 +00:00
Marco Bonardo
1a711fb532 Bug 1632582 - Reader Mode URLs are exposed when urlbar is focused. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D73049
2020-04-29 14:08:32 +00:00
Harry Twyford
f43a10037e Bug 1633492 - Decouple retained results from openViewOnFocus pref. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D72714
2020-04-29 09:07:42 +00:00
Harry Twyford
60c4f4d291 Bug 1631281 - Show Top Sites regardless of suggest.openpage and suggest.bookmark pref values. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D72898
2020-04-28 21:31:24 +00:00
Marco Bonardo
ba90ceb405 Bug 1633225 - r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D72680
2020-04-28 21:48:58 +00:00
Marco Bonardo
3453b845e5 Bug 1629506. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D72608
2020-04-28 20:04:26 +00:00
Andrew McCreight
bd708255cb Bug 1628052 - Remove uses of dom.ipc.keepProcessesAlive.webIsolated.perOrigin to fix leaks. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D70076
2020-04-28 20:11:27 +00:00
Dão Gottwald
0b5c0afcd0 Bug 1632804 - Dedupe visits with empty URL hashes (trailing #). r=mak
Differential Revision: https://phabricator.services.mozilla.com/D72373
2020-04-27 19:33:09 +00:00
Razvan Maries
4e6f971e6b Backed out changeset 456b217c3030 (bug 1629506) for perma failures on browser_copying.js. CLOSED TREE 2020-04-28 02:14:43 +03:00
Marco Bonardo
915af000a6 Bug 1629506. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D72608
2020-04-27 11:51:24 +00:00
Harry Twyford
ce293c31f4 Bug 1631844 - Add pinned site badge to pinned Top Sites in the Urlbar. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D72196
2020-04-27 17:14:44 +00:00
Daniel Varga
167993d296 Backed out changeset 4ff0cbc3329c (bug 1631844) for causing browser-chrome failures at browser/components/urlbar/tests/browser/browser_top_sites.js 2020-04-27 17:23:48 +03:00
Harry Twyford
13bdc05bd6 Bug 1631844 - Add pinned site badge to pinned Top Sites in the Urlbar. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D72196
2020-04-27 08:15:36 +00:00
Marco Bonardo
aa83e350d0 Bug 1623888. r=Gijs,Itiel
Differential Revision: https://phabricator.services.mozilla.com/D71549
2020-04-24 15:39:36 +00:00
Matt Woodrow
b758e4a1f5 Bug 1602318 - Make some browser tests wait on the test uri to load instead of any uri. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D70624
2020-04-26 00:52:11 +00:00
Marco Bonardo
61ecccef7b Bug 1412985 - Add a forced search urlbar result for e-mail like strings. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D72411
2020-04-24 19:46:36 +00:00
Marco Bonardo
98d1271b3a Bug 1632777 - Improve browser_UrlbarInput_overflow.js. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D72308
2020-04-24 12:19:03 +00:00
Dão Gottwald
ecc6cc69e2 Bug 1632744 - When in DOM fullscreen mode, make updateLayoutBreakout wait toolbars to be shown again. r=harry
Differential Revision: https://phabricator.services.mozilla.com/D72378
2020-04-24 13:22:12 +00:00
Cosmin Sabou
0f970fbb19 Backed out 20 changesets (bug 1602318) for causing multiple types of failures. CLOSED TREE
Backed out changeset f71e3eff7a8c (bug 1602318)
Backed out changeset 0e0bdebf223b (bug 1602318)
Backed out changeset 44e82f4339a1 (bug 1602318)
Backed out changeset 5f341ebd8591 (bug 1602318)
Backed out changeset 088ea9d20617 (bug 1602318)
Backed out changeset 5de6321939f2 (bug 1602318)
Backed out changeset f5742e84912b (bug 1602318)
Backed out changeset 13bec3079540 (bug 1602318)
Backed out changeset 6c24ba022911 (bug 1602318)
Backed out changeset 5d0fc0102a7f (bug 1602318)
Backed out changeset fc4efd11e643 (bug 1602318)
Backed out changeset 028bd63e710d (bug 1602318)
Backed out changeset 21ad350f9617 (bug 1602318)
Backed out changeset 8f27319f2c34 (bug 1602318)
Backed out changeset db2832973382 (bug 1602318)
Backed out changeset 1756c7584491 (bug 1602318)
Backed out changeset 983e5a9abe02 (bug 1602318)
Backed out changeset a1b9429b3298 (bug 1602318)
Backed out changeset 7d1c0d968a09 (bug 1602318)
Backed out changeset a3b056ec6be3 (bug 1602318)
2020-04-24 11:15:12 +03:00
Matt Woodrow
da08be6550 Bug 1602318 - Make some browser tests wait on the test uri to load instead of any uri. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D70624
2020-04-24 06:58:31 +00:00
Marco Bonardo
00db29f90e Bug 1629928 - Increase the threshold for wrapping urlbar results to a second line. r=harry
Differential Revision: https://phabricator.services.mozilla.com/D72028
2020-04-22 20:49:14 +00:00
Harry Twyford
471136bfde Bug 1628065 - Split out UrlbarProviderTokenAliasEngines from UnifiedComplete. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D71663
2020-04-22 18:47:12 +00:00
Harry Twyford
2a06a6f3c9 Bug 1626946 - Remove search suggestions that dupe a search history result. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D71094
2020-04-22 17:41:00 +00:00
Marco Bonardo
1cf8ec89c1 Bug 1613276 - Visit data: URIs containing spaces rather than searching them. r=adw
Ignore whitespaces when tokenizing strings looking like data: urls.
Improve the tokenizer to better distinguish possible origins from text, by
using the domains whitelist.
Fix a regexp mistake uncovered by the test.

Differential Revision: https://phabricator.services.mozilla.com/D71791
2020-04-22 09:44:20 +00:00
Noemi Erli
c0bd1834c8 Backed out 19 changesets (bug 1602318) for causing multiple failures
Backed out changeset 4b3345b2e33b (bug 1602318)
Backed out changeset 7240b27afe28 (bug 1602318)
Backed out changeset a7091729d8c9 (bug 1602318)
Backed out changeset e496ab6c0857 (bug 1602318)
Backed out changeset 184da6309f0c (bug 1602318)
Backed out changeset 79b540f8619d (bug 1602318)
Backed out changeset b298015ee960 (bug 1602318)
Backed out changeset 6d0783cd5e01 (bug 1602318)
Backed out changeset cbc308486b17 (bug 1602318)
Backed out changeset 94142944fb54 (bug 1602318)
Backed out changeset 7c1eeb299b78 (bug 1602318)
Backed out changeset 0fc27502503a (bug 1602318)
Backed out changeset 0fc27c2e09d9 (bug 1602318)
Backed out changeset b5e2aa4741b2 (bug 1602318)
Backed out changeset 57d568114c5a (bug 1602318)
Backed out changeset 8f7360d827dc (bug 1602318)
Backed out changeset 78930a97c2df (bug 1602318)
Backed out changeset 8015780587cd (bug 1602318)
Backed out changeset bc9da03cb3a3 (bug 1602318)
2020-04-21 03:46:41 +03:00
Matt Woodrow
11a6a14a87 Bug 1602318 - Make some browser tests wait on the test uri to load instead of any uri. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D70624
2020-04-20 23:01:44 +00:00
Marco Bonardo
45a8a38b0b Bug 1080682 - Use the Public Suffix List to distinguish foo.bar searches in URIFixup (and consequently the Address Bar). r=Gijs,dao
Use the PSL list to evaluate whether user typed strings in urlbar are valid URLs.
Cleanup the URIFixupInfo.fixupChangedProtocol property to be set appropriately.
Auto-correct the most common suffix typos for com, net, org.

Stop using URIFixup to trim urls when the urlbar value is set, instead always trim,
then untrim on focus if the trimmed string would cause, on navigation, a search
instead of a visit. This saves us from doing the URIfixup work on page load and
tab switch, running it only when strictly necessary.

Fix the "Did you mean to go to" prompt to show a protocol, avoiding the
confusing (but funny) "did you mean to go to 'space'" prompts.

Differential Revision: https://phabricator.services.mozilla.com/D68796
2020-04-20 12:39:08 +00:00
Marco Bonardo
5a7c296d45 Bug 1630996 - Adjust urlbar tokenizer mail regexp. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D71345
2020-04-17 19:00:25 +00:00
Drew Willcoxon
f1a03db7a8 Bug 1618769 - Follow up: Remove unnecessary assignment to allowSearchSuggestions. r=mak
I didn't remove the `allowSearchSuggestions` assignment even though it's not necessary due to the `defaultValue` addition. And I already queued the main patch for landing.

Differential Revision: https://phabricator.services.mozilla.com/D71249
2020-04-17 07:45:55 +00:00
Marco Bonardo
6d1242bea3 Bug 1628288. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D71191
2020-04-17 09:59:23 +00:00
Ciure Andrei
3593787658 Backed out changeset 894ebe92bdae (bug 1628052) for causing failure increase in bug 1358898 CLOSED TREE 2020-04-17 07:20:16 +03:00
Drew Willcoxon
eeeeea2f96 Bug 1618769 - Increase max chars for search suggestions, and don't fetch suggestions at all when max is reached due to paste. r=mak
* Add a new `allowSearchSuggestions` property to the query context. It defaults to true.
* `UrlbarInput` sets this property when it starts a query. If the event that started the query is a paste event and the pasted string's length is larger than maxChars, then don't allow suggestions. Otherwise do.
* `UrlbarProviderSearchSuggestions.isActive` returns false when `!context.allowSearchSuggestions`.
* `UrlbarProviderSearchSuggestions` doesn't truncate the query anymore.
* Keep the `browser.urlbar.maxCharsForSearchSuggestions` pref but use it only for pastes, and increase it from 20 to 100. I considered making a new pref but this way if a user changed it, then it still applies to pastes at least. I'm not sure it's important though.

Differential Revision: https://phabricator.services.mozilla.com/D70956
2020-04-17 00:42:23 +00:00
Marco Bonardo
fb0662edda Bug 1628906 - First search in a tab from location bar could trigger an "Invalid URL" error page. r=Gijs,nika,mattwoodrow
Before 1496578, URIFixup::keywordToURI used to do a synchronous IPC call to be
able to access search engines from the content process. Consumers of URIFixup
didn't care. Bug 1496578 moved the IPC messaging to the callers, in particular
nsDocShell, but assumed nsDocShellLoadState wasn't loading from content.
It looks like in some cases it does, so this adds another sync IPC call for
GetFixupURIInfo.
The total numer of sync IPCs should not change from before Bug 1496578, URIFIxup
was just doing it internally, while now it happens at the call point.
Note the long term plan would be for these docshell objects callers to just
handle URIs, while the UI code should do fixup.
Bug 1375244 tracks the removal of these sync IPC messages.

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

--HG--
extra : moz-landing-system : lando
2020-04-15 22:39:38 +00:00
Drew Willcoxon
a6b80b0e24 Bug 1628926 - Remove the browser.urlbar.oneOffSearches pref. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D70921

--HG--
extra : moz-landing-system : lando
2020-04-16 00:00:55 +00:00
Arthur Iakab
3f105ec0c5 Backed out changeset 0c8a5b5094b6 (bug 1628926) for Eslint failure on UrlbarView.jsm
CLOSED TREE
2020-04-16 01:38:49 +03:00
Drew Willcoxon
1736e700e0 Bug 1628926 - Remove the browser.urlbar.oneOffSearches pref. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D70921

--HG--
extra : moz-landing-system : lando
2020-04-15 08:56:16 +00:00
Emilio Cobos Álvarez
a2c02d9e75 Bug 1627520 - Use keydown instead of keypress for autocomplete event listeners. r=mak,Gijs
This is so that we can avoid needing mozSystemGroup (to get keypress for
non-printable keys), which in turn prevents racing with the native key event
listeners, see the second patch in bug 1624657.

This turned out to be a bit tricky, because we need to guarantee the ordering of
the search one-offs handling in the searchbar with the usual autocomplete-input
handling. We could try to move this to the popup subclass but this is already a
bigger patch than what I'd like.

We can also revert the customElements.js change I did in bug 1624657, as the bug
is no longer relevant.

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

--HG--
extra : moz-landing-system : lando
2020-04-14 20:48:26 +00:00
Harry Twyford
29d7ff69e0 Bug 1629137 - Respect ui.popup.disable_autohide in UrlbarView._on_blur. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D70934

--HG--
extra : moz-landing-system : lando
2020-04-14 20:40:32 +00:00
Harry Twyford
ca762ba039 Bug 1623637 - Part 6 - Port part of search_suggestions_aliases.js. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D69701

--HG--
rename : toolkit/components/places/tests/unifiedcomplete/test_search_engine_alias.js => browser/components/urlbar/tests/unit/test_search_suggestions_aliases.js
extra : moz-landing-system : lando
2020-04-07 20:30:33 +00:00
Harry Twyford
a39a136567 Bug 1623637 - Part 5 - Port test_search_suggestions.js. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D69700

--HG--
rename : toolkit/components/places/tests/unifiedcomplete/test_search_suggestions.js => browser/components/urlbar/tests/unit/test_search_suggestions.js
extra : moz-landing-system : lando
2020-04-07 20:30:25 +00:00
Harry Twyford
8ddc4cb7da Bug 1623637 - Part 3 - Remove suggestions code from UnifiedComplete and enable UrlbarProviderSearchSuggestions. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D69698

--HG--
extra : moz-landing-system : lando
2020-04-07 19:35:26 +00:00
Harry Twyford
ac0782869f Bug 1623637 - Part 2 - Add UrlbarProviderSearchSuggestions.jsm. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D69697

--HG--
extra : moz-landing-system : lando
2020-04-14 14:08:40 +00:00