Commit Graph

3478 Commits

Author SHA1 Message Date
Daisuke Akatsuka
176b51d0b0 Bug 1921174: Move focus to Dedicated Search button by Tab key from urlbar r=daleharvey,urlbar-reviewers,adw,dao
Differential Revision: https://phabricator.services.mozilla.com/D225176
2024-11-05 22:20:03 +00:00
Florian Quèze
e704e70b3b Bug 1927093 - Migrate scalars to use Glean APIs for urlbar.*, r=chutten,urlbar-reviewers,mak.
Differential Revision: https://phabricator.services.mozilla.com/D226513
2024-11-05 13:22:58 +00:00
Florian Quèze
6b72dc05fe Bug 1927093 - Migrate scalars to use Glean APIs for urlbar.impression.*, r=chutten,urlbar-reviewers,Standard8.
Differential Revision: https://phabricator.services.mozilla.com/D226512
2024-11-05 13:22:57 +00:00
Florian Quèze
4f822b5992 Bug 1927093 - Migrate scalars to use Glean APIs for urlbar.picked.*, r=chutten,urlbar-reviewers,Standard8.
Differential Revision: https://phabricator.services.mozilla.com/D226511
2024-11-05 13:22:57 +00:00
Drew Willcoxon
e3f7e215f0 Bug 1929082 - Vendor application-services df8c16859ebeff46cb4fcfb65d7ca9dd6d4fa6d3 for city-based weather. r=nanj
Differential Revision: https://phabricator.services.mozilla.com/D227858
2024-11-05 00:12:03 +00:00
Emilio Cobos Álvarez
a1ae05d74e Bug 1928255 - Fix bug 1927111 in a better way. r=urlbar-reviewers,mak
Keep using the static position as we did before. As long as we don't
have anchor positioning this seems better than whack-a-mole-ing every
possible urlbar position change.

In order to make the fullscreen animation work, make our position
computation ignore transforms, which is how anchor positioning would
behave anyways.

Differential Revision: https://phabricator.services.mozilla.com/D227758
2024-11-04 16:11:58 +00:00
Paul Zuehlcke
4922189f11 Bug 1927220 - Remove broken check for insert location in _initStripOnShare in UrlbarInput. r=urlbar-reviewers,dao
Differential Revision: https://phabricator.services.mozilla.com/D227480
2024-11-04 13:58:13 +00:00
Moritz Beier
4983a8b7fa Bug 1916499 - Add searchForm support back to OpenSearch engines. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D225968
2024-11-04 13:53:51 +00:00
Emilio Cobos Álvarez
303a90ea1b Bug 1928550 - Don't breakout on readonly urlbar. r=urlbar-reviewers,dao
This was a pre-existing issue that was only papered by chance.
this._toolbar is set before the early return for readonly urlbars, but
the ResizeObserver is only set up after it.

Be more explicit about when we allow breaking out of the container (and
effectively do it only for non-readonly urlbars).

Differential Revision: https://phabricator.services.mozilla.com/D227760
2024-11-04 10:11:07 +00:00
Marco Bonardo
3c1369f52e Bug 1781349 - Intermittent browser_searchSingleWordNotification.js. r=urlbar-reviewers,Standard8
Differential Revision: https://phabricator.services.mozilla.com/D227360
2024-11-04 09:55:25 +00:00
Collin Richards
8d99d1e67f Bug 1928655 - Amend focusContentDocumentEsc test for trimHttps. r=urlbar-reviewers,mak
Differential Revision: https://phabricator.services.mozilla.com/D227672
2024-11-04 09:27:11 +00:00
Dale Harvey
cd023ce958 Bug 1924666 - Enable ContextualSearch to search engines from configuration. r=daisuke,mcheang
Differential Revision: https://phabricator.services.mozilla.com/D226359
2024-11-01 16:55:41 +00:00
Mark Banner
3832e2355f Bug 1927798 - Re-enable the curly rule for ESLint. r=frontend-codestyle-reviewers,mossop
This was accidentally disabled in bug 1920531 with the re-organisation of how eslint-plugin-mozilla worked.
The rule needs to be (re)enabled after eslint-config-prettier is applied, as eslint-config-prettier turns it off by default.

Differential Revision: https://phabricator.services.mozilla.com/D227621
2024-11-01 14:15:01 +00:00
Drew Willcoxon
1a33e32173 Bug 1928546 - Make weather suggestions sponsored. r=daisuke
Depends on D227439

Differential Revision: https://phabricator.services.mozilla.com/D227597
2024-11-01 04:28:48 +00:00
Drew Willcoxon
818b9358d0 Bug 1928287 - Cache Merino geolocation for a brief period so we don't ping it on every keystroke. r=daisuke
Depends on D227301

Differential Revision: https://phabricator.services.mozilla.com/D227439
2024-11-01 04:28:48 +00:00
Drew Willcoxon
a62a30b7e6 Bug 1927960 - Make city-based weather suggestions prefer cities nearest the client's geolocation. r=daisuke
This adds some logic on top of D226858 that computes the distance between the
client's geolocation coordinates and weather suggestions' coordinates. It works
really well. We still fall back to comparing the region and country if the
coordinates aren't present in the geolocation, but in practice, I'm not sure
Merino will ever return a geolocation without coordinates.

Also, I realized that we don't need to sort the suggestions to find the one with
the best region/country. We only need to do one loop through them.

Depends on D227271

Differential Revision: https://phabricator.services.mozilla.com/D227301
2024-11-01 04:28:48 +00:00
Chidam Gopal
cbfb99b003 Bug 1927814 - MLSuggest - handle engine restart and failure handling r=adw,urlbar-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D227286
2024-10-31 21:28:30 +00:00
Alexandru Marc
5a5f7b93df Backed out 2 changesets (bug 1916505, bug 1916499) for causing bc failures @ browser_oneOffContextMenu.js
Backed out changeset dbd2ce7823c2 (bug 1916505)
Backed out changeset 5082d347bbf7 (bug 1916499)
2024-10-31 16:05:29 +02:00
Moritz Beier
36f3384408 Bug 1916499 - Add searchForm support back to OpenSearch engines. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D225968
2024-10-31 13:01:12 +00:00
Collin Richards
427da209d7 Bug 1926435 - Fix press escape revert address bar after clear. r=dao,urlbar-reviewers,mak
Differential Revision: https://phabricator.services.mozilla.com/D226692
2024-10-31 10:15:31 +00:00
Emilio Cobos Álvarez
6e6b254c42 Bug 1927111 - Shift urlbar during macOS fullscreen animation. r=Gijs,sfoster,urlbar-reviewers,mak
See comment for sadness.

Differential Revision: https://phabricator.services.mozilla.com/D226933
2024-10-30 13:09:46 +00:00
Emilio Cobos Álvarez
2b95871a34 Bug 1927111 - Don't rely on static position (top: auto) for urlbar position. r=Gijs,sfoster,desktop-theme-reviewers,urlbar-reviewers,mak
The static position of these boxes is not great to depend upon, see:

  https://github.com/w3c/csswg-drafts/issues/9939

Right now, we are relying on the static pos to be properly set which is
going to go away, eventually, and it is bogus, because it doesn't update
if e.g. only transform changes.

Use getBoxQuads to get the content box bounds properly. Also, make
breakout position: absolute explicitly, to prevent confusion.

Differential Revision: https://phabricator.services.mozilla.com/D226932
2024-10-30 13:09:46 +00:00
Tarek Ziadé
ef45c2f97a Bug 1925471 - Check for values in PipelineOptions r=vazish,urlbar-reviewers,adw
Differential Revision: https://phabricator.services.mozilla.com/D226224
2024-10-30 13:05:24 +00:00
Alexandru Marc
d98fdb214b Backed out changeset be2c86185218 (bug 1924666) for causing bc failures @ browser_move_tab_to_new_window.js. CLOSED TREE 2024-10-30 15:23:16 +02:00
Dale Harvey
df9371608d Bug 1924666 - Enable ContextualSearch to search engines from configuration. r=daisuke,mcheang
Differential Revision: https://phabricator.services.mozilla.com/D226359
2024-10-30 11:34:25 +00:00
Adi
f8402ccb58 Backed out changeset 4df1b9d10c1f (bug 1921174) for causing bc failures @ browser_searchModeSwitcher_basic.js. CLOSED TREE 2024-10-30 08:41:36 +02:00
Butkovits Atila
2271d1135d Backed out changeset 6668994ba84c (bug 1925532) for causing failures at browser_ime_composition.js. CLOSED TREE 2024-10-30 06:45:52 +02:00
Daisuke Akatsuka
a081ba9733 Bug 1921174: Move focus to Dedicated Search button by Tab key from urlbar r=daleharvey,urlbar-reviewers,adw
Differential Revision: https://phabricator.services.mozilla.com/D225176
2024-10-30 03:00:32 +00:00
Daisuke Akatsuka
2aeaf78698 Bug 1925532: Enter search mode without preview mode by KEY_Tab, VK_RIGHT and VK_DOWN r=daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D226865
2024-10-30 02:58:57 +00:00
Butkovits Atila
f2d9be08fd Backed out 2 changesets (bug 1927111) for causing failures at browser_add_search_engine.js. CLOSED TREE
Backed out changeset b12f12db6d50 (bug 1927111)
Backed out changeset 8afe68ed6509 (bug 1927111)
2024-10-30 02:27:06 +02:00
Drew Willcoxon
05a523652a Bug 1927876 - Vendor application-services 892d31a9cbc3d3fff30fb70f63beacb92f0157ce for city-based weather. r=nanj
There were trivial failures in some urlbar tests due to the weather suggestions
changes that are the reason for this vendor, plus some ingest metrics changes in
this revision:

7e71b6a672

Differential Revision: https://phabricator.services.mozilla.com/D227271
2024-10-29 23:19:53 +00:00
Emilio Cobos Álvarez
826ab1afd3 Bug 1927111 - Shift urlbar during macOS fullscreen animation. r=Gijs,sfoster,urlbar-reviewers,mak
See comment for sadness.

Differential Revision: https://phabricator.services.mozilla.com/D226933
2024-10-29 22:03:22 +00:00
Emilio Cobos Álvarez
80dcdf14de Bug 1927111 - Don't rely on static position (top: auto) for urlbar position. r=Gijs,sfoster,desktop-theme-reviewers,urlbar-reviewers,mak
The static position of these boxes is not great to depend upon, see:

  https://github.com/w3c/csswg-drafts/issues/9939

Right now, we are relying on the static pos to be properly set which is
going to go away, eventually, and it is bogus, because it doesn't update
if e.g. only transform changes.

Use getBoxQuads to get the content box bounds properly. Also, make
breakout position: absolute explicitly, to prevent confusion.

Differential Revision: https://phabricator.services.mozilla.com/D226932
2024-10-29 22:03:22 +00:00
Dale Harvey
8a1fdfea8c Bug 1916679 - Enable ScotchBonnet on nightly. r=daisuke
Differential Revision: https://phabricator.services.mozilla.com/D226781
2024-10-29 10:08:14 +00:00
Marco Bonardo
631e8d05ce Bug 1912416 - Ctrl+Shift+Left in the Address Bar should not unselect all. r=urlbar-reviewers,daisuke
Differential Revision: https://phabricator.services.mozilla.com/D226684
2024-10-29 09:50:07 +00:00
Dale Harvey
f0fe9b61af Bug 1927124 - Fix tests broken by enabling ScotchBonnet in nightly. r=daisuke,settings-reviewers,urlbar-reviewers,mossop
Differential Revision: https://phabricator.services.mozilla.com/D226900
2024-10-28 16:12:58 +00:00
Drew Willcoxon
5f53852ccf Bug 1927010 - Make urlbar weather suggestions prefer cities in the client's region. r=daisuke
Differential Revision: https://phabricator.services.mozilla.com/D226858
2024-10-25 07:45:13 +00:00
Drew Willcoxon
5d7c13aa90 Bug 1927045 - Fix icons for Yelp ML suggestions in the urlbar. r=daisuke
It's not easy to write a test for this since it's hard to test icons. I've
tested it manually with ML enabled and disabled. I'll look into adding icon
tests.

Differential Revision: https://phabricator.services.mozilla.com/D226874
2024-10-25 07:07:58 +00:00
Joel Maher
3dc8be4954 Bug 1925104 - Adjust mac/linux skip-if conditions to include os_version/architecture on remaining browser-chrome manifests. r=aryx,settings-reviewers,media-playback-reviewers,sessionstore-reviewers,omc-reviewers,urlbar-reviewers,alwu,hanna_a,sfoster
Differential Revision: https://phabricator.services.mozilla.com/D225870
2024-10-24 22:40:25 +00:00
Drew Willcoxon
aa56c40785 Bug 1926381 - Integrate MLSuggest with UrlbarProviderQuickSuggest and implement Yelp ML suggestions. r=daisuke
This adds a new Suggest backend for ML-based suggestions called
`SuggestBackendMl`. Before, with the JS and Rust backends, only one backend was
enabled at a time, but both the ML and Rust backends can be enabled at the same
time since we will want to serve suggestions from both for the foreseeable
future. Features can support ML suggestions by implementing the new
`BaseFeature.mlIntent` getter and handling ML suggestions in `makeResult()`.
Each feature can decide whether it supports ML suggestions and whether they
should be preferred over Rust suggestions.

I've updated the Yelp feature to hook into this, since Yelp suggestions are
supported by the ML model that Chidam is working on. If ML is enabled, then the
feature will only serve ML suggestions. I'm not sure if that's what we want long
term, but for now that will make it clear to people which backend is being used
while we develop this feature.

The `quickSuggestMlEnabled` variable/pref determines whether the ML backend is
enabled. The `yelpMlEnabled` variable/pref determines whether Yelp ML
suggestions are enabled. We can create similar variable/prefs for each feature
that supports ML suggestions so that they can be toggled independently of each
other.

Other changes:

Move the `is_sponsored` logic out of the Rust backend and into the provider.
Otherwise it would need to be duplicated in the ML backend too.

Depends on D224523

Differential Revision: https://phabricator.services.mozilla.com/D226736
2024-10-24 09:52:00 +00:00
mcheang
91e694d9a4 Bug 1925426 - Test autofill by typing a full or partial restrict keyword to trigger search mode. r=mak,urlbar-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D226090
2024-10-23 22:56:46 +00:00
Nan Jiang
7b2fd8965f Bug 1926315 - Add telemetry for relevance ranking of Firefox Suggest r=adw,urlbar-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D226672
2024-10-23 22:18:31 +00:00
Chidam Gopal
3b89ccb50a Bug 1922591 - MLSuggest for yelp, weather intent classification and NER location r=adw DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D224523
2024-10-23 20:40:18 +00:00
Yazan Al Macki
76d48f287d Bug 1906541 - Ensure Searchmode Switcher works when Search Services fails. r=daleharvey,urlbar-reviewers,fluent-reviewers,mak
Differential Revision: https://phabricator.services.mozilla.com/D224522
2024-10-23 19:32:38 +00:00
Drew Willcoxon
b78d8f3b9a Bug 1921126 - Add desktop support for city-based weather suggestions. r=daisuke
This adds support for city-based weather suggestions from Rust, i.e., queries
that contain city and region names.

When Rust detects a weather query with a city, it sets three suggestion
properties: `city`, `region`, and `country`. All three properties will be set
because the Rust component knows which cities are in which regions and
countries, and it will only set the properties if it detects a city name. If a
name matches multiple cities and the query doesn't contain a region, Rust will
return multiple suggestions, one suggestion per city-region, and the suggestions
will be ordered by population size, largest to smallest.

Rust uses data from GeoNames to detect locations. We store GeoNames data in
remote settings and ingest it into the Rust DB, just like we do for suggestions
and keywords. This patch uses some mock GeoNames data in the test.

More info on the Rust part of this in the PR:
https://github.com/mozilla/application-services/pull/6406

For the Merino part, Merino now supports a few extra params for weather
suggestions: city, region, and country. So when the Rust component returns a
weather suggestion with those properties set, we can pass them to Merino to get
a weather suggestion for that location.

This patch adds a new `BaseFeature` method called `filterSuggestions()`. The
important thing about this method is that it's passed all the feature's
suggestions that were matched in the query. The feature can use this info to
determine which suggestion(s) to show. Right now, `Weather` uses it to discard
all weather suggestions except the first one, which means it will show the
suggestion with the largest city population (if the first suggestion has a
city). In the future, I'd like to explore better options like picking the
suggestion whose city name best matches the user's location.

Depends on D226215

Differential Revision: https://phabricator.services.mozilla.com/D226584
2024-10-23 06:54:44 +00:00
Drew Willcoxon
29390b9c75 Bug 1925735 - Update weather suggestions tests. r=daisuke
This replaces `MerinoTestUtils.WEATHER_RS_DATA` with
`QuickSuggestTestUtils.weatherRecord()`. Weather records now have an attachment
instead of storing their keywords inline. I also removed
`MerinoTestUtils.WEATHER_KEYWORD` because I think it's fine to use "weather"
directly everywhere, and that's simpler.

Some tests also need to be updated for the slight changes in keyword matching,
and some tasks don't make sense anymore.

Depends on D226214

Differential Revision: https://phabricator.services.mozilla.com/D226215
2024-10-23 02:45:20 +00:00
Dale Harvey
92c4195fd1 Bug 1925643 - Show Firefox chicklet on chrome privileged pages r=urlbar-reviewers,mak
Differential Revision: https://phabricator.services.mozilla.com/D226395
2024-10-22 20:27:24 +00:00
Dale Harvey
383a30e1de Bug 1926239 - Reenable tab-to-search while contextual search disabled. r=mak,urlbar-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D226452
2024-10-22 15:25:00 +00:00
Drew Willcoxon
6a92258ac9 Bug 1926112 - Vendor application-services a0121f35125bd61ebd10fab969f6cfcc02f94d5a for city-based weather. r=bdk,nanj,supply-chain-reviewers
I had to also bump `uniffi` and `uniffi_bindgen` from 0.28.1 to 0.28.2.

Differential Revision: https://phabricator.services.mozilla.com/D226381
2024-10-22 03:45:18 +00:00
Drew Willcoxon
cbbe362eed Bug 1925734 - Remove UrlbarProviderWeather, the weatherKeywords Nimbus variable, and JS-backend support for weather suggestions. r=daisuke
Depends on D225051

Differential Revision: https://phabricator.services.mozilla.com/D226214
2024-10-22 01:59:13 +00:00