Commit Graph

385 Commits

Author SHA1 Message Date
Mark Banner
31b8f42f90 Bug 1545706 - Avoid displaying an extra dash for keyword searches in QuantumBar. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D29418
2019-05-02 13:00:16 +00:00
Drew Willcoxon
9c8cde609c Bug 1539804 - Quantumbar: Re-enable browser_urlbarStopSearchOnSelection.js and fix a couple of related problems. r=mak
This test uncovered a couple of problems:

(1) UrlbarController.handleKeyNavigation relies on event.defaultPrevented to tell whether the one-offs handled the key event. That's a problem when combined with deferring the down arrow key.

handleKeyNavigation is called twice in that case. The first time, the event is deferred (so executeAction = false), and handleKeyNavigation calls event.preventDefault. The second time, the event is being replayed, but defaultPrevented is true from the previous call regardless of whether the one-offs actually handled the event.

So handleKeyNavigation always returns early because it thinks the one-offs always handled the event, so it never properly replays down arrow keys.

(2) UrlbarProviderUnifiedComplete's query promise is never resolved when the query is canceled. That's a problem in general of course but I tripped over it in this test because I need to check results after the query is canceled, and the test ended up hanging since UrlbarTestUtils waits for the query to finish in order to get its results.

It's not a problem in UnifiedComplete itself per se because of course awesomebar uses UnifiedComplete too, and it doesn't have this problem. The difference is that nsAutoCompleteController::StopSearch calls input->OnSearchComplete() (via PostSearchCleanup): https://searchfox.org/mozilla-central/rev/b756e6d00728dda4121f8278a744381d8643317a/toolkit/components/autocomplete/nsAutoCompleteController.cpp#1433

Quantumbar's UnifiedComplete provider is missing that behavior, so this patch adds it by resolving its query promise when the query is canceled.

Differential Revision: https://phabricator.services.mozilla.com/D29300
2019-05-01 17:42:19 +00:00
Ciure Andrei
6853e98089 Backed out changeset 9242458b79d5 (bug 1539804) for high frequency browser/browser_urlbarStopSearchOnSelection.js failures CLOSED TREE 2019-05-01 14:45:59 +03:00
Dale Harvey
f555a63e45 Bug 1548141 - Ensure SearchService has started. r=mikedeboer
Differential Revision: https://phabricator.services.mozilla.com/D29430
2019-05-01 08:32:12 +00:00
Joel Maher
41ecc30f4a Bug 1546459 - remove subsuite=clipboard from manifests. r=ahal
remove subsuite=clipboard from manifests

Differential Revision: https://phabricator.services.mozilla.com/D28521
2019-05-01 08:16:44 +00:00
Drew Willcoxon
01a0ae6979 Bug 1539804 - Quantumbar: Re-enable browser_urlbarStopSearchOnSelection.js and fix a couple of related problems. r=mak
This test uncovered a couple of problems:

(1) UrlbarController.handleKeyNavigation relies on event.defaultPrevented to tell whether the one-offs handled the key event. That's a problem when combined with deferring the down arrow key.

handleKeyNavigation is called twice in that case. The first time, the event is deferred (so executeAction = false), and handleKeyNavigation calls event.preventDefault. The second time, the event is being replayed, but defaultPrevented is true from the previous call regardless of whether the one-offs actually handled the event.

So handleKeyNavigation always returns early because it thinks the one-offs always handled the event, so it never properly replays down arrow keys.

(2) UrlbarProviderUnifiedComplete's query promise is never resolved when the query is canceled. That's a problem in general of course but I tripped over it in this test because I need to check results after the query is canceled, and the test ended up hanging since UrlbarTestUtils waits for the query to finish in order to get its results.

It's not a problem in UnifiedComplete itself per se because of course awesomebar uses UnifiedComplete too, and it doesn't have this problem. The difference is that nsAutoCompleteController::StopSearch calls input->OnSearchComplete() (via PostSearchCleanup): https://searchfox.org/mozilla-central/rev/b756e6d00728dda4121f8278a744381d8643317a/toolkit/components/autocomplete/nsAutoCompleteController.cpp#1433

Quantumbar's UnifiedComplete provider is missing that behavior, so this patch adds it by resolving its query promise when the query is canceled.

Differential Revision: https://phabricator.services.mozilla.com/D29300
2019-05-01 02:30:47 +00:00
Dão Gottwald
6ddceae873 Bug 1544030 - Fix quantumbar popup's vertical borders and position on Mac once again. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D29340
2019-04-30 15:03:21 +00:00
Drew Willcoxon
ef9feda30b Bug 1545916 - Make quantumbar match highlighting case insensitive. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D28751
2019-04-25 18:12:06 +00:00
Bogdan Tara
685a092891 Backed out changeset 2fb18533192e (bug 1545916) for test_tokenizer.js failures CLOSED TREE 2019-04-25 19:57:27 +03:00
Drew Willcoxon
2a4f8995cb Bug 1545916 - Make quantumbar match highlighting case insensitive. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D28751
2019-04-25 08:56:47 +00:00
Drew Willcoxon
e57ae15a16 Bug 1541921 - Remove duplicate-search bailout from quantumbar. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D27859
2019-04-25 05:54:44 +00:00
Drew Willcoxon
904f7fe2c3 Bug 1544996 - Call setValueFromResult when autofilling the first result so that cut/copy work correctly on the autofilled value. r=dao
Bug 1541929 broke this by bypassing setValueFromResult when autofilling the first result in autofillFirstResult. setValueFromResult sets _resultForCurrentValue, so _resultForCurrentValue is null when _getSelectedValueForClipboard is called. We should call setValueFromResult in autofillFirstResult instead of calling _autofillValue directly.

Differential Revision: https://phabricator.services.mozilla.com/D28560
2019-04-24 05:58:20 +00:00
Brindusan Cristian
9d0b353dc0 Backed out changeset b97df75c9365 (bug 1541921) for bc mochitest asan failures. 2019-04-20 01:35:37 +03:00
Drew Willcoxon
6a3ca8e994 Bug 1541921 - Remove duplicate-search bailout from quantumbar. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D27859
2019-04-19 20:57:56 +00:00
Coroiu Cristina
e0e42e03f9 Bug 1545394 - fix ESlint failure r=me on a CLOSED TREE 2019-04-19 23:54:08 +03:00
Dão Gottwald
ddcc8226e7 Bug 1545394 - Keep stale rows in the view while receiving new results. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D28049
2019-04-19 20:09:13 +00:00
Marco Bonardo
2bcdd6cec4 Bug 776408 - Do not autofill after a paste. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D28051
2019-04-19 09:10:40 +00:00
Marco Bonardo
4e67917b3e Bug 1534738 - Title and url in RTL mode are not properly overflowing in Quantum Bar. r=dao
Moves the mask to the url and title elements, uses a flex layout to ensure
elements properly overflow, and fixes alignments and paddings because the new
layout would be more compact. rows are slightly taller than before, but they were
smaller than the legacy bar, so in the end we should be good.

Differential Revision: https://phabricator.services.mozilla.com/D27868
2019-04-18 08:29:18 +00:00
Mark Banner
5b33365e95 Bug 1545124 - Disable add-on manager logging for some tests. r=aswan
Differential Revision: https://phabricator.services.mozilla.com/D27917
2019-04-17 15:48:07 +00:00
Drew Willcoxon
89d97a3ced Bug 1524550 - Remove UrlbarQueryContext's lastKey property. r=mak
This assumes that the current direction in bug 1522278 is the one we want, which it's looking like it is.

Differential Revision: https://phabricator.services.mozilla.com/D27854
2019-04-17 15:19:23 +00:00
Drew Willcoxon
502eaea368 Bug 1522278 - Use nsIEditActionListener to detect when the user deletes autofilled substrings. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D27637
2019-04-17 15:19:23 +00:00
Dão Gottwald
5f3ec5f265 Bug 1543661 - Instead of rounding to integer, use more precision when setting px values. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D27390
2019-04-15 13:05:03 +00:00
Drew Willcoxon
c2c5a74a3a Bug 1541929 - Don't autofill the first result in some cases. r=mak
We need to handle autofilling the first result separately from autofilling results in general (which happens in UrlbarInput.setValueFromResult), so add a new UrlbarInput.autofillFirstResult method. The controller calls it instead of setValueFromResult. I ported the logic from nsAutoCompleteController, as described in the bug.

Other changes are related to the new test for this.

As part of this work, I was interested in learning how awesomebar handles browser_autoFill_typed.js, so I added it to the legacy tests, with a small tweak in the test for awesomebar.

Differential Revision: https://phabricator.services.mozilla.com/D26852
2019-04-15 13:15:30 +00:00
Marco Bonardo
c196d3bb5b Bug 1541647 - Avoid rebinding the urlbar on startup if Quantum Bar is enabled. r=Standard8
Applying the attribute early enough allows us to avoid rebinding the urlbar,
plus a few checks to ensure "popup" windows, without a visible toolbar, work
properly.

Differential Revision: https://phabricator.services.mozilla.com/D27253
2019-04-12 14:14:51 +00:00
Mark Banner
787d213989 Bug 1525548 - Centralise closing the address bar popup into the head file for urlbar tests. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D26759
2019-04-12 12:52:50 +00:00
Dale Harvey
6bc5b736e5 Bug 1496075 - Part 3: Use webextensions in SearchServices. r=mikedeboer,mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D25246
2019-04-11 20:49:31 +00:00
Drew Willcoxon
42d304adb6 Bug 1540710 - Down arrow key on the current URL/text should search for the URL/text, and clicking on the history dropmarker should keep the input's current value. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D25906
2019-04-11 21:09:50 +00:00
Syeda Asra Arshia Qadri
8905025e87 Bug 1541432: Move browser_keyword* tests from browser/base/content/test/general to browser/components/urlbar. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D26895
2019-04-11 13:37:48 +00:00
Dão Gottwald
c3265ab5bb Bug 1541910 - Use the chrome/content separator color for the urlbar results popup's top and bottom borders consistently across platforms and remove left and right borders. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D26192
2019-04-11 11:47:18 +00:00
Marco Bonardo
f29940860e Bug 1540861 - Limit the length of titles and URLs we display so layout doesn't spend too much time building text runs. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D26709
2019-04-10 18:53:13 +00:00
Marco Bonardo
59074ebf32 Bug 1532738 - Fix the expected outcome of browser_caret_navigation.js. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D25978
2019-04-10 09:07:55 +00:00
shindli
ef493e28ea Backed out changeset d389f6f9743e (bug 1540861) for causing perma failing bc7 failures in browser/components/urlbar/tests/browser/browser_UrlbarInput_tooltip.js 2019-04-09 21:40:51 +03:00
Marco Bonardo
13d8cecfa8 Bug 1540861 - Limit the length of titles and URLs we display so layout doesn't spend too much time building text runs. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D26709
2019-04-09 14:01:29 +00:00
Mark Banner
768f96250e Bug 1536508 - Generate a mouseover as well as a mouseout to avoid issues in devedition with browser_UrlbarInput_tooltip.js. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D26531
2019-04-09 07:31:31 +00:00
Marco Bonardo
48a5d78fb1 Bug 1528939. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D26534
2019-04-09 07:20:01 +00:00
Marco Bonardo
4c03cf63d2 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
2019-04-08 23:50:21 +00:00
Drew Willcoxon
b3b23cef7c Bug 1533054 - Add tests for selection key navigation: up/down, page-up/down, tab r=mak
Differential Revision: https://phabricator.services.mozilla.com/D25901
2019-04-04 12:11:32 +00:00
Dão Gottwald
d392e7052c Bug 1542099 - Return a11y focus to the input when arrow left/arrow right/home/end keys are pressed. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D26313
2019-04-05 15:00:36 +00:00
Cosmin Sabou
a9f95bad53 Backed out changeset 278767179a87 (bug 1532738) for turning bug 1352679 into permafail. 2019-04-04 19:13:27 +03:00
Marco Bonardo
b19b3b2ceb Bug 1532738 - Fix the expected outcome of browser_caret_navigation.js. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D25978
2019-04-04 09:09:33 +00:00
Marco Bonardo
ee66817dfd Bug 1533683 - Port the fix for Bug 1480349. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D25668
2019-04-03 12:39:13 +00:00
Marco Bonardo
7ba7bd57b2 Bug 1533052 - Port IME tests from autocomplete. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D25365
2019-04-02 14:24:43 +00:00
Dão Gottwald
a12a00cd8b Bug 1538367 - Fix quantumbar popup's vertical position on Mac. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D25753
2019-04-02 14:39:38 +00:00
Mark Banner
22ce1def9a Bug 1540650 - Fix UrlbarTestUtils to correctly get the title separator for QuantumBar following rtl changes (bug 1540650). r=dao
Differential Revision: https://phabricator.services.mozilla.com/D25581
2019-04-02 09:31:09 +00:00
Noemi Erli
4c9fdcc0ec Backed out changeset e5baf85c4ceb (bug 1533052) for failures in browser_ime_composition.js CLOSED TREE 2019-04-02 01:32:24 +03:00
Marco Bonardo
4a96747eb8 Bug 1533052 - Port IME tests from autocomplete. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D25365
2019-04-01 21:24:42 +00:00
Marco Bonardo
69b7ccd6ea Bug 1532034 - leak in browser_privateBrowsingWindowChange.js. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D25609
2019-04-01 14:25:52 +00:00
Dão Gottwald
7d5ae6509b Bug 1540104 - Properly clear tags when updating a row. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D25373
2019-03-29 18:50:27 +00:00
Dão Gottwald
6f05b32e6b Bug 1533387 - Anchor the quantumbar popup to the textbox rather than to the toolbar so that norolluponanchor="true" works as expected. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D25379
2019-03-29 18:49:44 +00:00
Dão Gottwald
ee51754592 Bug 1524510 - Freeze quantum bar results when the user interacts with them. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D25222
2019-03-29 14:53:52 +00:00