Commit Graph

3047 Commits

Author SHA1 Message Date
Karandeep
c394e93376 Bug 1855958 - Remove the experimental urlbar API (first patch). r=mak,extension-reviewers,desktop-theme-reviewers,robwu
ext-urlbar.js is unused but will be removed in a separate
patch to avoid test failures in condprof tests. Condprof tests may use
an outdated profile directory that still references ext-urlbar.js in
startupcache files, which triggers a test-only test failure in
mozilla::net::CheckForBrokenChromeURL.

Differential Revision: https://phabricator.services.mozilla.com/D199769
2024-02-05 17:04:37 +00:00
Marc Seibert
3c59e67e07 Bug 1841869 - entering "abc @xyz.[TLD]" in address bar opens a prompt regarding loading "xyz.[TLD]" instead of searching for "abc @xyz.[TLD]" on the default search engine.r=adw
Differential Revision: https://phabricator.services.mozilla.com/D198196
2024-01-31 19:07:57 +00:00
Harshit Sohaney
6c978c9036 Bug 1854680 - Enable the new clear history dialog in nightly only. r=pbz
Differential Revision: https://phabricator.services.mozilla.com/D198600
2024-01-30 14:45:24 +00:00
Anna Yeddi
b78aed55a7 Bug 1864962 - Part 2. Update AccessibilityUtils to account for the purposefully non-focusable Go button in the URL Bar. r=Jamie,adw
Since, in the bug 1875654, we have updated the `browser-toolbarKeyNav.js` to ensure the keyboard navigation handler accounts for intentionally non-focusable controls when calculating focus behavior of toolbar buttons.

We are updating the URL Bar `Go` button markup to ensure it won't be included in the keyboard focus order (since a keyboard-only user could press `Enter` to achieve the same submission of their search query), as well as associated mochitests since we do not need to separately set an environment to skip the focus check. This is because we also fine-tune the AccessibilityUtils' `isKeyboardFocusableBrowserToolbarButton()` check to ensure more through confirmation of the image button in question.

Differential Revision: https://phabricator.services.mozilla.com/D199394
2024-01-29 19:24:07 +00:00
Marc Seibert
485a2c91f5 Bug 1855717 - Copy also from hidden results.r=adw
Differential Revision: https://phabricator.services.mozilla.com/D198240
2024-01-29 18:28:32 +00:00
Tom Marble
a42a175006 Bug 1868866 - adds ManifestParser TOML linter r=jmaher,linter-reviewers,ahal,webdriver-reviewers,settings-reviewers,search-reviewers,devtools-reviewers,fxview-reviewers,cookie-reviewers,sessionstore-reviewers,places-reviewers,dom-storage-reviewers,translations-reviewers,valentin,whimboo,Standard8,sclements,jesup
Differential Revision: https://phabricator.services.mozilla.com/D199054
2024-01-29 17:30:48 +00:00
James Teow
1925472c9e Bug 1876556 - Change urlbar engagement telemetry to record data by default - r=TravisLong,mak,daisuke
Differential Revision: https://phabricator.services.mozilla.com/D199661
2024-01-29 14:20:57 +00:00
Karandeep
8182f87ef8 Bug 1874202 - Add a stopwatch telemetry to record the time it takes to read from the clipboard. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D198595
2024-01-29 12:47:39 +00:00
Sandor Molnar
778333649c Backed out changeset 2be67d91cf16 (bug 1868866) for causing Mn failures at toolkit/xre/test/marionette/test_exitcode.py CLOSED TREE 2024-01-27 00:15:22 +02:00
Tom Marble
920ed4a927 Bug 1868866 - adds ManifestParser TOML linter r=jmaher,linter-reviewers,ahal,webdriver-reviewers,settings-reviewers,search-reviewers,devtools-reviewers,fxview-reviewers,cookie-reviewers,sessionstore-reviewers,places-reviewers,dom-storage-reviewers,translations-reviewers,valentin,whimboo,Standard8,sclements,jesup
Differential Revision: https://phabricator.services.mozilla.com/D199054
2024-01-26 20:06:56 +00:00
Marc Seibert
ac30c46680 Bug 1876759 - Added voice over text for switch to container tab icon mode.r=mak
Differential Revision: https://phabricator.services.mozilla.com/D199730
2024-01-26 16:45:21 +00:00
Daisuke Akatsuka
211fd27959 Bug 1876400: Make cached-icon and page-icon protocol independent r=places-reviewers,mak
Differential Revision: https://phabricator.services.mozilla.com/D199600
2024-01-25 22:32:11 +00:00
Drew Willcoxon
d13fa84db8 Bug 1876381 - Remove underscores for some UrlbarTestUtils.TestProvider properties. r=mak
In the end I wasn't able to remove underscores on a lot of these since the base
`UrlbarProvider` class defines getters and methods with the same names, but at
least `results` is no longer "private".

Depends on D199176

Differential Revision: https://phabricator.services.mozilla.com/D199594
2024-01-25 20:15:55 +00:00
Drew Willcoxon
0ec8c8bac6 Bug 1875533 - Properly count hidden urlbar result exposures. r=mak,wstuckey
This fixes the two `#addExposure()` calls in `UrlbarView.#updateResults()` so
that hidden exposures are properly counted. Right now we overcount them because
we record them in cases where the result would not have been shown anyway.

The new test tries to cover all possible `UrlbarView.#updateResults()` paths:

* When the view is full and a new result can't replace any of the old rows, the
  new result is appended and hidden. If the query is then canceled, the new row
  will never be shown
* When the vew isn't full, a new row can be appended and visible immediately
* When a new row replaces an old row, it can be visible immediately

Differential Revision: https://phabricator.services.mozilla.com/D199176
2024-01-25 20:15:55 +00:00
Joel Maher
3662d84cd4 Bug 1873732 - remove outdated manifest conditions and use consistent conditions. r=aryx,necko-reviewers,jgilbert,settings-reviewers,credential-management-reviewers,devtools-reviewers,sessionstore-reviewers,dom-storage-reviewers,sgalich,kershaw,nchevobbe,janv,dao
Differential Revision: https://phabricator.services.mozilla.com/D198082
2024-01-25 00:27:05 +00:00
Daisuke Akatsuka
352c077df4 Bug 1849866: Rename moz-anno:favicon protocol to cached-favicon r=necko-reviewers,places-reviewers,valentin,mak
Differential Revision: https://phabricator.services.mozilla.com/D198130
2024-01-24 22:05:42 +00:00
Anna Yeddi
d93bc5e2d6 Bug 1876146 - Remove the fail-if notation for browser_acknowledgeFeedbackAndDismissal.js that is passing a11y_checks. r=Standard8
The `browser/components/urlbar/tests/browser/browser_acknowledgeFeedbackAndDismissal.js` used to fail a11y_checks with the failed or incompleted label checks (when an unlabeled element removed before l10n finished). But since the bug 1871491 and bug 1867170 fine-tuned the AccessibilityUtils to better [check for an unlabeled Url Bar Option](https://searchfox.org/mozilla-central/rev/b9d9a1a873302452fc918505d62cd226d81b67d0/testing/mochitest/tests/SimpleTest/AccessibilityUtils.js#415-433) and to [check parents of a context menu elements too](https://searchfox.org/mozilla-central/rev/b9d9a1a873302452fc918505d62cd226d81b67d0/testing/mochitest/tests/SimpleTest/AccessibilityUtils.js#803-806), the test has been passing, so we could remove the `fail-if` notation from its test manifest.

Differential Revision: https://phabricator.services.mozilla.com/D199395
2024-01-24 19:57:11 +00:00
Stanca Serban
71d0d5cf96 Backed out changeset 54462970f797 (bug 1873732) for causing web platform tests failures. 2024-01-24 21:08:19 +02:00
Gijs Kruitbosch
532c3bc439 Bug 1780071 - autofix browser/ violations of no-comparison-or-assignment-inside-ok, r=Standard8,webcompat-reviewers,extension-reviewers,settings-reviewers,credential-management-reviewers,fxview-reviewers,sessionstore-reviewers,places-reviewers,sgalich,dao,twisniewski,mconley,sclements
Differential Revision: https://phabricator.services.mozilla.com/D198974
2024-01-24 17:03:13 +00:00
Joel Maher
04ec786571 Bug 1873732 - remove outdated manifest conditions and use consistent conditions. r=aryx,necko-reviewers,jgilbert,settings-reviewers,credential-management-reviewers,devtools-reviewers,sessionstore-reviewers,dom-storage-reviewers,sgalich,kershaw,nchevobbe,janv,dao
Differential Revision: https://phabricator.services.mozilla.com/D198082
2024-01-24 16:35:54 +00:00
Daisuke Akatsuka
d7d4769a47 Bug 1875952: Make RemoteSettings devtools environment available in the Suggest Rust backend r=adw
Depends on D199304

Differential Revision: https://phabricator.services.mozilla.com/D199305
2024-01-24 00:57:08 +00:00
Daisuke Akatsuka
09f2bda170 Bug 1875966: Add Yelp-modifiers data for tests r=adw
Differential Revision: https://phabricator.services.mozilla.com/D199304
2024-01-24 00:57:07 +00:00
Dão Gottwald
b007f550bd Bug 1875772 - UrlbarProviderInputHistory should set isBlockable to true/false rather than true/undefined. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D199212
2024-01-23 10:58:04 +00:00
Marc Seibert
0d5499987a Bug 1861530 - Implement the updated UX spec for Switch to tab in containers feature.r=mak,desktop-theme-reviewers,fluent-reviewers,bolsson,dao
Differential Revision: https://phabricator.services.mozilla.com/D192026
2024-01-23 08:54:19 +00:00
Anna Yeddi
6f25e00c51 Bug 1874290 - Add exceptions from a11y_checks for clicks on non-interactive chrome UI in Search and Address Bar. r=adw
The `browser/components/urlbar/tests/browser-tips/browser_searchTips_interaction.js` and `browser/components/urlbar/tests/browser/browser_closePanelOnClick.js` tests send a click event on a non-interactive `<toolbarspring>` element to test that the URL Bar panel and a search tip would, in fact, be closed.

For users of keyboards and assistive technology another way like pressing `Esc` key is available to dismiss the dialog, thus we need to add an exception from the a11y_checks for this tests via `setEnv` and remove the `fail-if` notations from their test manifests.

Differential Revision: https://phabricator.services.mozilla.com/D198411
2024-01-23 00:55:16 +00:00
Mark Banner
b6190d5a6d Bug 1875071 - Simplify OpenSearchEngine loading and install process in the search service. r=search-reviewers,mcheang
The current process creates the OpenSearchEngine and gets it to load its data. Once the data is loaded,
it notifies the SearchService that is ready to be added.

This changes the structure so that the SearchService loads the data, creates the engine and then adds it
straight away.

This also means that the contextual search provider can be simplified and doesn't need to tell the engine
not to add itself to the SearchService.

Differential Revision: https://phabricator.services.mozilla.com/D198814
2024-01-22 19:12:39 +00:00
Dão Gottwald
fe07007fb3 Bug 1810113 - UrlbarProviderPlaces and UrlbarProviderSearchSuggestions should set isBlockable and blockL10n for history results. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D168993
2024-01-19 21:43:28 +00:00
Stephanie Cunnane
2d104f535b Bug 1843509 - Remove suggest_sponsor and suggest_non_sponsor are from the urlbar's metrics.yaml file. r=mak DONTBUILD
@mak, in [[ https://bugzilla.mozilla.org/show_bug.cgi?id=1843509#c0 | this comment ]], you mention letting DS know about this removal. So once this patch lands, I'll update the commentary box in the Glean dictionary for urlbar engagement telemetry.

Differential Revision: https://phabricator.services.mozilla.com/D199010
2024-01-19 15:02:30 +00:00
Sandor Molnar
2ed9ff83fd Backed out changeset 4ec2b9afc62a (bug 1874202) bc failures at browser/components/urlbar/tests/browser/browser_clipboard.js CLOSED TREE 2024-01-19 17:03:32 +02:00
Karandeep
a9b23c7611 Bug 1874202 - Add a stopwatch telemetry to record the time it takes to read from the clipboard. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D198595
2024-01-19 13:24:04 +00:00
Daisuke Akatsuka
eb79c672da Bug 1868922: Pass user's query as is to Rust component to keep string cases r=adw
Differential Revision: https://phabricator.services.mozilla.com/D198513
2024-01-19 02:44:41 +00:00
Daisuke Akatsuka
b983b699b2 Bug 1855375: Basic implementation for Yelp Suggestions r=fluent-reviewers,flod,adw
Differential Revision: https://phabricator.services.mozilla.com/D189335
2024-01-19 02:44:41 +00:00
Erik Nordin
5bb63471e3 Bug 1875090 - Rename BrowserTestUtils.is_visible() to isVisible() r=Gijs,settings-reviewers,application-update-reviewers,pip-reviewers,credential-management-reviewers,devtools-reviewers,fxview-reviewers,translations-reviewers,sgalich,bytesized,sfoster
Renames all instances of the snake_case identifier to
camelCase to match more closely to idiomatic JavaScript
and to existing conventions throughout the code base.

Differential Revision: https://phabricator.services.mozilla.com/D198826
2024-01-19 02:15:33 +00:00
Erik Nordin
857bffe429 Bug 1875090 - Rename BrowserTestUtils.is_hidden() to isHidden() r=Gijs,settings-reviewers,pip-reviewers,credential-management-reviewers,devtools-reviewers,fxview-reviewers,translations-reviewers,sgalich,mhowell
Renames all instances of the snake_case identifier to
camelCase to match more closely to idiomatic JavaScript
and to existing conventions throughout the code base.

Differential Revision: https://phabricator.services.mozilla.com/D198825
2024-01-19 02:15:33 +00:00
James Teow
9d567d2240 Bug 1804010 - Add tests for topsite_search interactions - r=daisuke
Differential Revision: https://phabricator.services.mozilla.com/D198798
2024-01-19 01:48:22 +00:00
mcheang
4ffcfc6cbc Bug 1667639 - Make keyword at the start of the string take precedence over restrict symbols at the end of the string. r=mak
This patch modifies PlacesUtils to cache the keywords and adds functionality to
find a keyword. The Tokenizer calls PlacesUtils to know if the first word
is a keyword and if the first word is a keyword, then the rest of the search
string will be treated as text and Tokenizer won't filter any other restrict
symbols.

Differential Revision: https://phabricator.services.mozilla.com/D198208
2024-01-19 01:13:39 +00:00
Dale Harvey
a6bc2baf74 Bug 1841762 - Ensure onEngagement has queryContext defined. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D197265
2024-01-18 17:52:58 +00:00
Cristian Tuns
87fcff935b Backed out 4 changesets (bug 1868922, bug 1855375, bug 1874990) for causing xpcshell failures in /test_tab_quickwrite.js CLOSED TREE
Backed out changeset d558120aba19 (bug 1868922)
Backed out changeset e2c1399903d8 (bug 1855375)
Backed out changeset de119e6a8ced (bug 1874990)
Backed out changeset 3d1ef7c11154 (bug 1874990)
2024-01-18 12:07:55 -05:00
Daisuke Akatsuka
03a5a6291f Bug 1868922: Pass user's query as is to Rust component to keep string cases r=adw
Differential Revision: https://phabricator.services.mozilla.com/D198513
2024-01-18 15:54:42 +00:00
Daisuke Akatsuka
beb26b8db7 Bug 1855375: Basic implementation for Yelp Suggestions r=fluent-reviewers,flod,adw
Differential Revision: https://phabricator.services.mozilla.com/D189335
2024-01-18 15:54:41 +00:00
Marco Bonardo
1f76e54516 Bug 1874546 - Fix test_autofill_urls.js failing at beta merge. r=mseibert
The heuristic fallback provider is not trimming. Regardless of that being
expected or not, the test is not right for the status quo.

Differential Revision: https://phabricator.services.mozilla.com/D198706
2024-01-17 16:02:05 +00:00
Mark Banner
459d345e12 Bug 1822097 - Separate out OpenSearch loading into a separate module. r=search-reviewers,daleharvey
This improves the architecture by separating out the loading and therefore not having
the object try to load itself.

There are no functional changes nor removals here, the code is only being restructured.

Differential Revision: https://phabricator.services.mozilla.com/D198378
2024-01-17 14:48:14 +00:00
Karandeep
8a3609930a Bug 1862616 - Additional text can be inserted in the clipboard result link. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D198194
2024-01-16 17:43:55 +00:00
James Teow
20166a0707 Bug 1874344 - Add additional tests and documentation for Persisted Search Terms logic - r=adw
Differential Revision: https://phabricator.services.mozilla.com/D198379
2024-01-12 18:14:08 +00:00
James Teow
ca01b3cb5f Bug 1868133 - Use SearchStaticData to extract Google TLD's - r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D197985
2024-01-12 13:58:49 +00:00
Marc Seibert
6a56f90bb3 Bug 1858994 - Punycode is shown in heuristic result. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D191218
2024-01-12 13:56:28 +00:00
Karandeep
f25f49b95b Bug 1874200 - Disable the clipboard provider if the clipboard contents are too large. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D198288
2024-01-12 12:46:40 +00:00
Anna Yeddi
e1a62a6d0e Bug 1872398 - Add an exception from a11y_checks for one click on the URL Bar in a mouse-specific test. r=adw
We intentionally turn off a11y_checks for the click updated, because it is send to send a focus on the URL Bar with the mouse, while other ways to focus it are accessible for users of assistive technology and keyboards, thus this test can be excluded from the accessibility tests.

Since this test is now expected to pass a11y_checks, we are also remiving the `fail-if` notation from the test manifest.

Differential Revision: https://phabricator.services.mozilla.com/D197433
2024-01-11 13:39:42 +00:00
Drew Willcoxon
3f0ad75711 Bug 1874072 - Don't query the Suggest Rust component for disabled suggestion types. r=daisuke
Please see the bug for context.

Differential Revision: https://phabricator.services.mozilla.com/D198216
2024-01-11 04:23:33 +00:00
Hanna Jones
c6a82fe0de Bug 1845150 - Update notificationbox usage for search engine removal notification r=search-reviewers,fluent-reviewers,Standard8,bolsson
Notification can be triggered locally via this snippet:

```js
BrowserSearch.removalOfSearchEngineNotificationBox("Google", "Foogle")
```

Depends on D189872

Differential Revision: https://phabricator.services.mozilla.com/D194312
2024-01-10 18:55:30 +00:00