Commit Graph

3312 Commits

Author SHA1 Message Date
Drew Willcoxon
eeabfdc62a Bug 1913507 - Add capability to show AMP suggestions as top picks based on keyword character counts. r=daisuke,fluent-reviewers,flod
Depends on D219369

Differential Revision: https://phabricator.services.mozilla.com/D219370
2024-08-20 05:57:40 +00:00
Drew Willcoxon
ccf7a3d409 Bug 1912565 - Show sponsored suggestions at the bottom of the Firefox Suggest section when search suggestions are disabled or the default engine doesn't support them. r=daisuke
Differential Revision: https://phabricator.services.mozilla.com/D219369
2024-08-20 01:12:50 +00:00
Norisz Fay
ea6558d555 Backed out changeset 440770be9e5e (bug 1870687) for causing bc failures on browser_searchModeSwitcher_basic.js CLOSED TREE 2024-08-19 22:04:53 +03:00
Moritz Beier
8ea05e5b29 Bug 1870687 - Investigate removing the _locale and _extensionID options from within AppProvidedSearchEngine. r=Standard8,urlbar-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D218684
2024-08-19 15:39:57 +00:00
mcheang
f9e8516afa Bug 1912045 - Autofill for intuitive search keywords. r=daleharvey,urlbar-reviewers,mak
**Description**
- Add autofill functionality to UrlbarProvider Restrict Keywords.

**Acceptance Criteria**
- There are 3 restrict keywords `@history`, `@bookmarks`, and `@tabs`
- When the user types @ followed by the beginning of the search keyword: `@h`, `@hi`, `@his`, `@hist` etc. the user should be able to autofill the rest of the search by pressing tab
- The autofill should highlight the typed letters from the user, and show the entire keyword following what the user typed. For example:
- If the user typed `@hist` , autofill should highlight what the user typed and show the rest of the keyword `@history`:

**Example steps to test `@history` :**
- set `browser.urlbar.searchRestrictKeywords.featureGate` to true
- type out the full keyword and space `@history` , address bar should show results panel with history results
- type `@h` and press right arrow, shows results panel with history results
- type `@h` and press enter, shows results panel with history results
- type `@h` and press tab, does not show panel but selects the history restrict result. When the user starts typing, it will search their history and show results panel with history results

Differential Revision: https://phabricator.services.mozilla.com/D218742
2024-08-18 17:51:37 +00:00
Ben Dean-Kawamura
3f160ecae8 Bug 1913183 - Vendor in app-services, r=nanj,supply-chain-reviewers,urlbar-reviewers,adw
Removed the `IsValid` check when converting a `RustBuffer` to an
`OwnedRustBuffer`.  The vendored changes revealed some issues with this
logic.  See https://bugzilla.mozilla.org/show_bug.cgi?id=1913183#c4 for
details.

Differential Revision: https://phabricator.services.mozilla.com/D219189
2024-08-16 16:18:07 +00:00
James Teow
e18a9d45a5 Bug 1909301 - Retain dedicated search mode when search terms don't change - r=adw,urlbar-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D218739
2024-08-15 11:12:11 +00:00
James Teow
7d00adfd22 Bug 1901871 - Part 2: Add tests for Persisted Search Terms with the Unified Search Button - r=adw,urlbar-reviewers
I also added tags to make it easier to run Persisted Search Terms specific
search terms tests locally.

Differential Revision: https://phabricator.services.mozilla.com/D217141
2024-08-15 11:12:11 +00:00
James Teow
f903e4c61a Bug 1901871 - Part 1: Integrate Persisted Search Terms with the Unified Search Button - r=daleharvey,adw,fluent-reviewers,desktop-theme-reviewers,urlbar-reviewers,dao
The design: https://www.figma.com/design/4co0kOw3eJMQK3HRpTuD1b/Unified-search-button?node-id=54-39399&t=mkuI12rU1RQ3Cdke-0

Differential Revision: https://phabricator.services.mozilla.com/D215993
2024-08-15 11:12:10 +00:00
Karandeep
d1dbab6e8d Bug 1912040 - Remove all instances of onLegacyEngagement(). r=adw,urlbar-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D219068
2024-08-14 12:38:26 +00:00
Karandeep
b5a231dc5d Bug 1906054 - SearchModeSwitcher icon is not being updated when default search engine changes. r=daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D218665
2024-08-13 12:14:37 +00:00
Iulian Moraru
4371796885 Backed out changeset c052f2639595 (bug 1086524) for causing multiple browser failures related to urlbar. CLOSED TREE 2024-08-13 12:44:56 +03:00
Collin Richards
ba7657463c Bug 1086524 - Focus window on Esc in address bar r=dao,urlbar-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D218893
2024-08-13 08:36:51 +00:00
James Teow
8b35e7a1b9 Bug 1911777 - Hide additional search chicklet when Unified Search Button is disabled - r=daleharvey,desktop-theme-reviewers,urlbar-reviewers,dao
Differential Revision: https://phabricator.services.mozilla.com/D218707
2024-08-07 14:35:30 +00:00
Drew Willcoxon
e3ede1790b Bug 1910209 - Improve the Fakespot suggestions engagement telemetry test and use https URLs in more Suggest tests. r=daisuke
The main thing this does is add a task to the Fakespot engagement telemetry test
that triggers both a Fakespot and history result and then clicks the history
result. I want to make sure the Fakespot engagement event isn't incorrectly
recorded. (I thought it might be but it's not.)

This also has a bunch of changes from http to https. Lint made me change the
URLs in the Fakespot test to https, which was a problem for the AMP result since
`QuickSuggestTestUtils.ampRemoteSettings()` uses http URLs. So I went ahead and
updated that function plus the other ones and all the places that are affected.

Depends on D217780

Differential Revision: https://phabricator.services.mozilla.com/D217887
2024-08-06 03:27:15 +00:00
Drew Willcoxon
067c9bc5b1 Bug 1911683 - Remove shouldNavigate for dynamic result types and make UrlbarUtils.getUrlFromResult() fall back to payload.url for all results. r=daisuke
Please see the bug for info.

Differential Revision: https://phabricator.services.mozilla.com/D218607
2024-08-06 01:41:04 +00:00
Drew Willcoxon
631061e66c Bug 1897244 - Convert the QuickSuggest provider onLegacyEngagement to use the new notifications. r=daisuke
Differential Revision: https://phabricator.services.mozilla.com/D218439
2024-08-05 17:08:40 +00:00
Dale Harvey
f9ca64ed89 Bug 1902052 - Ensure SearchModeSwitcher can be accessed via keyboard r=urlbar-reviewers,fluent-reviewers,daisuke
Differential Revision: https://phabricator.services.mozilla.com/D216113
2024-08-05 16:49:34 +00:00
Moritz Beier
732359d637 Bug 1881739 - Create a SearchTestUtils function to simplify creating configurations for tests. r=Standard8,mcheang,urlbar-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D216807
2024-08-01 01:29:19 +00:00
Tamas Szentpeteri
2c402c8230 Backed out changeset 34cf7e724994 (bug 1906054) mochitest failures on browser_searchMode_preview.js. CLOSED TREE 2024-07-31 15:35:59 +03:00
Karandeep
adcff1992c Bug 1906054 - SearchModeSwitcher icon is not updated when default search engine changes. r=daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D217624
2024-07-31 11:24:05 +00:00
Masayuki Nakano
528d09c312 Bug 1904279 - Get rid of dom.w3c_pointer_events.dispatch_click_as_pointer_event pref r=smaug,pip-reviewers,search-reviewers,devtools-reviewers,urlbar-reviewers,nchevobbe,dao,jteow,mconley
Keep supporting the pref makes a lot of `click`, `auxclick` and `contextmenu`
event creators complicated (and look messy).  So, let's delete it as soon as
possible.

Differential Revision: https://phabricator.services.mozilla.com/D217225
2024-07-30 06:49:42 +00:00
Drew Willcoxon
1964e97038 Bug 1910023 - Fix and re-enable Suggest legacy telemetry tests. r=daisuke
Differential Revision: https://phabricator.services.mozilla.com/D217780
2024-07-26 12:31:46 +00:00
Dale Harvey
4f2b312c87 Bug 1907146 - Ensure SearchModeSwitcher detects searchmode changes. r=urlbar-reviewers,mak
Differential Revision: https://phabricator.services.mozilla.com/D216232
2024-07-25 19:26:53 +00:00
Marco Bonardo
afba2eac66 Bug 1909676 - Switching to a tab whose urlbar was cleared restores the URL but doesn't select it. r=jteow,urlbar-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D217595
2024-07-25 08:28:27 +00:00
Drew Willcoxon
b93325ad71 Bug 1909565 - Move Fakespot suggestions to the bottom of the Firefox Suggest section, r=daisuke
This also adds a Nimbus variable so we can easily change the index for
experiments.

Depends on D217510

Differential Revision: https://phabricator.services.mozilla.com/D217524
2024-07-24 00:18:11 +00:00
Drew Willcoxon
b665eba613 Bug 1909563 - Set the default Fakespot min keyword length threshold to 4. r=daisuke
Differential Revision: https://phabricator.services.mozilla.com/D217510
2024-07-24 00:18:10 +00:00
Moritz Beier
650113020b Bug 1863530 - Remove browser.search.widget.inNavBar pref. r=dao,settings-reviewers,search-reviewers,omc-reviewers,urlbar-reviewers,Gijs,aminomancer
Differential Revision: https://phabricator.services.mozilla.com/D215607
2024-07-23 17:29:00 +00:00
Karandeep
b207f35b42 Bug 1903633 - Integrate the UrlbarSearchTermsPersistence component with remote setting. r=jteow,firefox-desktop-core-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D215777
2024-07-23 12:14:44 +00:00
Drew Willcoxon
1d7037f657 Bug 1879226 - Fix intermittent test_rust_ingest.js failure. r=daisuke
This seems to fix it:

https://treeherder.mozilla.org/jobs?repo=try&revision=341d6e5a3b189360e77dc0b32e3347383fa2c7dd

The one test failure is a different test, and I fixed the lint error.

Differential Revision: https://phabricator.services.mozilla.com/D217184
2024-07-22 01:06:44 +00:00
mcheang
934e5f7581 Bug 1902537 - Create UrlbarProviderRestrictKeywords to show localized bookmarks, history, and tabs restrict keywords results. r=mak,settings-reviewers,urlbar-reviewers
This patch includes:
- A new UrlbarProviderRestrictKeywords class
- Showing localized Search with Bookmarks, Search with History, Search with Tabs results after the user types @
- Add search restrict keywords to preferences UI Search Shortcuts table
- Hiding search restrict keyword behind browser.urlbar.searchRestrictKeywords.featureGate pref

Differential Revision: https://phabricator.services.mozilla.com/D213697
2024-07-19 23:45:58 +00:00
Dale Harvey
0c3d03e94d Bug 1905510 - Ensure SearchModeSwitcher popup opens in correct window. r=urlbar-reviewers,mak
Differential Revision: https://phabricator.services.mozilla.com/D215311
2024-07-19 21:43:39 +00:00
Karandeep
b45f0d53f2 Bug 1897245 - Convert the Weather provider onLegacyEngagement to use the new notifications. r=adw,urlbar-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D216687
2024-07-19 19:41:51 +00:00
Marco Bonardo
164db06ff2 Bug 1903266 - Copied URL from loading new tab does not include scheme. r=jteow,urlbar-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D216917
2024-07-19 12:29:09 +00:00
Drew Willcoxon
a6578c7679 Bug 1907990 - Implement urlbar.fakespot_engagement event. r=daisuke
This implements the [spec here](https://docs.google.com/document/d/12QWXvi8cIAo9AaGgwzP5a7Mcs9CsffWQ_XlAi6WqjX8/edit?usp=sharing) as I discussed with Teon. I chose slightly
different names for the extra keys to be consistent with the RS data and urlbar
implementation.

Differential Revision: https://phabricator.services.mozilla.com/D217046
2024-07-19 02:48:54 +00:00
Drew Willcoxon
96d5364f6b Bug 1908750 - Force dynamic urlbar providers to specify highlighted text in their view updates. r=daisuke,urlbar-reviewers
There are a few ways to solve this problem and I tried to take a straightforward
approach. This patch makes text highlighting less automagical and surprising. It
forces dynamic-result providers to specify highlighted text content as part of
their view updates just like all other non-highlighted text and other
properties. To trigger highlighting, the view update can include a new
`highlights` property.

Except for Fakespot, there currently aren't any providers that take advantage of
the existing automagical highlighting behavior.

Depends on D216370

Differential Revision: https://phabricator.services.mozilla.com/D217020
2024-07-19 00:18:16 +00:00
Daisuke Akatsuka
d445e80774 Bug 1907468: Use icon provided from Rust for each Fakespot suggestion r=adw
Depends on D216493

Differential Revision: https://phabricator.services.mozilla.com/D216370
2024-07-18 20:31:22 +00:00
DJ
519ee01824 Bug 1876558 - deactivate tab preview when urlbar receives input. r=tabbrowser-reviewers,dao,urlbar-reviewers,mak
Differential Revision: https://phabricator.services.mozilla.com/D214870
2024-07-17 20:37:36 +00:00
Mark Banner
58104578ca Bug 1907588 - In tests, only startup the Addon Manager when necessary, now that the search service doesn't require it all the time. r=search-reviewers,home-newtab-reviewers,jteow
We no longer need to start the add-on manager before the search service starts, so init it only when it is needed for installing add-ons.

Differential Revision: https://phabricator.services.mozilla.com/D216406
2024-07-17 11:20:20 +00:00
Marco Bonardo
c5372e4d26 Bug 1902237 - Enable untrimOnUserInteraction and trimHttps with ScotchBonnet. r=daleharvey
This leaves out `security.insecure_connection_text.enabled` and
`security.insecure_connection_text.pbmode.enabled`, that should also be part of
ScotchBonnet, but are managed by a different component.

Differential Revision: https://phabricator.services.mozilla.com/D216181
2024-07-17 09:34:48 +00:00
Marco Bonardo
c4bdac3b58 Bug 1906110 - Address bar content shifts when focusing on mousedown. r=jteow,desktop-theme-reviewers,urlbar-reviewers,dao
Shifting the input field position on mousedown can easily cause unwanted text
selection. We can avoid that by delaying pageproxystate change to mouseup, and
using an attribute to postpone other display changes.

Differential Revision: https://phabricator.services.mozilla.com/D215930
2024-07-17 09:31:36 +00:00
Drew Willcoxon
67a3eeb74e Bug 1907434 - Update desktop's Fakespot suggestion integration with the Rust component. r=daisuke
Depends on D216488

Differential Revision: https://phabricator.services.mozilla.com/D216493
2024-07-17 01:25:44 +00:00
Drew Willcoxon
5b6f606320 Bug 1907696 - Change the Suggest ingest strategy so only enabled suggestion types are ingested. r=daisuke
Please see the bug for context. This changes how ingest works. Right now we
ingest all "default" suggestion types at once. This patch causes a suggestion
type to be ingested only when it's enabled.

Before this patch, there are two times ingest happens, on startup and when the
ingest timer fires.

With this patch, there are now a few times ingest happens:

* On startup (as before). `SuggestBackendRust` will ingest all registered and
  enabled suggestion types.
* When the ingest timer fires (as before). Similar to startup, all registered
  and enabled types will be ingested.
* When a suggestion type becomes enabled. I added this functionality to
  `BaseFeature.update()` so that each feature gets this behavior automatically.

It's worth saying more about the startup case. On startup, all `BaseFeature`s'
initializations race each other. `SuggestBackendRust` is itself a `BaseFeature`,
so there's no guarantee it will be initialized before other `BaseFeature`s that
implement Rust suggestions. If any `BaseFeature`s are initialized before
`SuggestBackendRust`, they'll try to ingest but nothing will happen because
`SuggestBackendRust` won't be initialized yet. Once `SuggestBackendRust` is
initialized, it will ingest suggestions for all registered `BaseFeature`s that
already tried and failed to ingest. And after `SuggestBackendRust` initializes,
any `BaseFeature`s that are initialized later will be able to successfully
ingest.

Differential Revision: https://phabricator.services.mozilla.com/D216488
2024-07-17 01:25:44 +00:00
Daisuke Akatsuka
178597f16b Bug 1907878: Put Pocket suggestions at bottom as default r=adw
Differential Revision: https://phabricator.services.mozilla.com/D216627
2024-07-16 03:32:14 +00:00
Ben Dean-Kawamura
3c9e7d3c64 Bug 1907973 - Load FTS5 extension for Suggest, r=nanj,urlbar-reviewers,adw
We need to do this now that we're creating FTS tables. I believe this
should fix the vendoring issues.  The following tests were failing
before and now are succeeding on my machine:

./mach test browser/components/urlbar/tests/quicksuggest/unit
./mach test browser/components/search/test/browser/telemetry/browser_search_telemetry_sources.js

Differential Revision: https://phabricator.services.mozilla.com/D216598
2024-07-15 20:48:11 +00:00
Moritz Beier
12220c0dde Bug 1906875 - Remove the old search engine selector from the search service. r=Standard8,extension-reviewers,urlbar-reviewers,settings-reviewers,robwu
Differential Revision: https://phabricator.services.mozilla.com/D216047
2024-07-15 11:15:22 +00:00
Stanca Serban
832439e884 Backed out changeset eec38ebb419b (bug 1876558) for causing mochitests failures in browser_tab_preview.js. CLOSED TREE 2024-07-12 21:57:33 +03:00
DJ
8325a8a7aa Bug 1876558 - deactivate tab preview when urlbar receives input. r=tabbrowser-reviewers,dao,urlbar-reviewers,mak
Differential Revision: https://phabricator.services.mozilla.com/D214870
2024-07-12 17:01:23 +00:00
Kelly Cochrane
b40657ff11 Bug 1897976 - Update existing tests involving sidebar-button in the nav bar for when sidebar.revamp pref is flipped on r=places-reviewers,sidebar-reviewers,urlbar-reviewers,mak,sfoster,Gijs,sclements
Differential Revision: https://phabricator.services.mozilla.com/D215253
2024-07-12 15:58:29 +00:00
Karandeep
a034355953 Bug 1905892 - Add urlbar-persisted-search-terms dump and create tests. r=jteow
Differential Revision: https://phabricator.services.mozilla.com/D215508
2024-07-12 11:50:30 +00:00