Commit Graph

3896 Commits

Author SHA1 Message Date
Mark Banner
0186d5865e Bug 1967446 - Convert uniffi generated Rust modules to use moz-src. r=bdk
Differential Revision: https://phabricator.services.mozilla.com/D250243
2025-05-20 19:00:32 +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
iulian moraru
658d19a425 Revert "Bug 1956519 - Shared RemoteSettingsService, r=nanj,adw" for causing browser-chrome crashes.
This reverts commit 0b37f9e94c.
2025-05-19 18:39:21 +00:00
Ben Dean-Kawamura
0b37f9e94c Bug 1956519 - Shared RemoteSettingsService, r=nanj,adw
- Hooked the RustSharedRemoteSettingsService code to the Region module.
  The new system updates the app context as the home region changes.

- Updated `RemoteSettingsService.updateConfig` to be sync rather than
  async wrapped.  It should execute quickly and I want to have
  confidence that the config is actually updated when that function
  returns.

- Updated/Simplified the SuggestBackendRust.sys.mjs testing code.  Now
  we just need to track if we should disable the Rust backend for the
  tests or not.

- Updated `QuickSuggest._test_reinit` to wait for any unfinished
  ingestion from `SuggestBackendRust`.  This is needed now because
  changing the remote settings service affects all active clients.  If
  there are unfinished ingestion tasks, then this creates a race
  between those task finishing and the test finishing and uninitializing
  the remote settings mock server.

Differential Revision: https://phabricator.services.mozilla.com/D248467
2025-05-19 15:58:57 +00:00
dadaa
9e7131f6df Bug 1965396: Add prefix indicating the service to the title r=adw,fluent-reviewers,bolsson
Differential Revision: https://phabricator.services.mozilla.com/D248571
2025-05-19 04:26:37 +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
Mark Banner
8a3c99b9cb Bug 1966662 - Migrate most of toolkit/components/search to moz-src uris. r=search-reviewers,scunnane
Differential Revision: https://phabricator.services.mozilla.com/D249563
2025-05-17 17:38:49 +00:00
Mike Conley
305b2a61d1 Bug 1952316 - Have Search / URL bar code use the ContextID module for accessing the current context_id. r=adw,search-reviewers,urlbar-reviewers,scunnane
The browser_quicksuggest_ping_deletionRequest.js test now runs two separate set of tasks,
depending on whether or not context ID rotation is enabled.

The rotation set of tasks can be tested by calling ./mach test with `--setpref browser.contextual-services.contextId.rust-component.enabled=true --setpref browser.contextual-services.contextId.rotation-in-days=1`

Differential Revision: https://phabricator.services.mozilla.com/D248975
2025-05-16 23:13:04 +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
Dão Gottwald
c87e737513 Bug 1963884 - Limit the width of tab group action results. r=daleharvey
I think this is the last missing piece we need here once the dependent bugs are fixed.

Differential Revision: https://phabricator.services.mozilla.com/D249260
2025-05-16 12:15:50 +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
335eb13e70 Revert "Bug 1965396: Add prefix indicating the service to the title r=adw,fluent-reviewers,bolsson" for causing xpc failures @test_quicksuggest_yelp.js.
This reverts commit 9dfb2bdc64.
2025-05-16 04:48:49 +00:00
dadaa
9dfb2bdc64 Bug 1965396: Add prefix indicating the service to the title r=adw,fluent-reviewers,bolsson
Differential Revision: https://phabricator.services.mozilla.com/D248571
2025-05-16 04:05:14 +00:00
dadaa
8565135320 Bug 1966784: Vendor application-services fa8a72a r=adw
Differential Revision: https://phabricator.services.mozilla.com/D249694
2025-05-16 03:16:49 +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
agoloman
d66860ebe0 Revert (Bug 1956519, Bug 1965086) - for causing bc failures @browser_quicksuggest_dynamicSuggestions.js.
This reverts commit 49a5a6c0bf.

Revert "Bug 1965086 - Vendor app-services 72a070750ff979f4aac29da7c02a9cb6e53ac087, r=nanj"

This reverts commit 7b45ba29ff.
2025-05-15 18:42:38 +00:00
Dão Gottwald
df2872c885 Bug 1966337 - Don't offer the active tab group in address bar results. r=dwalker,daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D249236
2025-05-15 17:02:19 +00:00
Ben Dean-Kawamura
49a5a6c0bf Bug 1956519 - Shared RemoteSettingsService, r=nanj,adw
- Hooked the RustSharedRemoteSettingsService code to the Region module.
  The new system updates the app context as the home region changes.

- Updated `RemoteSettingsService.updateConfig` to be sync rather than
  async wrapped.  It should execute quickly and I want to have
  confidence that the config is actually updated when that function
  returns.

- Updated/Simplified the SuggestBackendRust.sys.mjs testing code.  Now
  we just need to track if we should disable the Rust backend for the
  tests or not.

- Updated `QuickSuggest._test_reinit` to wait for any unfinished
  ingestion from `SuggestBackendRust`.  This is needed now because
  changing the remote settings service affects all active clients.  If
  there are unfinished ingestion tasks, then this creates a race
  between those task finishing and the test finishing and uninitializing
  the remote settings mock server.

Differential Revision: https://phabricator.services.mozilla.com/D248467
2025-05-15 17:01:14 +00:00
Mark Banner
46ce829d46 Bug 1964677 - Make UrlbarProvider.isActive consistently async for inheritance consistency. r=urlbar-reviewers,jteow
Differential Revision: https://phabricator.services.mozilla.com/D247923
2025-05-15 10:40:33 +00:00
Chidam Gopal
5b9b110d52 Bug 1964543 - semantic history search inference on hold until DB is ready r=mak
Differential Revision: https://phabricator.services.mozilla.com/D247855
2025-05-14 18:31:43 +00:00
Dão Gottwald
61c2a7bdfc Bug 1966140 - Sort tab groups in recently-used order in address bar results. r=sthompson,daleharvey,tabbrowser-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D249088
2025-05-14 04:13:54 +00:00
Mark Banner
8af835c23e Bug 1964675 - Add initial TypeScript configuration for urlbar code. r=urlbar-reviewers,jteow
Differential Revision: https://phabricator.services.mozilla.com/D247922
2025-05-14 01:25:15 +00:00
Mark Banner
0362463c59 Bug 1964675 - Fix various jsdoc type definitions across urlbar code. r=urlbar-reviewers,jteow
Differential Revision: https://phabricator.services.mozilla.com/D247921
2025-05-14 01:25:11 +00:00
Mark Banner
0bfb4c4f3d Bug 1964675 - Fix minor errors raised by TypeScript in UrlbarUtils.sys.mjs and UrlbarResults.sys.mjs. r=urlbar-reviewers,jteow
Differential Revision: https://phabricator.services.mozilla.com/D247920
2025-05-14 01:25:07 +00:00
Mark Banner
ca077179a1 Bug 1964675 - Rework some parts of UrlbarUtils.sys.mjs for better type handling. r=urlbar-reviewers,jteow
Differential Revision: https://phabricator.services.mozilla.com/D247919
2025-05-14 01:25:04 +00:00
Mark Banner
5019c33ec3 Bug 1964675 - Document missing properties for UrlbarQueryContext. r=urlbar-reviewers,jteow
Differential Revision: https://phabricator.services.mozilla.com/D247918
2025-05-14 01:25:00 +00:00
Stephen Thompson
5b3f57be44 Bug 1954005 - URL bar search should not show saved tab groups in private windows r=dao,dwalker,urlbar-reviewers,tabbrowser-reviewers
In bug 1933744 we prevented SessionStore from reopening a saved tab group into a private window. In bug 1946761 we prevented users from saving tab groups from a private window. The general design principle has been to prevent tab group information leaking between private and non-private windows.

ActionsProviderTabGroups already respected privacy through the implementation of `Tabbrowser.getAllTabGroups`, but `SessionStore.getSavedTabGroups` doesn't respect privacy. Perhaps it should. But in any case, this patch ensures that search results in private windows don't include saved tab groups.

Differential Revision: https://phabricator.services.mozilla.com/D248351
2025-05-12 15:19:01 +00:00
Beth Rennie
6f53714516 Bug 1950237 - Use ExperimentAPI.manager in browser/components/urlbar r=urlbar-reviewers,Standard8
As part of this bug, the global ExperimentManager will no longer be
exported from ExperimentManager.sys.mjs and will only be available as a
property on the ExperimentAPI.

Differential Revision: https://phabricator.services.mozilla.com/D248317
2025-05-11 19:37:18 +00:00
Marco Bonardo
1c8fec62ec Bug 1964975 - Handle corruption and versioning of the semantic history database. r=cgopal
Differential Revision: https://phabricator.services.mozilla.com/D248242
2025-05-09 20:34:30 +00:00
Stephen Thompson
fdf96a1cd2 Bug 1965130 - set JSDoc types and providerName for ActionsResult r=urlbar-reviewers,Standard8
Defines and/or updates JSDoc types on all ActionsResult properties.

The pre-existing property `ActionsResult.providerName` never gets set. `Query.add` sets a `providerName` on UrlbarResult objects, so to follow that pattern, I made `ProviderGlobalActions.startQuery` responsible for setting `providerName` on already constructed `ActionsResult` instances. Having the provider name available for actions results will make it easier for tests to find relevant actions results within search results.

Differential Revision: https://phabricator.services.mozilla.com/D248373
2025-05-09 16:28:37 +00:00
Mark Banner
1329b3e164 Bug 1964675 - Add some missing type properity definitions for UrlbarResult. r=urlbar-reviewers,jteow
Differential Revision: https://phabricator.services.mozilla.com/D247917
2025-05-09 10:21:18 +00:00
Mark Banner
e6228fc2a7 Bug 1964675 - Fix some jsdoc types in UrlbarUtils.sys.mjs. r=urlbar-reviewers,jteow
Differential Revision: https://phabricator.services.mozilla.com/D247915
2025-05-09 10:21:14 +00:00
Mark Banner
464a4aeb18 Bug 1964675 - Add TypeScript configuration for urlbar code. r=urlbar-reviewers,jteow
Differential Revision: https://phabricator.services.mozilla.com/D247914
2025-05-09 10:21:10 +00:00
Mark Banner
fc923fbefa Bug 1964675 - Fixup optional arguments annotations in UrlbarUtils.sys.mjs. r=urlbar-reviewers,jteow
Differential Revision: https://phabricator.services.mozilla.com/D247913
2025-05-09 10:21:07 +00:00
Mark Banner
f038fc28fc Bug 1964675 - Change UrlbarUtils code to use 'this' references rather than component name references for better type detection. r=urlbar-reviewers,dao
Differential Revision: https://phabricator.services.mozilla.com/D247912
2025-05-09 10:21:03 +00:00
Moritz Beier
c6d61e91c2 Bug 1963285 - Add advanced section to add engine dialog. r=Standard8,fluent-reviewers,urlbar-reviewers,bolsson
Differential Revision: https://phabricator.services.mozilla.com/D247097
2025-05-08 10:24:24 +00:00
Daisuke Akatsuka
c4be79e31b Bug 1963600: Implement VPN Suggestions r=desktop-theme-reviewers,adw,dao
Differential Revision: https://phabricator.services.mozilla.com/D247284
2025-05-08 05:53:31 +00:00
Moritz Beier
167482d903 Bug 1759879 - Add error messages to add engine dialog. r=search-reviewers,fluent-reviewers,settings-reviewers,desktop-theme-reviewers,urlbar-reviewers,bolsson,mossop,Standard8,dao
Differential Revision: https://phabricator.services.mozilla.com/D245411
2025-05-07 12:44:52 +00:00
Sandor Molnar
d2cb50db61 Revert "Bug 1963600: Implement VPN Suggestions r=desktop-theme-reviewers,adw,dao" for causing bc failures @ browser_quicksuggest_dynamicSuggestions.js
This reverts commit 871a97c7aa.
2025-05-07 12:18:57 +00:00
Alexandru Marc
e945f6815c Revert "Bug 1963285 - Add advanced section to add engine dialog. r=Standard8,fluent-reviewers,urlbar-reviewers,bolsson" for causing failures @ browser_search_userEngineDialog.js
This reverts commit 5274267c99.

This reverts commit 19dcb50ab9.
2025-05-07 11:41:18 +00:00
Dão Gottwald
f8af61110c Bug 1963889 - Surface matching tab groups in the Tab Search results (% ). r=daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D247896
2025-05-07 11:05:48 +00:00
Moritz Beier
5274267c99 Bug 1963285 - Add advanced section to add engine dialog. r=Standard8,fluent-reviewers,urlbar-reviewers,bolsson
Differential Revision: https://phabricator.services.mozilla.com/D247097
2025-05-07 10:42:19 +00:00
Moritz Beier
19dcb50ab9 Bug 1759879 - Add error messages to add engine dialog. r=search-reviewers,fluent-reviewers,settings-reviewers,desktop-theme-reviewers,urlbar-reviewers,bolsson,mossop,Standard8,dao
Differential Revision: https://phabricator.services.mozilla.com/D245411
2025-05-07 10:42:16 +00:00
Daisuke Akatsuka
871a97c7aa Bug 1963600: Implement VPN Suggestions r=desktop-theme-reviewers,adw,dao
Differential Revision: https://phabricator.services.mozilla.com/D247284
2025-05-07 08:58:40 +00:00
Cristina Horotan
990964a0f0 Revert "Bug 1963600: Implement VPN Suggestions r=desktop-theme-reviewers,adw,dao" for causing bc failures at browser_quicksuggest_dynamicSuggestions.js
This reverts commit c30fd88fe5.
2025-05-07 04:06:59 +00:00
Daisuke Akatsuka
c30fd88fe5 Bug 1963600: Implement VPN Suggestions r=desktop-theme-reviewers,adw,dao
Differential Revision: https://phabricator.services.mozilla.com/D247284
2025-05-07 03:17:03 +00:00
Daisuke Akatsuka
5f6608b27e Bug 1960900: Not use isUnifiedSearchButtonAvailable upon reverting urlbar r=daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D245850
2025-05-07 02:47:26 +00:00