Commit Graph

84 Commits

Author SHA1 Message Date
Drew Willcoxon
36ed201877 Bug 1699227 - Support negative suggestedIndex values to allow indexes to be specified from the end of the list of urlbar results. r=mak
Given the result span problem described in bug 1699211 and bug 1699607,
currently there's no way for quick suggest to accurately specify the last index
as its suggested index.

Differential Revision: https://phabricator.services.mozilla.com/D109571
2021-03-25 20:32:52 +00:00
Harry Twyford
3d581840b3 Bug 1616700 - Part 1 - Use default address bar search mode for new tab search handoff r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D108825
2021-03-23 22:56:54 +00:00
Alexandru Michis
7472bfb633 Backed out 3 changesets (bug 1616700) for causing failures in browser_privatebrowsing_about.js
Backed out changeset 5e1b8f75fef5 (bug 1616700)
Backed out changeset fdf97a561019 (bug 1616700)
Backed out changeset de3717cc63ef (bug 1616700)
2021-03-20 01:23:39 +02:00
Harry Twyford
3108d69a6b Bug 1616700 - Part 1 - Use default address bar search mode for new tab search handoff r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D108825
2021-03-19 21:31:12 +00:00
Mark Banner
da55ee7dca Bug 1698847 - Move remaining search telemetry documentation from address bar to search. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D108649
2021-03-18 21:27:30 +00:00
Dale Harvey
483fa9b0fe Bug 1697003 - Update strings for Firefox Suggest experiment r=adw
Differential Revision: https://phabricator.services.mozilla.com/D107525
2021-03-09 12:59:03 +00:00
Nan Jiang
df77370348 Bug 1689365 - Add custom impression and click for QuickSuggest r=adw,daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D106490
2021-02-25 22:17:12 +00:00
Michelle Goossens
0c10414bc9 Bug 1692672 - Re-label "Paste & Go" to "Paste and Go" r=emalysz,flod
Differential Revision: https://phabricator.services.mozilla.com/D106499
2021-02-25 17:28:33 +00:00
Drew Willcoxon
55c443cf32 Bug 1693126 - Add telemetry for when users disable Quick Suggest. r=harry,nanj
This adds event telemetry that's recorded when the
`browser.urlbar.suggest.quicksuggest` pref is toggled. This pref corresponds to
the checkbox in about:preferences#search labeled "Show suggested and sponsored
results in the address bar".

I used `contextservices.quicksuggest` as the event telemetry category name to be
similar to the `contextual.services.quicksuggest.*` scalars. Event names are
limited to 30 chars, so it couldn't be exactly the same.

This is based on my earlier revision for scalar telemetry in D106173.

Depends on D106173

Differential Revision: https://phabricator.services.mozilla.com/D106248
2021-02-25 06:21:32 +00:00
Drew Willcoxon
1a2e2be9d8 Bug 1693927 - Record keyed scalar telemetry for impressions and clicks on Quick Suggest results. r=harry,nanj
This adds three new keyed scalars:

* `contextual.services.quicksuggest.impression`: Incremented when a Quick
  Suggest result is shown in an address bar engagement where the user picks any
  result.
* `contextual.services.quicksuggest.click`: Incremented when the user picks a
  Quick Suggest result (not including the help button).
* `contextual.services.quicksuggest.help``: Incremented when the user picks the
  onboarding help button in a Quick Suggest result.

The changes to telemetry.rst and Scalars.yaml have more details.

I modified `TelemetryEvent.typeFromElement()` to return `"help"` for clicks on
the help button so that the quick suggest provider can tell whether the main
part of the result was picked or the help button. I left `"tiphelp"` for tip
help buttons in case anything depends on that.

Depends on D106060

Differential Revision: https://phabricator.services.mozilla.com/D106173
2021-02-25 06:21:30 +00:00
Csoregi Natalia
d96bc26433 Backed out 2 changesets (bug 1693927, bug 1693126) as requested. CLOSED TREE
Backed out changeset f49147a4544b (bug 1693126)
Backed out changeset 8bb5bc9c97b2 (bug 1693927)
2021-02-25 05:08:26 +02:00
Drew Willcoxon
246ffe7570 Bug 1693126 - Add telemetry for when users disable Quick Suggest. r=harry,nanj
This adds event telemetry that's recorded when the
`browser.urlbar.suggest.quicksuggest` pref is toggled. This pref corresponds to
the checkbox in about:preferences#search labeled "Show suggested and sponsored
results in the address bar".

I used `contextservices.quicksuggest` as the event telemetry category name to be
similar to the `contextual.services.quicksuggest.*` scalars. Event names are
limited to 30 chars, so it couldn't be exactly the same.

This is based on my earlier revision for scalar telemetry in D106173.

Depends on D106173

Differential Revision: https://phabricator.services.mozilla.com/D106248
2021-02-25 02:52:04 +00:00
Drew Willcoxon
bd84faad96 Bug 1693927 - Record keyed scalar telemetry for impressions and clicks on Quick Suggest results. r=harry,nanj
This adds three new keyed scalars:

* `contextual.services.quicksuggest.impression`: Incremented when a Quick
  Suggest result is shown in an address bar engagement where the user picks any
  result.
* `contextual.services.quicksuggest.click`: Incremented when the user picks a
  Quick Suggest result (not including the help button).
* `contextual.services.quicksuggest.help``: Incremented when the user picks the
  onboarding help button in a Quick Suggest result.

The changes to telemetry.rst and Scalars.yaml have more details.

I modified `TelemetryEvent.typeFromElement()` to return `"help"` for clicks on
the help button so that the quick suggest provider can tell whether the main
part of the result was picked or the help button. I left `"tiphelp"` for tip
help buttons in case anything depends on that.

Depends on D106060

Differential Revision: https://phabricator.services.mozilla.com/D106173
2021-02-25 02:52:04 +00:00
Csoregi Natalia
724115d88a Backed out 2 changesets (bug 1693927, bug 1693126) for failures on browser_urlbar_telemetry_quicksuggest.js. CLOSED TREE
Backed out changeset 681c90aa832e (bug 1693126)
Backed out changeset 7525ec04b82a (bug 1693927)
2021-02-24 22:00:43 +02:00
Drew Willcoxon
fce9bb83ea Bug 1693126 - Add telemetry for when users disable Quick Suggest. r=harry,nanj
This adds event telemetry that's recorded when the
`browser.urlbar.suggest.quicksuggest` pref is toggled. This pref corresponds to
the checkbox in about:preferences#search labeled "Show suggested and sponsored
results in the address bar".

I used `contextservices.quicksuggest` as the event telemetry category name to be
similar to the `contextual.services.quicksuggest.*` scalars. Event names are
limited to 30 chars, so it couldn't be exactly the same.

This is based on my earlier revision for scalar telemetry in D106173.

Depends on D106173

Differential Revision: https://phabricator.services.mozilla.com/D106248
2021-02-24 19:13:50 +00:00
Drew Willcoxon
ba2cc6f08f Bug 1693927 - Record keyed scalar telemetry for impressions and clicks on Quick Suggest results. r=harry,nanj
This adds three new keyed scalars:

* `contextual.services.quicksuggest.impression`: Incremented when a Quick
  Suggest result is shown in an address bar engagement where the user picks any
  result.
* `contextual.services.quicksuggest.click`: Incremented when the user picks a
  Quick Suggest result (not including the help button).
* `contextual.services.quicksuggest.help``: Incremented when the user picks the
  onboarding help button in a Quick Suggest result.

The changes to telemetry.rst and Scalars.yaml have more details.

I modified `TelemetryEvent.typeFromElement()` to return `"help"` for clicks on
the help button so that the quick suggest provider can tell whether the main
part of the result was picked or the help button. I left `"tiphelp"` for tip
help buttons in case anything depends on that.

Depends on D106060

Differential Revision: https://phabricator.services.mozilla.com/D106173
2021-02-24 18:01:37 +00:00
Nan Jiang
fa86a20ce2 Bug 1693393 - add telemetry for sponsored TopSites in Urlbar r=dao,harry
Differential Revision: https://phabricator.services.mozilla.com/D105639
2021-02-24 16:57:27 +00:00
harry
87c149589d Bug 1685734 - Add telemetry for tab-to-search result impressions. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D103075
2021-02-04 19:53:40 +00:00
harry
a767458341 Bug 1686330 - Add telemetry for tab-to-search result impressions, per-engine. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D103074
2021-02-04 19:53:37 +00:00
Narcis Beleuzu
731564fc32 Backed out 2 changesets (bug 1686330, bug 1685734) for bc failures on browser_urlbar_telemetry_tabtosearch.js
Backed out changeset 50a8c2a5f4e8 (bug 1685734)
Backed out changeset b129d712e3bc (bug 1686330)
2021-02-01 17:52:34 +02:00
harry
68d45df6dc Bug 1685734 - Add telemetry for tab-to-search result impressions. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D103075
2021-01-28 15:44:22 +00:00
harry
9cc4dd2296 Bug 1686330 - Add telemetry for tab-to-search result impressions, per-engine. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D103074
2021-01-27 17:23:35 +00:00
Drew Willcoxon
9342e54c41 Bug 1647878 - Add in-tree documentation for dynamic result types. r=harry
Differential Revision: https://phabricator.services.mozilla.com/D102681
2021-01-25 22:58:48 +00:00
Mark Banner
b3e05a4f51 Bug 1664847 - Log the search access point for searches with ads and ad clicks. r=daleharvey
Depends on D102441

Differential Revision: https://phabricator.services.mozilla.com/D102443
2021-01-22 10:45:26 +00:00
amy churchwell
de63a13a51 Bug 1665066 - Remove payload.keywordOffer in favor of payload.providesSearchMode. r=harry
Differential Revision: https://phabricator.services.mozilla.com/D101414
2021-01-14 18:45:25 +00:00
Drew Willcoxon
6944af4675 Bug 1579964 - Update the urlbar experiments doc for the new experimental API development model. r=harry
I focused this on fixing what the bug describes: updating the doc for our new
development model where we create experimental APIs inside each extension
instead of landing APIs in mozilla-central. There are a number of other changes
I want to make to this doc but didn't here in order to keep it scoped. I filed
bug 1684069 for those other changes. I can imagine that some of the changes that
this patch makes will be overidden or updated by that bug.

This also fixes a broken link or two.

Differential Revision: https://phabricator.services.mozilla.com/D100417
2021-01-12 19:44:58 +00:00
Harry Twyford
5f7ac1cd89 Bug 1676250 - Stop overcounting urlbar.tips.tabtosearch_onboard-shown. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D97494
2020-11-19 21:55:02 +00:00
Harry Twyford
5e4e26305d Bug 1674874 - Record telemetry for results picked in search mode. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D95796
2020-11-06 00:13:00 +00:00
Narcis Beleuzu
ceea80e19c Backed out changeset 1c37a165ba43 (bug 1674874) for bc failure on browser_UsageTelemetry_urlbar_searchmode.js CLOSED TREE 2020-11-06 00:38:24 +02:00
Harry Twyford
99d09afd48 Bug 1674874 - Record telemetry for results picked in search mode. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D95796
2020-11-05 20:26:00 +00:00
Harry Twyford
a22e862b82 Bug 1674493 - Record number of tab-to-search onboarding impressions. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D95547
2020-11-05 11:28:47 +00:00
Harry Twyford
fba4982207 Bug 1665048 - Update telemetry.rst with search mode launch version. r=mak DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D96064
2020-11-05 16:06:24 +00:00
Marco Bonardo
30347630e5 Bug 1671508 - Convert some urlbar histograms to scalars. r=harry
This converts FX_URLBAR_SELECTED_RESULT_TYPE_2, FX_URLBAR_SELECTED_RESULT_INDEX
and the correlation between them FX_URLBAR_SELECTED_RESULT_INDEX_BY_TYPE_2 to
keyed scalars, that are nicer to use and analyze.

They are converted to one keyed scalar per result type, tracking the number
of times that type was picked per urlbar index.
The sums (count per type or per index) can still be derived from this structure.

Differential Revision: https://phabricator.services.mozilla.com/D94498
2020-10-27 11:36:15 +00:00
Mark Banner
e9caa9b762 Bug 1671404 - Add Provider Name to the urlbar engagement telemetry. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D93660
2020-10-16 14:39:50 +00:00
smolnar
fed372c0c0 Backed out 2 changesets (bug 1665938, bug 1671404) for causing browser_urlbar_event_telemetry failures. CLOSED TREE
Backed out changeset ce37b9b99fd6 (bug 1665938)
Backed out changeset fa95a02b2c90 (bug 1671404)
2020-10-16 15:43:47 +03:00
Mark Banner
e14df73555 Bug 1671404 - Add Provider Name to the urlbar engagement telemetry. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D93660
2020-10-16 11:17:07 +00:00
Harry Twyford
66e10340f5 Bug 1665934 - Part 3 - Add tab-to-search onboarding telemetry. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D93113
2020-10-15 16:29:13 +00:00
Butkovits Atila
a8c41e4018 Backed out 4 changesets (bug 1665934) as requested by Harry. CLOSED TREE
Backed out changeset 342354dfd594 (bug 1665934)
Backed out changeset 56946d59bf0a (bug 1665934)
Backed out changeset 1b03418a14f6 (bug 1665934)
Backed out changeset 8c1edb639aa6 (bug 1665934)
2020-10-15 15:26:00 +03:00
Harry Twyford
444ea50445 Bug 1665934 - Part 3 - Add tab-to-search onboarding telemetry. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D93113
2020-10-15 11:19:17 +00:00
Sylvestre Ledru
34821e90ae Bug 1588458 - Replace dxr by searchfox in the rst doc r=ahal DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D49140
2020-10-08 08:13:15 +00:00
Harry Twyford
74974760b5 Bug 1647923 - Add tab-to-search telemetry. r=adw
This adds tab-to-search telemetry, both for the new tabtosearch search mode entry point and for tabtosearch results in our usual Urlbar result-selection scalars. I also added a subtest in browser_urlbar_event_telemetry, but realized as I was writing it that it was not useful. We don't consider entering search more as the end of an engagement, so tab-to-search results will not appear in event telemetry. We already considered this in bug 1654680 and resolved it by adding detailed urlbar.searchmode.* scalars, so I don't consider it a blocker. I left the new subtest in since it was mostly done anyways and it can't hurt.

Differential Revision: https://phabricator.services.mozilla.com/D91469
2020-09-29 21:21:44 +00:00
Harry Twyford
e0c0c73321 Bug 1657414 - Support search mode in the Touch Bar. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D91077
2020-09-25 20:45:48 +00:00
Harry Twyford
1b40a6a92d Bug 1665076 - Call setSearchMode directly from search(), fix search mode handoff, and introduce new search mode probes. r=adw
This patch calls setSearchMode directly from search(). This sets up a solution for the problem in the bug and also fixes the issue where a call to search() with a restriction token would flicker the token before it was replaced with the search mode indicator. I added new tabmenu and bookmarkmenu entry points to take advantage of this new functionality.

This also fixes the issues with handoff. Besides the problem of search() recording typed for handoff, `handoff` wasn't even registered as a Telemetry probe! That was my mistake. I added a test for handoff telemetry. It was only practical to test it in PBM since it uses a different implementation than about:home that's easier to test. I wrote a lengthy comment above the subtest about why I think this is okay.

Differential Revision: https://phabricator.services.mozilla.com/D91076
2020-09-25 20:45:33 +00:00
Harry Twyford
bc64a5340e Bug 1654680 - Add telemetry for search mode. r=adw
Summary of changes:
1. Adds an `entry` property to the searchMode object to tag how search mode was entered.
2. Introduces `urlbar.searchmode.*` scalars.  These scalars are suffixed with an entry point into search mode, for example `urlbar.searchmode.oneoff`, or `urlbar.searchmode.topsites_urlbar`. Those entry points tell us how search mode is entered most often. The keys for these scalars are strings describing what kind of search mode was entered. In most cases, this will be the name of a search engine, like "Google", or "DuckDuckGo". It may also be one of "history", "bookmarks", or "tabs". We only collect the names of engines that are bundled with Firefox. If the user enters search mode with an engine they installed themselves, we record "other" as the key.
3. Adds a urlbar-searchmode SAP to SEARCH_COUNTS.
4. Adds a browser.engagement.navigation.urlbar_searchmode probe.
5. Adds a urlbar_searchmode SAP to the navigation.search event.

Differential Revision: https://phabricator.services.mozilla.com/D87510
2020-09-02 15:08:50 +00:00
Drew Willcoxon
4bea39a08e Bug 1661811 - Move obsolete/deprecated sections in telemetry.rst to make it less misleading. r=mak
This adds an Obsolete section to the doc. I overused the word "obsolete" in
order to make it hard for your eyes to skip over just an "Obsolete" section
heading as you're skimming this page for info.

Also, `SELECTED_RESULT_TYPES` by itself wasn't clear, so I changed it to
`UrlbarUtils.SELECTED_RESULT_TYPES` and added a link that shouldn't be broken by
future changes.

Differential Revision: https://phabricator.services.mozilla.com/D88675
2020-09-01 19:44:36 +00:00
Mark Banner
8f0b17a753 Bug 1656007 - Move URLBAR_SELECTED_RESULT_TYPES to UrlbarUtils since it is not used in BrowserUsageTelemetry. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D85302
2020-07-30 14:27:50 +00:00
chocos
7c8430cbdd Bug 1648959 - Done internal linking in docs in Browser Directory.r=championshuttler
Differential Revision: https://phabricator.services.mozilla.com/D81475
2020-06-28 20:49:34 +00:00
Drew Willcoxon
5eb2c44695 Bug 1632105 - Implement dynamic result types. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D71921
2020-06-23 19:14:43 +00:00
Harry Twyford
f9e7eac91d Bug 1643490 - Add event telemetry probe to measure the number of words in the input on engagement. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D78396
2020-06-09 16:32:20 +00:00
Razvan Maries
1c6ead450e Backed out changeset f13d74051cc3 (bug 1643490) as requested. CLOSED TREE 2020-06-09 19:26:05 +03:00