fune/browser/components
Drew Willcoxon a3b0a1fd4c Bug 1827762 - Replace UrlbarProvider.pickResult() and blockResult() with onEngagement() r=mak
This removes `UrlbarProvider.pickResult()` and `blockResult()` in favor of
handling picks and dismissals through `onEngagement()`. A number of providers
use those two methods, so this revision touches a lot of files.

Handling dismissals through `onEngagement()` means `UrlbarInput.pickResult()`
can no longer tell whether a result is successfully dismissed, so it can't
remove the result anymore. (Maybe `onEngagement()` could return some value
indicating it dismissed the result, but I don't want to go down that road.)
Instead, I split `UrlbarController.handleDeleteEntry()` into two methods: a
public one that removes the result and notifies listeners, and a private one
that handles dismissing the selected result internally in
UrlbarController. Providers that have dismissable results should now implement
`onEngagement()` and call `controller.removeResult()`.

I made some other improvements to engagement handling. There's still room for
more but this patch is big enough already.

Other notable changes:

Include the engaged result in engagement notifications so providers have easy
access to it and can respond to clicks and dismissals more easily. That also
lets us stop passing `selIndex` and `provider` to `engagementEvent.record()`
since now it can compute those from the passed-in result.

Add the concept of `isSessionOngoing` to engagement notifications so providers
can tell whether an engagement ended the search session. Right now, providers
like quick suggest that record a bunch of provider-specific legacy telemetry
assume that `onEngagement()` ends the session, but that's no longer true.

Unify result buttons and result menu commands by setting
`element.dataset.command` on buttons (hopefully we can remove buttons soon, at
least the ones that aren't tip buttons)

Make sure we always notify providers on engagement even on dismissals or
when skipping legacy telemetry

Move dismissal of restyled search suggestions and history results from
`UrlbarController.handleDeleteEntry()` to the Places provider

Move dismissal of form history results from
`UrlbarController.handleDeleteEntry()` to the search suggestions provider

In the Places provider, remove the unused `_addSearchEngineMatch()` method. Also
remove the code in the "searchengine" case that creates a non-search-history
result. This code is unreached because the only time the provider creates a
"searchengine" match it also sets `isSearchHistory` to true.

In `UrlbarTestUtils.promiseAutocompleteResultPopup()`, change the default value
of the `fireInputEvent` param from false to true. This is necessary because
without a starting input event, the start event info in `engagementEvent` will
be null, so when `engagementEvent.record()` is called at the end of the
engagement, it will bail, and providers will not be notified of the engagement.
IMO true is a better default value anyway because input events will typically be
fired when the user performs a search.

Differential Revision: https://phabricator.services.mozilla.com/D174941
2023-04-13 06:03:33 +00:00
..
about Bug 1824436 - Add blank page for new view development. r=sfoster,fxview-reviewers 2023-04-12 16:03:39 +00:00
aboutlogins Bug 1826755 - Move Firefox account Fluent term to toolkit, r=fluent-reviewers,settings-reviewers,credential-management-reviewers,fxview-reviewers,mconley,sclements,sgalich,eemeli 2023-04-12 15:51:42 +00:00
attribution Bug 1801379 - Migrate Sinon.jsm to an ES module r=extension-reviewers,application-update-reviewers,pip-reviewers,credential-management-reviewers,fxview-reviewers,devtools-reviewers,Standard8,nchevobbe,sclements,dimi,mconley,bytesized,robwu 2023-03-29 07:34:10 +00:00
build
colorways Bug 1801379 - Migrate Sinon.jsm to an ES module r=extension-reviewers,application-update-reviewers,pip-reviewers,credential-management-reviewers,fxview-reviewers,devtools-reviewers,Standard8,nchevobbe,sclements,dimi,mconley,bytesized,robwu 2023-03-29 07:34:10 +00:00
contextualidentity Bug 1824173 - Automatically fix some ESLint issues raised by the valid-jsdoc configuration. r=mossop,webcompat-reviewers,denschub 2023-03-24 19:35:24 +00:00
controlcenter/content Backed out 2 changesets (bug 1814261) as per request. CLOSED TREE 2023-04-06 18:40:06 +03:00
credentialmanager Bug 1816156 - Change the account chooser's primary button to Sign In, rather than Continue r=anti-tracking-reviewers,fluent-reviewers,pbz 2023-04-03 10:41:28 +00:00
customizableui Bug 1826824 - Enable <a> and <html:a> to be tab navigable in <panelview> elements. r=Gijs,Jamie 2023-04-12 14:03:26 +00:00
doh Bug 1788954 - Convert toolkit/components/nimbus to ES modules r=Standard8,pip-reviewers,credential-management-reviewers,sgalich 2023-03-30 20:51:58 +00:00
downloads Bug 1820878 - Convert toolkit/mozapps/downloads to ESmodules . r=Standard8,extension-reviewers,application-update-reviewers,bytesized,robwu 2023-04-12 17:32:30 +00:00
enterprisepolicies Bug 1826755 - Move Firefox account Fluent term to toolkit, r=fluent-reviewers,settings-reviewers,credential-management-reviewers,fxview-reviewers,mconley,sclements,sgalich,eemeli 2023-04-12 15:51:42 +00:00
extensions Bug 1827762 - Replace UrlbarProvider.pickResult() and blockResult() with onEngagement() r=mak 2023-04-13 06:03:33 +00:00
firefoxview Bug 1824436 - Add blank page for new view development. r=sfoster,fxview-reviewers 2023-04-12 16:03:39 +00:00
installerprefs Bug 1816991 - ESMified installerprefs JSM. r=kpatenio 2023-03-23 03:33:35 +00:00
ion Bug 1822388 - Move brandings.ftl from browser to toolkit, r=eemeli,settings-reviewers,credential-management-reviewers,devtools-reviewers,fxview-reviewers,sgalich,Mardak 2023-03-15 17:00:48 +00:00
messagepreview Bug 1821821 - Enable about:messagepreview in release and beta. r=emcminn,omc-reviewers 2023-03-28 18:29:23 +00:00
migration Backed out 2 changesets (bug 1821187) for causing failures at browser_file_migration.js. CLOSED TREE 2023-04-13 05:28:27 +03:00
newtab Bug 1826755 - Move Firefox account Fluent term to toolkit, r=fluent-reviewers,settings-reviewers,credential-management-reviewers,fxview-reviewers,mconley,sclements,sgalich,eemeli 2023-04-12 15:51:42 +00:00
originattributes Bug 1826702 - Convert PermissionTestUtils to an ES module. r=permissions-reviewers,settings-reviewers,media-playback-reviewers,pbz,padenot 2023-04-06 15:07:56 +00:00
pagedata Bug 1824173 - Enable ESLint configuration valid-jsdocs across the tree, disabling for currently failing locations. r=mossop,webcompat-reviewers,extension-reviewers,credential-management-reviewers,denschub,dimi,robwu 2023-03-24 19:35:25 +00:00
places Bug 1820878 - Convert toolkit/mozapps/downloads to ESmodules . r=Standard8,extension-reviewers,application-update-reviewers,bytesized,robwu 2023-04-12 17:32:30 +00:00
pocket Bug 1788954 - Convert toolkit/components/nimbus to ES modules r=Standard8,pip-reviewers,credential-management-reviewers,sgalich 2023-03-30 20:51:58 +00:00
preferences Bug 1820878 - Convert toolkit/mozapps/downloads to ESmodules . r=Standard8,extension-reviewers,application-update-reviewers,bytesized,robwu 2023-04-12 17:32:30 +00:00
privatebrowsing Bug 1820878 - Convert toolkit/mozapps/downloads to ESmodules . r=Standard8,extension-reviewers,application-update-reviewers,bytesized,robwu 2023-04-12 17:32:30 +00:00
prompts Bug 1817016 - Convert JSM in browser/components/prompts to ESM. r=kpatenio 2023-03-22 18:16:28 +00:00
protections Bug 1826755 - Move Firefox account Fluent term to toolkit, r=fluent-reviewers,settings-reviewers,credential-management-reviewers,fxview-reviewers,mconley,sclements,sgalich,eemeli 2023-04-12 15:51:42 +00:00
protocolhandler Bug 1824173 - Automatically fix some ESLint issues raised by the valid-jsdoc configuration. r=mossop,webcompat-reviewers,denschub 2023-03-24 19:35:24 +00:00
resistfingerprinting Bug 1824235: Add PBM tests for workers r=timhuang 2023-04-11 17:15:38 +00:00
safebrowsing/content/test
screenshots Bug 1820878 - Convert toolkit/mozapps/downloads to ESmodules . r=Standard8,extension-reviewers,application-update-reviewers,bytesized,robwu 2023-04-12 17:32:30 +00:00
search Bug 1814776 - Implement the SERP abandonment event. r=Standard8,jteow 2023-04-12 19:25:31 +00:00
sessionstore Bug 1801379 - Migrate Sinon.jsm to an ES module r=extension-reviewers,application-update-reviewers,pip-reviewers,credential-management-reviewers,fxview-reviewers,devtools-reviewers,Standard8,nchevobbe,sclements,dimi,mconley,bytesized,robwu 2023-03-29 07:34:10 +00:00
shell Bug 1788954 - Convert toolkit/components/nimbus to ES modules r=Standard8,pip-reviewers,credential-management-reviewers,sgalich 2023-03-30 20:51:58 +00:00
storybook Backed out 2 changesets (bug 1821187) for causing failures at browser_file_migration.js. CLOSED TREE 2023-04-13 05:28:27 +03:00
syncedtabs Bug 1826755 - Move Firefox account Fluent term to toolkit, r=fluent-reviewers,settings-reviewers,credential-management-reviewers,fxview-reviewers,mconley,sclements,sgalich,eemeli 2023-04-12 15:51:42 +00:00
tabunloader
tests Bug 1826316 - Change logging about lack of search settings file to debug only. r=search-reviewers,mcheang 2023-04-05 21:22:12 +00:00
textrecognition Bug 1812098 - Fix ESLint raised issues with no-shadow of builtinGlobals in browser .mjs files. r=Gijs,credential-management-reviewers,sgalich,fxview-reviewers,sclements 2023-03-14 09:13:48 +00:00
touchbar Bug 1680865 - Unfocusing Urlbar after any touchbar input. r=dao 2023-04-06 12:37:54 +00:00
translation Bug 1826702 - Convert PermissionTestUtils to an ES module. r=permissions-reviewers,settings-reviewers,media-playback-reviewers,pbz,padenot 2023-04-06 15:07:56 +00:00
translations Bug 1826437 - Add translations panel tests; r=nordzilla 2023-04-12 16:13:24 +00:00
uitour Bug 1826702 - Convert PermissionTestUtils to an ES module. r=permissions-reviewers,settings-reviewers,media-playback-reviewers,pbz,padenot 2023-04-06 15:07:56 +00:00
urlbar Bug 1827762 - Replace UrlbarProvider.pickResult() and blockResult() with onEngagement() r=mak 2023-04-13 06:03:33 +00:00
.eslintrc.js
BrowserComponents.manifest
BrowserContentHandler.sys.mjs Bug 1788954 - Convert toolkit/components/nimbus to ES modules r=Standard8,pip-reviewers,credential-management-reviewers,sgalich 2023-03-30 20:51:58 +00:00
BrowserGlue.sys.mjs Bug 1824897 - Restrict SearchSERPTelemetry Actor to load only on http and https - r=Standard8 2023-04-12 16:43:20 +00:00
components.conf
distribution.js
metrics.yaml
moz.build Bug 1826437 - Add translations panel tests; r=nordzilla 2023-04-12 16:13:24 +00:00
nsIBrowserHandler.idl
StartupRecorder.sys.mjs