Commit Graph

3341 Commits

Author SHA1 Message Date
Daisuke Akatsuka
36e28078b6 Bug 1914604: Update result by default engine if exiting the search mode r=daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D221098
2024-09-09 13:54:10 +00:00
Daisuke Akatsuka
51c5b9ed62 Bug 1913204: Apply container color border to secondary action button for tab switch r=desktop-theme-reviewers,urlbar-reviewers,daleharvey,dao
Differential Revision: https://phabricator.services.mozilla.com/D221114
2024-09-09 11:53:09 +00:00
Francesco Lodolo (:flod)
426d95862d Bug 1917163 - Update rstcheck to 6.2.4, fix resulting errors in documents, r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D221287
2024-09-06 15:04:10 +00:00
Cristina Horotan
fcdbf602e5 Backed out changeset 4e2df2c48e4b (bug 1917163) for causing mozlint failure. CLOSED TREE 2024-09-06 16:57:11 +03:00
Francesco Lodolo (:flod)
d62c1a8e25 Bug 1917163 - Update rstcheck to 6.2.4, fix resulting errors in documents, r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D221287
2024-09-06 12:17:06 +00:00
Joel Maher
3c323306ab Bug 1917158 - move some skip-if -> run-if for browser/components/**/browser.toml. r=sessionstore-reviewers,tabbrowser-reviewers,urlbar-reviewers,dao
Differential Revision: https://phabricator.services.mozilla.com/D221286
2024-09-06 10:08:18 +00:00
Drew Willcoxon
247ce81e9b Bug 1915317 - Integrate Rust exposure suggestions with desktop. r=daisuke
This integrates Rust exposure suggestions with desktop. Exposure suggestions are
a part of the replacement for the existing potential exposures feature
(bug 1881875). When we want to test potential exposures in the future, we can
add new exposure suggestions to remote settings and tell the Rust component to
ingest them and return them in queries. When the Rust component returns an
exposure suggestion, desktop will record it in exposure telemetry. (The other
part of the replacement is keyword exposure telemetry in bug 1915507 D220501).

More details about the design of exposure suggestions here:

* Bug 1893086
* https://github.com/mozilla/application-services/pull/6343

The way desktop tells the Rust component about different types of exposure
suggestions is through the new "provider constraints" feature. `ingest()` and
`query()` can take a `SuggestionProviderConstraints` object that changes what's
ingested and queried. Therefore, we need to re-ingest exposure suggestions when
the provider constraints change. Right now, exposure suggestions are the only
kind of suggestions that use provider constraints.

Depends on D220359

Differential Revision: https://phabricator.services.mozilla.com/D220359
2024-09-06 04:30:20 +00:00
Drew Willcoxon
f3302e8ef0 Bug 1914545 - Make UrlbarProviderQuickSuggest add all its suggestions instead of only the first. r=mak
Please see the bug for details.

This makes some changes to search strings and URLs in the tests that might look
unnecessary. They're due to switching to the QuickSuggestTestUtils helpers in
the head files instead of hardcoding the suggestions data. It's possible to
force the helpers to use the existing search strings and URLs that are used in
these tests, but it's good to be consistent with other tests that use these
helpers because it makes everything easier to understand.

Depends on D220352

Differential Revision: https://phabricator.services.mozilla.com/D219943
2024-09-06 04:30:20 +00:00
Norisz Fay
df377f83f3 Backed out changeset 76f7599ecbfa (bug 1914545) as requested by developer for causing Bug 1916458 CLOSED TREE 2024-09-03 23:23:42 +03:00
Dale Harvey
b0ce3c14e9 Bug 1893071 - Enter searchMode when using contextual search. r=Standard8,urlbar-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D220071
2024-09-03 15:11:11 +00:00
Mark Banner
6f297d4ef8 Bug 1915550 - Fix document errors in urlbar dynamic-result-types. r=urlbar-reviewers,jteow
The error was:
ERROR: Unknown target name: "appendix b: using the webextensions api directly".

This is out of date documentation as we no longer support webextensions for dynamic result types.

Differential Revision: https://phabricator.services.mozilla.com/D220532
2024-09-02 14:38:07 +00:00
Karandeep
c81bb956f2 Bug 1838604 - Replace TestProvider with UrlbarTestUtils.TestProvider. r=mak,urlbar-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D220561
2024-08-30 14:28:38 +00:00
Drew Willcoxon
887c7ed38f Bug 1915291 - Keep track of stale Suggest suggestion types and ingest only stale types when their feature is updated. r=daisuke
This keeps track of the enabled suggestion types that have been ingested while
the app is running. I call those types "fresh". In the code, they're stored in
the `#ingestedSuggestionTypes` set. Types that have not been ingested and types
that are disabled are called "stale". When a feature is updated, we update the
staleness bookkeeping in `#ingestedSuggestionTypes` and ingest only enabled
stale types.

This is similar to how each feature has an `#isEnabled` property. It's our
cached value of the last-known state that we can compare to the current state.

Depends on D219943

Differential Revision: https://phabricator.services.mozilla.com/D220352
2024-08-29 03:59:14 +00:00
Drew Willcoxon
bc60fd377d Bug 1914545 - Make UrlbarProviderQuickSuggest add all its suggestions instead of only the first. r=mak
Please see the bug for details.

This makes some changes to search strings and URLs in the tests that might look
unnecessary. They're due to switching to the QuickSuggestTestUtils helpers in
the head files instead of hardcoding the suggestions data. It's possible to
force the helpers to use the existing search strings and URLs that are used in
these tests, but it's good to be consistent with other tests that use these
helpers because it makes everything easier to understand.

Depends on D219942

Differential Revision: https://phabricator.services.mozilla.com/D219943
2024-08-27 20:12:55 +00:00
Drew Willcoxon
26cdd4f115 Bug 1914542 - Replace UrlbarResult.exposureResultType and exposureResultHidden with a single simple value. r=mak
This replaces `UrlbarResult.exposureResultType` and `exposureResultHidden` with
a single simple value called `exposureTelemetry`. Please see the bug for the
rationale.

Other changes:

* For convenience, make `UrlbarPrefs.get("exposureResults")` return a `Set` so
  consumers don't have to parse the string value.
* Simplify handling of result properties in `check_results()` (xpcshell tests)
* Add more tasks/checks to test_exposure.js

Depends on D219939

Differential Revision: https://phabricator.services.mozilla.com/D219942
2024-08-27 20:12:55 +00:00
Drew Willcoxon
7484290451 Bug 1914536 - Move some Suggest xpcshell test helpers from head.js to QuickSuggestTestUtils. r=mak
As part of bug 1914535, I'd like to move some Suggest xpcshell test helpers from
head.js to QuickSuggestTestUtils so that other tests outside the quicksuggest
directory can use them and also so that Suggest helpers are more centralized.

This doesn't make any functional changes.

Differential Revision: https://phabricator.services.mozilla.com/D219939
2024-08-27 20:12:54 +00:00
Jason Prickett
6d13ee8ae8 Bug 1912351 - Create onSearch trigger and targeting r=mviar,omc-reviewers,urlbar-reviewers,dao
Differential Revision: https://phabricator.services.mozilla.com/D219519
2024-08-27 16:46:02 +00:00
Karandeep
44cdf1e833 Bug 1912174 - update metric expiring in Firefox 132: urlbar.quick_suggest_contextual_opt_in to Fx136. r=dao,urlbar-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D220154
2024-08-27 13:46:57 +00:00
Daisuke Akatsuka
8867a3a7c6 Bug 1913197: Consume the mouse event for opening settings to prevent from moving focus r=daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D219873
2024-08-24 22:21:44 +00:00
Mark Banner
28e4ba7093 Bug 1870226 - Upgrade eslint-plugin-jsdoc to version 43.2.0. r=frontend-codestyle-reviewers,credential-management-reviewers,issammani
This switches from the deprecated/removed jsdoc/newline-after-description rule to using the replacement jsdoc/tag-lines rule.

Differential Revision: https://phabricator.services.mozilla.com/D219512
2024-08-23 16:43:57 +00:00
Mark Banner
b256e54326 Bug 1870226 - Fix missing jsdoc @returns for Urlbar code. r=urlbar-reviewers,daisuke
Differential Revision: https://phabricator.services.mozilla.com/D219508
2024-08-23 16:43:55 +00:00
Karandeep
eab49e1415 Bug 1906271 - Don't show the default engine icon when keyword.enabled is set to false. r=daleharvey,urlbar-reviewers,dao
Differential Revision: https://phabricator.services.mozilla.com/D218347
2024-08-23 16:05:52 +00:00
Butkovits Atila
11a5a23896 Backed out 7 changesets (bug 1870226) for causing build bustages. CLOSED TREE
Backed out changeset 619244623dba (bug 1870226)
Backed out changeset e85a5647cae4 (bug 1870226)
Backed out changeset 21ea9baf83ea (bug 1870226)
Backed out changeset a506c0f0ce28 (bug 1870226)
Backed out changeset 77c78201a206 (bug 1870226)
Backed out changeset 7a98dfef087f (bug 1870226)
Backed out changeset f64ad89c2406 (bug 1870226)
2024-08-23 12:22:02 +03:00
Mark Banner
1ee70a0f13 Bug 1870226 - Upgrade eslint-plugin-jsdoc to version 43.2.0. r=frontend-codestyle-reviewers,credential-management-reviewers,issammani
This switches from the deprecated/removed jsdoc/newline-after-description rule to using the replacement jsdoc/tag-lines rule.

Differential Revision: https://phabricator.services.mozilla.com/D219512
2024-08-23 08:55:49 +00:00
Mark Banner
e1ae97da9d Bug 1870226 - Fix missing jsdoc @returns for Urlbar code. r=urlbar-reviewers,daisuke
Differential Revision: https://phabricator.services.mozilla.com/D219508
2024-08-23 08:55:47 +00:00
Dale Harvey
9addf821be Bug 1907147 - Restore Actions search mode. r=desktop-theme-reviewers,urlbar-reviewers,fluent-reviewers,daisuke,dao,settings-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D216518
2024-08-22 16:18:57 +00:00
Karandeep
cf4097b6d6 Bug 1913179 - Use requestLongerTimeout to prevent a timeout for browser_glean_telemetry_exposure.js. r=adw,urlbar-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D219789
2024-08-22 12:35:21 +00:00
Moritz Beier
0a54beffb6 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-21 14:03:31 +00:00
James Teow
fcac5c6c4a Bug 1913478 - Ensure the Persisted Search Terms pref is enabled in the Unified Search Button test - r=adw,urlbar-reviewers
The Persistent Search Terms feature is enabled until late beta, hence
why the test is failing late beta and beyond.

I might've integrated the PST with scotchBonnet.enableOverride but
it seems like there's some open threads right now (e.g. should the
feature work on non-default search engines, background colour choice)
that I'm hesistant on making it a blocker to Scotch Bonnet.

Differential Revision: https://phabricator.services.mozilla.com/D219640
2024-08-20 20:13:39 +00:00
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