243 Commits

Author SHA1 Message Date
Alex Kontos
c0f21b484c feat: add double-click select all behavior to urlbar 2025-11-06 14:13:36 +00:00
kpatenio
917529707f Bug 1959497 - remove pocket suggestions from firefox desktop r=urlbar-reviewers,adw a=RyanVM
Original Revision: https://phabricator.services.mozilla.com/D251076

Differential Revision: https://phabricator.services.mozilla.com/D251661
2025-06-03 03:19:31 +00:00
Dale Harvey
2a795f4591 Bug 1967857 - Enable scotchBonnet by default r=urlbar-reviewers,daisuke
Differential Revision: https://phabricator.services.mozilla.com/D250537
2025-05-22 14:47:01 +00:00
dadaa
6e0ff1deb8 Bug 1967626: Introduce yelpServiceResultDistinction Nimbus variable to enable service type title r=adw
Differential Revision: https://phabricator.services.mozilla.com/D250370
2025-05-21 02:23:07 +00:00
Drew Willcoxon
bf950118ff Bug 1966811 - Enable Suggest in the UK and disable most suggestion types outside the US. r=daisuke,nanj
Differential Revision: https://phabricator.services.mozilla.com/D249706
2025-05-19 19:43:24 +00:00
Yazan Al-Macki
ac53f457a4 Bug 1960836 - Create Suggest disable event. r=mak,urlbar-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D248547
2025-05-19 01:37:39 +00:00
Marco Bonardo
25602f6943 Bug 1965225 - Make Semantic History search provider respect history suggest pref. r=cgopal
Rather than introducing a new pref, keep using the existing one. The
idea is that semantic history search will be part of the normal history
search functionality, so it doesn't need a separate pref.
Also add some checks to avoid unnecessary work in unrelated search modes.

Differential Revision: https://phabricator.services.mozilla.com/D248925
2025-05-16 12:40:22 +00:00
Dale Harvey
8fe17fd05f Bug 1964378 - Limit the number of actions shown. r=dao,urlbar-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D249078
2025-05-16 11:26:41 +00:00
Narcis Beleuzu
bf7d376983 Revert "Bug 1965225 - Make Semantic History search provider respect history suggest pref. r=cgopal" for causing xpcshell failure on test_UrlbarProviderSemanticHistorySearch.js
This reverts commit e85ff46c79.
2025-05-16 09:45:24 +00:00
Marco Bonardo
e85ff46c79 Bug 1965225 - Make Semantic History search provider respect history suggest pref. r=cgopal
Rather than introducing a new pref, keep using the existing one. The
idea is that semantic history search will be part of the normal history
search functionality, so it doesn't need a separate pref.
Also add some checks to avoid unnecessary work in unrelated search modes.

Differential Revision: https://phabricator.services.mozilla.com/D248925
2025-05-16 08:57:10 +00:00
agoloman
c510b99a16 Revert "Bug 1960836 - Create Suggest disable event. r=mak,urlbar-reviewers" for causing bc failures @browser_glean_telemetry_engagement_groups.js.
This reverts commit 70ec0cd1a9.
2025-05-16 03:07:14 +00:00
Yazan Al-Macki
70ec0cd1a9 Bug 1960836 - Create Suggest disable event. r=mak,urlbar-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D248547
2025-05-16 01:26:26 +00:00
mcheang
89b60bb888 Bug 1962223 - Add Special Message Action to set search mode. r=omc-reviewers,aminomancer,urlbar-reviewers,jteow
Differential Revision: https://phabricator.services.mozilla.com/D246531
2025-05-06 18:57:57 +00:00
Chidam Gopal
080f7943d2 Bug 1960698 - history search - UrlbarProvider semanticsearch part 1 r=mak,places-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D245635
2025-05-01 15:21:14 +00:00
Drew Willcoxon
a305245de3 Bug 1961040 - Convert ExposureSuggestions to DynamicSuggestions. r=daisuke
This converts `ExposureSuggestions` to `DynamicSuggestions`. Dynamic Rust
suggestions can be used to deliver hidden-exposure suggestions. I updated the
exposure test to show that, and I also added a new dynamic test.

Differential Revision: https://phabricator.services.mozilla.com/D244466
2025-04-29 00:15:14 +00:00
Drew Willcoxon
c6aa8fdd9f Bug 1961881 - Hook up desktop to the dismissal API in the Suggest Rust component. r=daisuke,settings-reviewers
This hooks up desktop to the dismissal API in the Rust component [1] and removes
`BlockedSuggestions`.

The Rust dismissal API has two ways to dismiss a suggestion: by `Suggestion`
object and by dismissal key. We use the first one for Rust suggestions and the
second one for other suggestions, like Merino. A dismissal key is just an
arbitrary opaque string token stored in the dismissed-suggestions table in the
Rust component. It's up to consumers (like desktop) to use appropriate dismissal
keys for their non-Rust suggestions.

In order to retain the user's blocked digests that desktop has always recorded
in the `quicksuggest.blockedDigests` pref, I took advantage of dismissal keys by
migrating each digest to a dismissal key in the Rust component.

[1] See bug 1961412 and https://github.com/mozilla/application-services/pull/6714

Differential Revision: https://phabricator.services.mozilla.com/D246369
2025-04-25 00:26:51 +00:00
Sam Foster
c14accb225 Bug 1926118 - Fix the perf tests for the urlbar breakout. r=desktop-theme-reviewers,urlbar-reviewers,jteow,emilio
- Remove the 'browser.urlbar.disableExtendForTests' pref codepath.
- Fix the rect filters to reflect the extent of re-paints we expect when the urlbar opens and the
  results repopulate

Differential Revision: https://phabricator.services.mozilla.com/D226414
2025-04-23 21:27:57 +00:00
Daisuke Akatsuka
8344f9d54d Bug 1961041: Change ampTopPickCharThreshold default value r=adw
Differential Revision: https://phabricator.services.mozilla.com/D245828
2025-04-17 21:36:54 +00:00
Daisuke Akatsuka
1e015a6782 Bug 1961069: Enable weather suggestions by default r=adw
Differential Revision: https://phabricator.services.mozilla.com/D245831
2025-04-17 03:55:54 +00:00
Drew Willcoxon
843fe01a85 Bug 1959330 - Formalize restoring of dismissed Suggest suggestions. r=daisuke,settings-reviewers
Please see the bug for the motivation.

This adds a new `SuggestFeature.primaryUserControlledPreference` getter that
returns the feature-specific pref that lets the user toggle on/off the feature.

That way we can add `QuickSuggest.clearDismissedSuggestions()`, which goes
through each feature and clears that pref, and `canClearDismissedSuggestions()`,
which goes through and checks whether there are any prefs that can be cleared.

I also added a couple of notification topics for dismissals that the settings UI
uses to update the disabled state of its Restore button.

All of this will let us more easily move to the Suggest Rust component's
dismissal API too, which we should sooner or later.

Depends on D244865

Differential Revision: https://phabricator.services.mozilla.com/D244866
2025-04-10 02:24:19 +00:00
Daisuke Akatsuka
45587eba3e Bug 1951946: Add ways to dismiss the opt-in result dependent on impressions r=adw
Differential Revision: https://phabricator.services.mozilla.com/D240629
2025-03-07 03:40:46 +00:00
Daisuke Akatsuka
95533899a1 Bug 1936455: Remove the Suggest online opt-in onboarding dialog r=firefox-desktop-core-reviewers ,urlbar-reviewers,adw
Differential Revision: https://phabricator.services.mozilla.com/D238893
2025-02-21 05:01:33 +00:00
Drew Willcoxon
e4af70914a Bug 1949627 - Remove leftover browser.urlbar.quicksuggest.hideSettingsUI pref. r=daisuke,urlbar-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D239066
2025-02-21 04:40:07 +00:00
Alexandru Marc
a822e8842c Backed out changeset 2c10082390b2 (bug 1936455) for causing xpcshell failures @ test_quicksuggest_migrate_v1.js CLOSED TREE 2025-02-21 03:51:58 +02:00
Daisuke Akatsuka
9c1c8fcf29 Bug 1936455: Remove the Suggest online opt-in onboarding dialog r=firefox-desktop-core-reviewers ,urlbar-reviewers,adw
Differential Revision: https://phabricator.services.mozilla.com/D238893
2025-02-21 01:05:42 +00:00
Drew Willcoxon
7e8ec5f0cd Bug 1947059 - Remove the concept of Suggest scenarios. r=daisuke
Depends on D237507

Differential Revision: https://phabricator.services.mozilla.com/D237508
2025-02-14 17:06:38 +00:00
Drew Willcoxon
6dab314205 Bug 1947057 - Move some async Suggest initialization so it only happens once. r=daisuke
Depends on D237506

Differential Revision: https://phabricator.services.mozilla.com/D237507
2025-02-14 17:06:37 +00:00
Drew Willcoxon
9dddb45dad Bug 1937250 - Move Suggest prefs initialization from UrlbarPrefs to QuickSuggest. r=daisuke,urlbar-reviewers
This mostly just moves all Suggest-related things from `UrlbarPrefs` to
`QuickSuggest`. To keep the patch small and make review easier, I tried to keep
it a straight move rather than making improvements, renames, and other
unnecessary changes. There's opportunity to improve and simplify some things,
and I'd like to do that in follow-ups.

Depends on D237281

Differential Revision: https://phabricator.services.mozilla.com/D237170
2025-02-11 02:58:53 +00:00
Daisuke Akatsuka
b4f6558ec6 Bug 1944420: Change the frequency of display after dismissal r=urlbar-reviewers,dao
Differential Revision: https://phabricator.services.mozilla.com/D236506
2025-02-10 01:36:39 +00:00
Daisuke Akatsuka
af04d78547 Bug 1944420: Show contextual opt-in message on top r=urlbar-reviewers,dao
Differential Revision: https://phabricator.services.mozilla.com/D236505
2025-02-10 01:36:39 +00:00
Daisuke Akatsuka
acd8013a9e Bug 1944420: Update contextual opt-in message and remove the variation r=urlbar-reviewers,fluent-reviewers,dao,bolsson
Differential Revision: https://phabricator.services.mozilla.com/D236504
2025-02-10 01:36:39 +00:00
Drew Willcoxon
3fb3b02e20 Bug 1945016 - Remove quickSuggestAllowPositionInSuggestions and support for suggestion.position. r=daisuke
Differential Revision: https://phabricator.services.mozilla.com/D236300
2025-02-04 01:16:48 +00:00
Marco Bonardo
c00a7f33e3 Bug 1943946 - Set deduplication days threshold to zero. r=mbeier
Differential Revision: https://phabricator.services.mozilla.com/D235609
2025-01-27 16:04:12 +00:00
James Teow
e18fba3011 Bug 1941467 - Allow Scotch Bonnet pref to toggle Persisted Search preference visibility - r=daleharvey,settings-reviewers,mossop
I also removed the Nimbus feature since there are no future plans to
run experiments solely on this feature.

Differential Revision: https://phabricator.services.mozilla.com/D234135
2025-01-16 16:54:14 +00:00
Marco Bonardo
20e3a689d9 Bug 1937136 - Let address bar trimHttps and untrim just be controlled by the ScotchBonnet override. r=jteow
Differential Revision: https://phabricator.services.mozilla.com/D233530
2025-01-13 15:26:23 +00:00
Marco Bonardo
6b17f6941a Bug 1937136 - Show the not-secure label in the address bar for http. r=jteow
Differential Revision: https://phabricator.services.mozilla.com/D233529
2025-01-13 15:26:22 +00:00
Dale Harvey
c527181f28 Bug 1939547 - Show an onboarding label to first time quickactions users. r=daisuke,desktop-theme-reviewers,urlbar-reviewers,dao,flod
Differential Revision: https://phabricator.services.mozilla.com/D233023
2025-01-12 23:24:52 +00:00
Drew Willcoxon
d798414004 Bug 1938517 - Implement new "simplest" weather suggestion UI. r=fluent-reviewers,desktop-theme-reviewers,urlbar-reviewers,emilio,bolsson,daisuke
This makes a number of changes to support a new UI treatment for weather
suggestions in addition to the two existing treatments. Unfortunately we need
all three to experiment with, but hopefully after experimentation is done we can
remove the two existing treatments.

This patch refers to the new treatment as the "simplest" UI. The Figma is at [1]
although it doesn't reflect some details Josh and I have discussed. One of the
existing treatments is already called "simple", and this patch changes its name
to "simpler". The patch refers to the other existing treatment as "full". These
names are only informal because the Nimbus variable and fallback pref are
integers.

Because the new UI treatment is so simple, we can pretty much use the standard
rich suggestion UI for it. The existing treatments are dynamic. I say "pretty
much" because I did need to add a capability to rich suggestions,
`result.richSuggestionIconVariation`, which lets results set an `icon-variation`
attribute on their rows. Weather suggestions use it to choose the appropriate
weather icon in the CSS.

I also modified l10n string caching in a few ways to address a couple of
problems:

* I like how dynamic results can cache their strings lazily by setting
  `cacheable` in their l10n objects. Standard results can only cache their
  strings by adding them to `UrlbarView.#cacheL10nStrings()`. That method is
  getting pretty big, and it also doesn't work well with strings that have
  arguments since it's called to pre-cache strings before they're used, when
  there are no arguments. So I extended `cacheable` support to all l10n objects,
  not only those from dynamic results.
* Josh's spec calls for the temperature in the suggestion title to be bolded.
  There's no good way to do that right now. We have highlights, but they aren't
  useable for l10n strings. The simplest thing -- and what I've done before in
  cases like this -- is to include `<strong>` tags in the l10n string itself.
  That works except for when we have a cache hit with the l10n cache. In that
  case, we set the `textContent`, which of course renders the tag literally. So
  I added a `parseMarkup` option to l10n objects that says the cached string
  should be set as `innerHTML` instead. Actually, for security I parse the
  string into a sanitized document fragment. We could just always do this and
  get rid of `parseMarkup`, but it seems wasteful since most l10n strings don't
  need it.
* While addressing the previous two points, it made sense to move
  `setElementL10n()` from the view to `L10nCache`. That way all these
  cache-related functions are together.

Finally, Josh noticed one of the dark-mode colors in the icon SVG didn't have
enough contrast with the standard dark-mode panel background, so I updated that
to a new color he chose (from `#80808F` to `#9393A8`).

[1] https://www.figma.com/design/Hdi0oHB7trRcncyVAKZypO/accuweather-explorations?node-id=3548-15992&t=f4YUShEe5RkP2KEg-1

Differential Revision: https://phabricator.services.mozilla.com/D232703
2024-12-27 18:11:23 +00:00
Dale Harvey
de3355f54c Bug 1938102 - Enable actions mode properly and reenable tests r=daisuke
Differential Revision: https://phabricator.services.mozilla.com/D232685
2024-12-26 20:19:20 +00:00
Daisuke Akatsuka
575c551ee4 Bug 1937363: Use Unified Search Button full name r=desktop-theme-reviewers,dao,daleharvey
Depends on D232160

Differential Revision: https://phabricator.services.mozilla.com/D232454
2024-12-24 04:02:26 +00:00
Drew Willcoxon
31a8192d0b Bug 1932502 - Remove the Suggest JS backend: Part 4: Remove other Nimbus variables and legacy telemetry. r=daisuke
This is part 4 of 4. There are some Nimbus variables that are now unused plus
one legacy histogram.

Depends on D231467

Differential Revision: https://phabricator.services.mozilla.com/D231468
2024-12-11 20:50:46 +00:00
Dale Harvey
5553b2965a Bug 1935195 - Add action to open tabgroup. r=dao,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D231157
2024-12-08 23:17:43 +00:00
Daisuke Akatsuka
8c442be904 Bug 1928132: Implement dynamic Unified Search Button mode r=desktop-theme-reviewers,daleharvey,dao,tabbrowser-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D228954
2024-12-05 07:13:31 +00:00
Norisz Fay
5caeaca8fe Backed out 2 changesets (bug 1928132) for causing failures on browser_mouseout_notification_panel.js and Bug 1934387, Bug 1934388, Bug 1934389 CLOSED TREE
Backed out changeset 2ea4986f9eb8 (bug 1928132)
Backed out changeset 4a72ad308d0c (bug 1928132)
2024-11-30 15:43:28 +02:00
Daisuke Akatsuka
38412e4cd1 Bug 1928132: Implement dynamic Unified Search Button mode r=desktop-theme-reviewers,daleharvey,dao,tabbrowser-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D228954
2024-11-29 21:24:53 +00:00
Goloman Adrian
2cd2737f6f Backed out 2 changesets (bug 1928132) for causing bc failures browser_popupNotification_2.js. CLOSED TREE
Backed out changeset 5882194e7456 (bug 1928132)
Backed out changeset 0d13b91f55e0 (bug 1928132)
2024-11-29 15:18:36 +02:00
Daisuke Akatsuka
c738c0eb32 Bug 1928132: Implement dynamic Unified Search Button mode r=desktop-theme-reviewers,daleharvey,dao,tabbrowser-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D228954
2024-11-29 11:18:02 +00:00
Chidam Gopal
97ae6b8b30 Bug 1932429 - Add intentThreshold to MLSuggest r=adw,urlbar-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D229656
2024-11-20 21:40:29 +00:00
Dale Harvey
54534a73d2 Bug 1930547 - Reenable contextual search in ScotchBonnet. r=daisuke,urlbar-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D229279
2024-11-18 20:33:08 +00:00
Drew Willcoxon
7843b32acc Bug 1931220 - Enable the simple UI for urlbar weather suggestions. r=daisuke
This has a minor unrelated change to `test_weather.js` that I meant to make in
D228775.

Depends on D228775

Differential Revision: https://phabricator.services.mozilla.com/D229050
2024-11-14 23:47:12 +00:00