Commit graph

2525 commits

Author SHA1 Message Date
Dão Gottwald
2f9a79d1c4 Bug 1821375 - Remove weird providerName != "UrlbarProviderTopSites" check from UrlbarController::typeFromElement. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D172134
2023-03-09 16:34:33 +00:00
Dão Gottwald
0e678372a8 Bug 1790020 - Hook up urlbar result menu with telementry. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D168688
2023-03-09 12:02:13 +00:00
Cristina Horotan
2629abc70f Backed out changeset fcc4aae881d7 (bug 1790020) for causing bc failures at browser_ext_urlbar.js CLOSED TREE 2023-03-09 13:11:26 +02:00
Dão Gottwald
b288401947 Bug 1790020 - Hook up urlbar result menu with telementry. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D168688
2023-03-09 09:54:20 +00:00
Daisuke Akatsuka
8f35152ae1 Bug 1820327: Record TAIL_SUGGESTION as search_suggest group r=mak
Differential Revision: https://phabricator.services.mozilla.com/D171947
2023-03-08 21:46:07 +00:00
Dale Harvey
8a81a95209 Bug 1819775 - Add icon for trending suggestions. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D171404
2023-03-08 21:00:27 +00:00
Stanca Serban
d771cbde8d Backed out changeset e7822e311e0c (bug 1790020) for causing mochitests failures in browser/components/urlbar/tests/browser-tips/browser_searchTips_interaction.js. CLOSED TREE 2023-03-08 17:40:26 +02:00
Dão Gottwald
e4fa7bdf10 Bug 1790020 - Hook up urlbar result menu with telementry. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D168688
2023-03-08 14:22:31 +00:00
Daisuke Akatsuka
046a601a7f Bug 1820453: Introduce unsortedResults to the query r=adw
Differential Revision: https://phabricator.services.mozilla.com/D171673
2023-03-08 02:30:33 +00:00
Drew Willcoxon
34b853d0d1 Bug 1819797 - Update telemetry for navigational suggestions and dynamic Wikipedia and add subtypes to quick suggest results. r=daleharvey
This adds a bunch of scalars to record navigational suggestions telemetry as
discussed with data science and described in the spec. These scalars are
different from the other Suggest ones because we want to record how nav
suggestions interact with the heuristic result. Unlike the existing scalars, the
keys of these new scalars are the types of heuristics that were shown when a nav
suggestion was or wasn't shown. One of the scalars is updated every time a nav
suggestion is *not* shown, and of course for most users that will be the vast
majority of the time or all the time, so I put all these scalars behind a Nimbus
variable. We'll set the variable to true in the control and treatment branches
of the nav suggestions experiment.

This patch also makes sure nav suggestions are recorded properly in Glean, as
`navigational`. I noticed that dynamic Wikipedia results are currently recorded
as `suggest_non_sponsor`, so I also added a new `dynamic_wikipedia` Glean type
for them. They're also recorded as `urlbar.picked.quicksuggest` in the legacy
telemetry, so I also changed it so they're recorded as
`urlbar.picked.dynamic_wikipedia`.

Currently for dynamic Wikipedia, the non-sponsored scalars are also incremented,
and I discussed with data science whether they and the sponsored scalars should
be incremented for all the new Suggest suggestion types we now have. We agreed
that they should be reserved for the usual partner sponsored and expanded
Wikipedia suggestions, and they should not be used for these new Suggest types,
so this patch also makes that change, and it does not update the non-sponsored
scalars for nav suggestions either.

The other major change this makes is to add a new `subtype` property to quick
suggest result payloads. I think we need a clear, simple way to distinguish
between all these various Suggest suggestion types that doesn't depend on
examining different payload properties depending on the type.

Differential Revision: https://phabricator.services.mozilla.com/D171525
2023-03-08 01:11:02 +00:00
James Teow
e3c11d9eb1 Bug 1818848 - Use valid pageproxystate for persisted search terms when urlbar is un-focused - r=adw
Differential Revision: https://phabricator.services.mozilla.com/D170973
2023-03-07 22:08:32 +00:00
Daisuke Akatsuka
6cec806dc7 Bug 1817206: Use visibleResults for telemetry instead of results in query r=adw,mak
Differential Revision: https://phabricator.services.mozilla.com/D171444
2023-03-07 21:27:07 +00:00
mcheang
ed2da45a0d Bug 1820326 - Remove quicksuggest result from metrics.yaml because glean telemetry doesn't return quicksuggest. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D171721
2023-03-06 16:04:26 +00:00
Daisuke Akatsuka
ee9f164292 Bug 1820081: Correspond to cleared query context when paste-and-go and drop-and-go r=adw
Differential Revision: https://phabricator.services.mozilla.com/D171527
2023-03-05 22:45:29 +00:00
Drew Willcoxon
ee3004c674 Bug 1817038 - Move weather suggestion keywords to Nimbus. r=daisuke
This reverts the changes from D168757 bug 1814795 related to remote settings. It
moves the weather keywords from the config in remote settings to a new Nimbus
variable called `weatherKeywords`. Bug 1817038 has more context.

It also adds another variable called `weatherKeywordsMinimumLength` that lets
the user type prefixes of the keywords instead of the full strings. This is
similar to how sponsored and Wikipedia suggestion keywords contain prefixes,
except here Firefox is computing the prefixes from the full keywords instead of
assuming that the prefixes are in the keyword data.

It also removes the `weather.zeroPrefix` pref added in D168757. Instead, the
weather suggestion is triggered on zero prefix if a Nimbus experiment isn't
active or if the experiment doesn't define `weatherKeywords`.

Finally, it makes one unrelated change: The user's search string can now contain
trailing spaces and still match a weather keyword. I don't think it makes sense
for the weather suggestion to be shown when you type "weather" but then it goes
away after you type a space.

Differential Revision: https://phabricator.services.mozilla.com/D169977
2023-03-03 23:51:54 +00:00
Dão Gottwald
9eaa089f9e Bug 1816496 - Explicitly close result menu when closing the view. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D171562
2023-03-03 17:20:20 +00:00
mcheang
c85c0172e0 Bug 1815699 - Modify existing Glean telemetry and add new telemetry to account for weather as a suggestion. r=adw
This patch modifies existing Glean urlbar abandonment, engagement, and
impression events by including a weather suggestion.

This patch also adds a new telemetry scalar url.picked.weather to the legacy
telemetry system.

Differential Revision: https://phabricator.services.mozilla.com/D169225
2023-03-01 19:06:49 +00:00
Dão Gottwald
cf767fa2d9 Bug 1817401 - Implement "Dismissed suggestions" handling in Firefox Suggest preferences section. r=adw,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D170671
2023-03-01 09:58:25 +00:00
Daisuke Akatsuka
b14be42ef5 Bug 1817931: Introduce experimental_addon in the result type r=mak
Differential Revision: https://phabricator.services.mozilla.com/D170475
2023-02-28 21:44:31 +00:00
Daisuke Akatsuka
96daf99b37 Bug 1790635: Hide QuickActions row if all actions are inactive r=daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D157288
2023-02-28 21:05:07 +00:00
Daisuke Akatsuka
4874944c05 Bug 1817196: Record preference value that affects the number of results showing in the urlbar r=mak
Differential Revision: https://phabricator.services.mozilla.com/D170317
2023-02-28 21:02:35 +00:00
Marco Bonardo
c9738d3a71 Bug 1818881 - Avoid polling for frecency recalcs. r=florian,daisuke
Rather than checking every minute for work to do, use .exchange() to check
if sShouldStartFrecencyRecalculation switches to true and if so dispatch a
runnable to notify PlacesFrecencyRecalculator. The latter sets back
sShouldStartFrecencyRecalculation to false once the recalculation is complete.

Differential Revision: https://phabricator.services.mozilla.com/D171093
2023-02-28 12:57:19 +00:00
Sandor Molnar
52b16d91f5 Backed out changeset 6596733ddc41 (bug 1818881) for causing xpc failures in toolkit/components/search/tests/xpcshell/test_searchSuggest_cookies.js CLOSED TREE 2023-02-28 13:31:40 +02:00
Marco Bonardo
11246a7aca Bug 1818881 - Avoid polling for frecency recalcs. r=florian,daisuke
Rather than checking every minute for work to do, use .exchange() to check
if sShouldStartFrecencyRecalculation switches to true and if so dispatch a
runnable to notify PlacesFrecencyRecalculator. The latter sets back
sShouldStartFrecencyRecalculation to false once the recalculation is complete.

Differential Revision: https://phabricator.services.mozilla.com/D171093
2023-02-28 10:11:43 +00:00
Stanca Serban
9e0ba81905 Backed out changeset e7a8fb56745e (bug 1817196) as requested by dev for missing data-review. CLOSED TREE 2023-02-28 11:40:18 +02:00
Daisuke Akatsuka
48fa519217 Bug 1817899: Introduce weather in the result type r=mak
Differential Revision: https://phabricator.services.mozilla.com/D170471
2023-02-28 01:26:50 +00:00
Daisuke Akatsuka
269a8102c1 Bug 1817202: Introduce site_specific_contextual_search in the result type r=mak
Differential Revision: https://phabricator.services.mozilla.com/D170470
2023-02-28 01:26:50 +00:00
Daisuke Akatsuka
ba7ad42706 Bug 1817203: Introduce go_button in engagement_type r=mak
Differential Revision: https://phabricator.services.mozilla.com/D171033
2023-02-28 01:26:49 +00:00
Daisuke Akatsuka
1441fa602e Bug 1817196: Record preference value that affects the number of results showing in the urlbar r=mak
Differential Revision: https://phabricator.services.mozilla.com/D170317
2023-02-28 00:51:46 +00:00
Niklas Baumgardner
c057486ca0 Bug 1801019 - Add telemetry for screenshots component. r=sfoster
Differential Revision: https://phabricator.services.mozilla.com/D164948
2023-02-25 17:26:34 +00:00
Daisuke Akatsuka
b4393a09b1 Bug 1817156: Use input_field as selected_result value if the result view has not been shown upon engagement r=mak
Differential Revision: https://phabricator.services.mozilla.com/D170144
2023-02-25 07:32:04 +00:00
Daisuke Akatsuka
5f9551163e Bug 1817155: Make results and groups empty if the result view has not been shown upon engagement r=mak
Differential Revision: https://phabricator.services.mozilla.com/D170143
2023-02-25 07:32:04 +00:00
Marco Bonardo
dbd7c88d1f Bug 1818549 - Update frecency recalculation documentation. r=mcheang
Reformat special values and fields with double backticks.
Add additional details about the recalculation.

Differential Revision: https://phabricator.services.mozilla.com/D170785
2023-02-24 13:50:23 +00:00
Dão Gottwald
78dcb2f4d0 Bug 1818245 - Consolidate dynamic attribute setting code in UrlbarView. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D170612
2023-02-24 07:16:56 +00:00
Marian-Vasile Laza
5a3faecdb0 Backed out changeset d853ddfd853e (bug 1801019) for bc failures on browser_screenshots_telemetry_tests.js. CLOSED TREE 2023-02-23 21:11:16 +02:00
Niklas Baumgardner
26e4c6bc8a Bug 1801019 - Add telemetry for screenshots component. r=sfoster
Differential Revision: https://phabricator.services.mozilla.com/D164948
2023-02-23 17:37:01 +00:00
Gijs Kruitbosch
fbd24413c4 Bug 1817443 - remove openUILinkIn entirely and rename fromChrome, r=mossop,extension-reviewers,rpl
'fromChrome' really meant "force tabs to open in the foreground", so let's
rename it accordingly.

This removes the attempt to document arguments for openUILinkIn.
I'll add documentation back on the end of this stack, for openLinkIn, when
various bits are reorganized anyway.

Differential Revision: https://phabricator.services.mozilla.com/D170384
2023-02-23 17:02:43 +00:00
Dão Gottwald
ef02f9d6d0 Bug 1818455 - Fix selecting the result menu button by mouse with browser.urlbar.resultMenu.keyboardAccessible=false. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D170736
2023-02-23 16:27:40 +00:00
Cristina Horotan
45de4f594f Backed out 5 changesets (bug 1817443) for newtab failure CLOSED TREE
Backed out changeset ba33c510d008 (bug 1817443)
Backed out changeset 07e3bccaeb6d (bug 1817443)
Backed out changeset 2b39dee42948 (bug 1817443)
Backed out changeset a74a52e93af4 (bug 1817443)
Backed out changeset 827855beb033 (bug 1817443)
2023-02-23 17:30:23 +02:00
Gijs Kruitbosch
4458f50681 Bug 1817443 - remove openUILinkIn entirely and rename fromChrome, r=mossop,extension-reviewers,rpl
'fromChrome' really meant "force tabs to open in the foreground", so let's
rename it accordingly.

This removes the attempt to document arguments for openUILinkIn.
I'll add documentation back on the end of this stack, for openLinkIn, when
various bits are reorganized anyway.

Depends on D170210

Differential Revision: https://phabricator.services.mozilla.com/D170384
2023-02-23 14:49:28 +00:00
Dale Harvey
31edb5e98c Bug 1811931 - Add support for trending suggestions. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D167618
2023-02-23 10:07:08 +00:00
Dale Harvey
09fead8b3f Bug 1814111 - Don't revert prefs in the middle of quickaction tests. r=gw
Differential Revision: https://phabricator.services.mozilla.com/D170703
2023-02-23 01:34:18 +00:00
Marco Bonardo
3ab87cc3c1 Bug 1765552 - Add ranking documentation to Address Bar source docs. r=mcheang
Differential Revision: https://phabricator.services.mozilla.com/D157934
2023-02-22 18:08:47 +00:00
Daisuke Akatsuka
089aebb832 Bug 1817200: Add an explanation about provider for no results are shown r=mak DONTBUILD
Depends on D170144

Differential Revision: https://phabricator.services.mozilla.com/D170313
2023-02-22 13:33:31 +00:00
Dão Gottwald
075527b581 Bug 1813517 - Add hidden pref for allowing Tab to skip over the menu button. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D170267
2023-02-22 11:16:44 +00:00
Butkovits Atila
f8a9ce74db Backed out changeset aaf82d1483ad (bug 1801019) for causing failures at browser_screenshots_telemetry_tests.js. CLOSED TREE 2023-02-21 23:04:05 +02:00
Niklas Baumgardner
ab7aa855c8 Bug 1801019 - Add telemetry for screenshots component. r=sfoster
Differential Revision: https://phabricator.services.mozilla.com/D164948
2023-02-21 19:59:09 +00:00
Mark Banner
8acde8d74e Bug 1816934 - Update consumers of services/settings to import ES modules directly. r=leplatrem,extension-reviewers,settings-reviewers,credential-management-reviewers,sgalich,mconley,robwu
Differential Revision: https://phabricator.services.mozilla.com/D169934
2023-02-17 19:32:06 +00:00
Rob Wu
e52e35b970 Bug 1784662 - Reduce time spent in browser_ext_omnibox.js test r=willdurand,adw
This is a test-only change. It introduces a new Urlbar pref to make the
existing 3000 ms timeout configurable.

That timeout is currently reached 8 times in the test. That means that
the test will take at least 3 x 8 = 24 seconds to run while basically
doing nothing, and makes the test prone to reach the deadline by which
the test is declared timed-out.

To avoid "Test timed out" errors, the test now reduces the fixed 3000 ms
timeout to 500 ms, so now we wait for 8x500 = 4 seconds instead of 24.

Differential Revision: https://phabricator.services.mozilla.com/D169846
2023-02-17 18:20:01 +00:00
Dão Gottwald
8f893af29b Bug 1816496 - Listen to popuphiding event instead of seemingly unreliable popuphidden. r=NeilDeakin
Differential Revision: https://phabricator.services.mozilla.com/D169707
2023-02-17 16:50:38 +00:00