gecko-dev/browser
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
..
actors Bug 1571080 - [Fission] Port form validation to JSWindowActor. r=NeilDeakin 2019-08-19 18:20:19 +00:00
app No Bug, mozilla-central repo-update HSTS HPKP blocklist remote-settings - a=repo-update r=RyanVM 2019-08-22 13:43:50 +00:00
base Bug 1575038 - Quantumbar: Record engagement event telemetry when openViewOnFocus is triggered without mouse clicks. r=dao 2019-08-22 14:50:42 +00:00
branding Bug 1575420 - Replace MOZ_WIDGET_TOOLKIT value of "gtk3" with "gtk". r=froydnj 2019-08-21 12:25:42 +00:00
components Bug 1575038 - Quantumbar: Record engagement event telemetry when openViewOnFocus is triggered without mouse clicks. r=dao 2019-08-22 14:50:42 +00:00
config Bug 1573722 - Remove browser/config/mozconfigs/linux64/hazards. r=sfink 2019-08-17 00:47:24 +00:00
docs Bug 1567121 - Re-arrange the docs under browser/ so that they all fall under the top-level 'Firefox' docs page. r=ahal 2019-08-20 17:14:50 +00:00
extensions Bug 1564594 - Add an Enhanced Search webcompat site patch r=nalexander,denschub 2019-08-21 20:32:27 +00:00
fonts Bug 1470107 - Update Twemoji Mozilla to 0.4.0 (twemoji 11.4.0). r=jfkthame 2019-04-19 20:58:50 +00:00
fxr Bug 1570123 - Export Input functions from vrhost r=kip 2019-08-09 22:41:23 +00:00
installer Bug 1575420 - Replace MOZ_WIDGET_TOOLKIT value of "gtk3" with "gtk". r=froydnj 2019-08-21 12:25:42 +00:00
locales 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
modules Bug 1574124 - Updated PermissionUI.jsm to use SitePermissions principal methods. r=johannh 2019-08-20 12:15:00 +00:00
themes Bug 1575420 - Replace MOZ_WIDGET_TOOLKIT value of "gtk3" with "gtk". r=froydnj 2019-08-21 12:25:42 +00:00
tools/mozscreenshots Bug 1574130 - Updated ControlCenter.jsm to use SitePermissions principal methods. r=johannh 2019-08-20 12:14:32 +00:00
.eslintrc.js Bug 1558517 - Pre 3.0: Remove conflicting eslint rules, and turn on "curly: all" everywhere, r=standard8 2019-06-28 17:14:01 +02:00
LICENSE
Makefile.in
app.mozbuild
build.mk
confvars.sh Bug 1562952 - Always build signmar when mar is built. r=nalexander 2019-07-16 19:01:03 +00:00
defs.mk
l10n-registry.manifest Bug 1555662 - Register L10nRegistry sources using categories. r=kmag 2019-06-08 04:37:31 +00:00
moz.build Bug 1567121 - Re-arrange the docs under browser/ so that they all fall under the top-level 'Firefox' docs page. r=ahal 2019-08-20 17:14:50 +00:00
moz.configure Bug 1569330 - Disable telemetry check in Normandy recipe runner r=mythmon,nalexander 2019-08-06 23:54:34 +00:00