Things going through UrlbarInput.search() are often considered typed.
Categories
(Firefox :: Address Bar, defect, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox83 | --- | fixed |
People
(Reporter: mak, Assigned: bugzilla)
References
(Blocks 1 open bug, )
Details
Attachments
(1 file)
47 bytes,
text/x-phabricator-request
|
mmccorquodale
:
data-review+
|
Details | Review |
I'm not sure whether this is a problem for telemetry, but most things invoking gURLBar.search end up in search mode with entry: "typed", even if this can actually be invoked by the newtab handoff, a command, the touchbar or other.
See https://searchfox.org/mozilla-central/search?q=urlbar.search%28&path=&case=false®exp=false
It may be worth checking which values we get for various operations involving search().
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 1•4 years ago
|
||
Here's a brief audit of our existing search mode entry points. The main takeaway is that handoff is broken, and that search()
does indeed record typed
. There doesn't seem to be any other problems. handoff's search goes through a function that was created for that purpose: searchWithAlias()
. It doesn't appear to be recording any Telemetry. PBM's handoff goes through a different call point that was never updated.
A general problem with calls to search()
with a restriction token is that the restriction token flickers in the Urlbar since it is quickly replaced by the search mode indicator. I think the solution to all these problems is to call setSearchMode
directly from search()
and add an optional searchModeEntry
parameter to search()
so callers can set the entry point. We can then get rid of searchWithAlias()
.
I also spoke to Teon and he asked that the search mode telemetry be as granular as possible. That means I'll introduce new search mode scalar suffixes for edge-case entry points, like the Touch Bar, the Library > Bookmarks > Search Bookmarks
button and the Tab overflow > Search Tabs
button.
Reporter | ||
Comment 2•4 years ago
|
||
Thanks for filling that up, I agree with your view the search() behavior should likely be forked for update2 and possibly pbm and normal tabs should go through a common code path.
For the other entries we can probably use something like "bookmarks_menu", "tabs_menu", "touchbar".
Assignee | ||
Comment 3•4 years ago
|
||
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.
Reporter | ||
Updated•4 years ago
|
Assignee | ||
Comment 4•4 years ago
•
|
||
Comment on attachment 9177252 [details]
Bug 1665076 - Call setSearchMode directly from search(), fix search mode handoff, and introduce new search mode probes. r?adw,mak
This request is very similar to the one approved in bug 1654680 comment 12.
- What questions will you answer with this data?
How the new search mode feature in the Urlbar is used, including how users find the feature and what parts of it they use the most. I'm adding telemetry for three new search mode entry points: when the user is "handed off" from the new tab page search box to the Urlbar; selecting Library > Bookmarks > Search Bookmarks and selecting Tab overflow menu > Search Tabs. See bug 1657414 for a data-review request for a fourth new probe.
- Why does Mozilla need to answer these questions? Are there benefits for users? Do we need this information to address product or business requirements? Some example responses:
Without recording Telemetry on these entry points, our search mode data will be incomplete. We want to know how search mode is accessed to know what entry points to invest in or remove.
- What alternative methods did you consider to answer these questions? Why were they not sufficient?
We plan on also doing user studies with this feature, but we want aggregate data to understand how it is used more broadly.
- Can current instrumentation answer these questions?
No, these entry points would currently record in a urlbar.searchmode.other
probe, which does not allow us to distinguish them.
- List all proposed measurements and indicate the category of data collection for each measurement, using the Firefox data collection categories found on the Mozilla wiki.
Measurements
urlbar.searchmode.*
Category 2: Adding several urlbar.searchmode.*
scalars. These scalars are suffixed with an entry point into search mode. This data-review is for urlbar.searchmode.handoff
, urlbar.searchmode.tabmenu
, and urlbar.searchmode.bookmarkmenu
. 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.
- Please provide a link to the documentation for this data collection which describes the ultimate data set in a public, complete, and accurate way.
The documentation on Urlbar telemetry will be updated with this patch to describe the new probes.
- How long will this data be collected? Choose one of the following:
The search team will permanently monitor this data. Teon will look after it.
- What populations will you measure?
All channels, countries, and locales.
- If this data collection is default on, what is the opt-out mechanism for users?
Standard telemetry opt-out.
- Please provide a general description of how you will analyze this data.
We will use the measurement dashboard and STMO.
- Where do you intend to share the results of your analysis?
Internally, with the search team and Firefox Desktop leadership.
- Is there a third-party tool (i.e. not Telemetry) that you are proposing to use for this data collection?
No.
Reporter | ||
Comment 5•4 years ago
|
||
Comment on attachment 9177252 [details]
Bug 1665076 - Call setSearchMode directly from search(), fix search mode handoff, and introduce new search mode probes. r?adw,mak
Forwarding to Megan since Ben is leaving soon.
Comment 6•4 years ago
|
||
Comment on attachment 9177252 [details]
Bug 1665076 - Call setSearchMode directly from search(), fix search mode handoff, and introduce new search mode probes. r?adw,mak
-
Is there or will there be documentation that describes the schema for the ultimate data set in a public, complete, and accurate way?
Yes, this will be documented in the urlbar telemetry docs. -
Is there a control mechanism that allows the user to turn the data collection on and off?
Yes, users can opt out of telemetry collection. -
If the request is for permanent data collection, is there someone who will monitor the data over time?
Yes, Teon Brooks will monitor. -
Using the category system of data types on the Mozilla wiki, what collection type of data do the requested measurements fall under?
Category 2, interaction data. -
Is the data collection request for default-on or default-off?
Default on. -
Does the instrumentation include the addition of any new identifiers ?
No new identifiers. -
Is the data collection covered by the existing Firefox privacy notice?
Yes. -
Does there need to be a check-in in the future to determine whether to renew the data?
No. -
Does the data collection use a third-party collection tool?
No.
data-review +
Comment 8•4 years ago
|
||
bugherder |
Description
•