gecko-dev/browser
Harry Twyford 198a38cfc4 Bug 1647890 - Replace token alias with indicator when the token alias is confirmed or fully typed. r=adw
This patch changes the paramters to setSearchMode. The original patch to introduce search mode passed engineName to setSearchMode instead of the entire engine object. It was suggested in review that the nsISearchEngine be passed so we could run instanceof to distinguish it from a RESULT_TYPE. This patch reverses this and passes engineName instead through a destructured parameter.

In pickResult, we need to enter search mode synchronously based on the information in a result payload. Result payloads can't/shouldn't pass around complex objects like an nsISearchEngine, so we just pass engineName and the alias as strings. Since pickResult is synchronous, we can't use UrlbarSearchUtils to look up the engine based on the engineName. Besides, setSearchMode only uses engineName, so looking up the engine only to just use its name seems like a waste of resources.

This patch also disables autofill in search mode queries. Autofill was interfering with alias replacement. We were already half doing this (https://searchfox.org/mozilla-central/rev/26b13464c2beb26e0d864d561c30e817a85c348a/browser/components/urlbar/UrlbarController.jsm#391) but adding the searchMode check to UrlbarInput._maybeAutofillOnInput should resolve bug 1655473.

There's still one more bug I'm working through where the placeholder disappears after alias replacement. I though I'd get this out to start review regardless since we want to get the three patches discussed in Thursday's meeting out ASAP.

Differential Revision: https://phabricator.services.mozilla.com/D86389
2020-08-10 02:21:24 +00:00
..
actors Bug 1657572 - Store form history source from search access points. r=adw 2020-08-08 12:49:24 +00:00
app Bug 1657568 - Sync more preferences in Privacy & Security r=lina DONTBUILD 2020-08-08 20:23:36 +00:00
base Bug 1657572 - Store form history source from search access points. r=adw 2020-08-08 12:49:24 +00:00
branding Bug 1654528 - Update comments for brand names in Fluent files r=Pike 2020-07-23 09:31:52 +00:00
components Bug 1647890 - Replace token alias with indicator when the token alias is confirmed or fully typed. r=adw 2020-08-10 02:21:24 +00:00
config Bug 1653171: Run windows L10n repacks on linux; r=Callek 2020-08-04 18:47:55 +00:00
docs Bug 1620358: Gather telemetry on toolbar state. r=Gijs,zombie 2020-06-16 21:06:15 +00:00
extensions Bug 1658027 - Separate visual interactions on Credit Card Autofill for A/B testing. r=abr 2020-08-08 19:25:31 +00:00
fonts Bug 1644346 - Update bundled Twemoji Mozilla font to v0.5.1 to support new emojis. r=lsalzman 2020-06-09 14:45:40 +00:00
fxr Bug 1649221: Update ChromeUtils.generateQI callers to pass strings. r=mccr8,remote-protocol-reviewers,marionette-reviewers,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,preferences-reviewers,agi,whimboo,Bebe,twisniewski 2020-07-10 23:58:28 +00:00
installer Bug 1654913 - Remove Maintenance Service UpdateLogs directory during uninstall. r=agashlin 2020-07-29 23:35:48 +00:00
locales Bug 1657616 - Remove the link to StopBadware.org in SafeBrowsing interstitial page r=gcp,fluent-reviewers,flod 2020-08-07 15:08:10 +00:00
modules Bug 1657572 - Store form history source from search access points. r=adw 2020-08-08 12:49:24 +00:00
themes Bug 1655078 - Make the 'Stop Sharing' button in the WebRTC indicator stop all screen sharing streams. r=pbz 2020-08-05 03:38:19 +00:00
tools/mozscreenshots Backed out changeset e71e10688704 (bug 1634030) for failure at browser_shim_disable_devtools.js CLOSED TREE 2020-08-08 03:46:14 +03:00
.eslintrc.js
LICENSE
Makefile.in
app.mozbuild
build.mk Bug 1641184, use only the merge dir for repacks, r=nalexander 2020-05-27 17:04:06 +00:00
confvars.sh
defs.mk
l10n-registry.manifest
moz.build Bug 1643811 - [ci] Add a SCHEDULES rule to prevent 'android' builds and tests on pushes that exclusively modify files under /browser, r=gbrown,Gijs 2020-06-09 15:54:10 +00:00
moz.configure