gecko-dev/browser/components
Drew Willcoxon 292a6bb2ce Bug 1575038 - Quantumbar: Record engagement event telemetry when openViewOnFocus is triggered without mouse clicks. r=dao
We need to start engagement event recording when the view opens due to `openViewOnFocus`. We already do for mouse clicks since we call `engagementEvent.start` from `_on_mousedown`. But we don't for the Ctrl/Command-L key shortcut. The shortcut command calls `openLocation` in browser.js, which calls `gURLBar.startQuery` but not `engagementEvent.start`.

Every time we call `engagementEvent.start`, we do it before calling `input.startQuery`. The one exception is in `input._on_drop` because there we just handle the dropped value directly instead of starting a new query with it.

The inverse is also mostly true, i.e., every time we call `input.startQuery`, we also call `engagementEvent.start`. The three exceptions are: in UITour (where it looks like we should be calling `urlbar.search` instead), in `UrlbarInput` after picking a keyword offer result, and in `openLocation` in browser.js (mentioned above). So really the only valid place is after picking a keyword entry.

So, it makes sense to move `engagementEvent.start()` into `input.startQuery` so that callers don't have to call it. I added an `event` param to `startQuery`, since `engagementEvent.start` needs one. I considered removing that need. It's possible, but then we would need a way to avoid calling `engagementEvent.start` in the keyword offer case, so `startQuery` would need something like a `suppressEngagementEvent` param. `event` basically functions as that, so I left it.

Another thing to point out about this patch is that I chose to record a "typed" value when the pageproxystate is invalid and the view opens due to `openViewOnFocus`. The view does not show the user's top sites in that case, so "topsites" seems wrong.

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

--HG--
extra : moz-landing-system : lando
2019-08-22 14:50:42 +00:00
..
about Bug 1559431 - Add social tracking to the ETP graph r=johannh 2019-08-11 21:43:58 +00:00
aboutconfig Bug 1561435 - Format browser/components/, a=automatic-formatting 2019-07-05 09:53:32 +02:00
aboutlogins Bug 1575697 - Remove 'Launch' button next to the website address in about:logins. r=MattN,fluent-reviewers,flod 2019-08-22 05:32:00 +00:00
attribution Bug 1515172 support funnel attributes in attribution code r=mconley 2019-07-22 22:06:46 +00:00
build Bug 1575420 - Replace MOZ_WIDGET_TOOLKIT value of "gtk3" with "gtk". r=froydnj 2019-08-21 12:25:42 +00:00
contextualidentity Bug 1528697 - Add cenum referrerpolicy in ReferrerInfo.idl r=ckerschb,Gijs 2019-08-21 13:28:23 +00:00
controlcenter/content Bug 1573565 - [Protections Panel] Remove strict mode hint from trackers subview. r=johannh 2019-08-21 12:09:27 +00:00
customizableui Bug 1575249 - Ride along: remove +x permissions on source files r=Ehsan 2019-08-21 09:57:03 +00:00
dirprovider Bug 1003968 - avoid Exists() calls for search plugin directories in the browser directory provider r=daleharvey,Gijs 2019-08-22 09:05:43 +00:00
downloads Merge inbound to mozilla-central. 2019-08-21 01:00:06 +03:00
enterprisepolicies Bug 1571120 - Check for file paths before assuming a URL. r=aswan 2019-08-20 20:52:36 +00:00
extensions Bug 1570478 - Disabled browser_ext_devtools_network.js on Windows, Linux and MacOS. r=jmaher 2019-08-19 09:22:20 +00:00
installerprefs Bug 1567229 - Attempt creating a taskbar pin a second time on Windows 10. r=agashlin 2019-08-21 16:09:46 +00:00
library
migration Backed out changeset 81156ff3f4fa (bug 1571656) for causing browser_PageActions.js and test_insertTree_fixupOrSkipInvalidEntries.js to perma fail CLOSED TREE 2019-08-19 13:00:44 +03:00
newtab Bug 1572551 - Added tooltip for "Recommended Extension" and "Recommended Feature" icons r=k88hudson 2019-08-21 14:48:12 +00:00
originattributes Bug 1531303 - Refactored tests using PermissionManager URI methods to use PermissionTestUtils. r=johannh 2019-08-15 14:32:48 +00:00
payments Bug 1571466 - Cleanup unnecessary ESLint global definitions. r=mossop 2019-08-19 07:11:56 +00:00
places Backed out changeset 81156ff3f4fa (bug 1571656) for causing browser_PageActions.js and test_insertTree_fixupOrSkipInvalidEntries.js to perma fail CLOSED TREE 2019-08-19 13:00:44 +03:00
pocket Bug 1568278. Remove various unnecessary QIs to nsIDOMWindow. r=Gijs 2019-07-24 01:26:07 +00:00
preferences Bug 1573279 - Add a preference to control the Picture-in-Picture toggle to about:preferences. r=mstriemer,fluent-reviewers,flod 2019-08-22 15:01:02 +00:00
privatebrowsing Bug 1566182: Annotate mochitests that fail with Fission enabled. r=mccr8 2019-07-15 16:19:32 -07:00
protections Bug 1572825 - Add telemetry for tracker "Learn More" links. r=johannh 2019-08-20 12:38:08 +00:00
protocolhandler Bug 1561435 - Format browser/components/, a=automatic-formatting 2019-07-05 09:53:32 +02:00
resistfingerprinting Bug 1561435 - Format browser/components/, a=automatic-formatting 2019-07-05 09:53:32 +02:00
safebrowsing/content/test Bug 1560455 - rename CodebasePrincipal to ContentPrincipal. r=ckerschb 2019-07-08 16:37:45 +00:00
search Bug 1561894 - Implement simplified one-off search button design. r=dao 2019-08-13 19:03:20 +00:00
sessionstore Bug 1528697 - Add cenum referrerpolicy in ReferrerInfo.idl r=ckerschb,Gijs 2019-08-21 13:28:23 +00:00
shell Bug 1575420 - Replace MOZ_WIDGET_TOOLKIT value of "gtk3" with "gtk". r=froydnj 2019-08-21 12:25:42 +00:00
syncedtabs Bug 1561435 - Format browser/components/, a=automatic-formatting 2019-07-05 09:53:32 +02:00
tests Bug 1570062 - Whitelist what's new "moments" pages r=k88hudson 2019-08-08 19:22:38 +00:00
touchbar Backed out changeset 4aead1eca8c6 (bug 1521893) to fix crashes (bug 1568862) 2019-07-29 17:11:19 +02:00
translation Bug 1531303 - Refactored tests using PermissionManager URI methods to use PermissionTestUtils. r=johannh 2019-08-15 14:32:48 +00:00
uitour Bug 1574484 - Updated UITourChild.jsm to use PermissionManager principal method. r=MattN 2019-08-21 17:58:10 +00:00
urlbar Bug 1575038 - Quantumbar: Record engagement event telemetry when openViewOnFocus is triggered without mouse clicks. r=dao 2019-08-22 14:50:42 +00:00
.eslintrc.js
BrowserComponents.manifest
BrowserContentHandler.jsm Bug 1572838 - stop processing osint in BrowserContentHandler.jsm, r=mossop 2019-08-20 19:51:36 +00:00
BrowserGlue.jsm Bug 1560327 - [Protections Panel] Implement telemetry event recording. r=johannh 2019-08-20 13:49:28 +00:00
components.conf
distribution.js Bug 1571639 - Don't add distro bookmarks if profile has been reset. r=MattN 2019-08-21 22:18:37 +00:00
moz.build Bug 1567247 Part 1 - Reflect a fixed list of prefs into the Windows registry so the installer can read them. r=agashlin 2019-08-19 21:06:02 +00:00
nsIBrowserHandler.idl