gecko-dev/browser/components/urlbar/tests/unit
Drew Willcoxon ee7630f333 Bug 1524718 - Replace context.autofillValue with result.autofill, and autofill results when they're selected. r=mak
We should replace the context.autofillValue property with a result.autofill property. When the view selects results, it already notifies the input about it by calling input.setValueFromResult(). So we can modify setValueFromResult to check for the presence of result.autofill and thereby get autofill "for free".

result.autofill is an object: { value, selectionStart, selectionEnd }

This is going to help me implement bug 1521702.

One potentially cool thing about doing autofill this way is that any result can now trigger autofill, not only the heuristic result, and do it easily. Of course the user isn't typing when they select a non-heuristic result, so it's probably not fair to call that "autofill", but the result can trigger the selection aspect of autofill. As one example, that might be interesting for search suggestions: Type "foo", key down to the "foobar" suggestion, and the "bar" substring is automatically selected.

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

--HG--
extra : moz-landing-system : lando
2019-02-07 00:30:04 +00:00
..
data Bug 1515015 - Quantum Bar results are messed up. r=Standard8 2018-12-21 21:22:07 +00:00
.eslintrc.js
head.js Bug 1524593 - nsISearchService (aka nsIBrowserSearchService, previously) refactor to be mostly an asynchronous, in preparation of WebExtension engines. r=daleharvey 2019-02-02 11:27:21 +00:00
test_muxer.js Bug 1522425 - Rename MATCH_SOURCE to RESULT_SOURCE. r=mak 2019-01-29 09:29:21 +00:00
test_providerOpenTabs.js Bug 1522426 - Rename MATCH_TYPE to RESULT_TYPE. r=mak 2019-01-25 16:14:21 +00:00
test_providersManager.js Bug 1522425 - Rename MATCH_SOURCE to RESULT_SOURCE. r=mak 2019-01-29 09:29:21 +00:00
test_providersManager_filtering.js Bug 1522425 - Rename MATCH_SOURCE to RESULT_SOURCE. r=mak 2019-01-29 09:29:21 +00:00
test_providersManager_maxResults.js Bug 1522425 - Rename MATCH_SOURCE to RESULT_SOURCE. r=mak 2019-01-29 09:29:21 +00:00
test_providerUnifiedComplete.js Bug 1522226 - Quantum bar should show only matching bookmark tags. r=adw 2019-01-25 21:49:17 +00:00
test_tokenizer.js Bug 1514780 - Use the Quantum Bar tokenizer in UnifiedComplete. r=adw 2019-01-17 11:26:29 +00:00
test_UrlbarController_integration.js Merge mozilla-central to autoland. CLOSED TREE 2019-01-29 12:59:48 +02:00
test_UrlbarController_telemetry.js Bug 1522425 - Rename MATCH_SOURCE to RESULT_SOURCE. r=mak 2019-01-29 09:29:21 +00:00
test_UrlbarController_unit.js Bug 1524718 - Replace context.autofillValue with result.autofill, and autofill results when they're selected. r=mak 2019-02-07 00:30:04 +00:00
test_UrlbarQueryContext.js Bug 1520907 - Rename QueryContext to UrlbarQueryContext. r=Standard8 2019-01-23 00:39:07 +00:00
test_UrlbarUtils_addToUrlbarHistory.js Bug 1514594: Part 3 - Change ChromeUtils.import API. 2019-01-17 10:18:31 -08:00
test_UrlbarUtils_getShortcutOrURIAndPostData.js Bug 1524593 - nsISearchService (aka nsIBrowserSearchService, previously) refactor to be mostly an asynchronous, in preparation of WebExtension engines. r=daleharvey 2019-02-02 11:27:21 +00:00
xpcshell.ini Bug 1520907 - Rename QueryContext to UrlbarQueryContext. r=Standard8 2019-01-23 00:39:07 +00:00