Commit graph

2959 commits

Author SHA1 Message Date
Anna Yeddi
0788e7d8d7 Bug 1864941 - Add exceptions from a11y_checks for 3 tests clicking outside of the urlbar in Search and Address Bar. r=adw
It appears that `browser/components/urlbar/tests/engagementTelemetry/browser/browser_glean_telemetry_engagement_edge_cases.js` and  `browser/components/urlbar/tests/engagementTelemetry/browser/browser_glean_telemetry_abandonment_tips.js` tests the mouse/touch-specific behavior: the test cases are [sending a click event somewhere on the window to test that the tooltip would, in fact, disappear or not](https://searchfox.org/mozilla-central/source/browser/components/urlbar/tests/engagementTelemetry/browser/browser_glean_telemetry_abandonment_tips.js#61) (depending on the test case), while there are other ways to dismiss the tooltip that are accessible (i.e. by pressing `Esc` key, testing which is included in one of the test cases).

Similarly, `browser/components/urlbar/tests/browser/browser_view_selectionByMouse.js` sends a `mouseup` events to the `<html:body>` to dismiss the url bar with a mouse-specific tests.

These clicks are not expected or do not have to be done by a keyboard-only user and it does not have to confirm the keyboard focusability as part of the accessibility of these elements.

We adding an exception from a11y_checks for these clicks, because the clicks are testing mouse-specific behavior where keyboard accessible alternative is available and is tested, and we removing the `fail-if` notation that was added by bug 1854660 before the investigation in the meta bug 1854661.

Differential Revision: https://phabricator.services.mozilla.com/D193699
2023-11-29 00:00:24 +00:00
Karandeep
da80378e0f Bug 1866616 - Save the current date when starting a search from the search bar. r=dao,search-reviewers,daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D194754
2023-11-28 12:20:43 +00:00
Dão Gottwald
781ad0b2f5 Bug 1866230 - Record impression event only when query finished. r=daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D194690
2023-11-28 12:19:30 +00:00
Dão Gottwald
0a77ce1f8c Bug 1866076 - Only check prefs, not queryContext when deciding whether to remove the contextual opt-in UI. r=daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D194528
2023-11-28 12:11:10 +00:00
Dão Gottwald
7addb6dac5 Bug 1866292 - Add fxsuggest_data_sharing_opt_in as a recorded result type. r=daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D194689
2023-11-28 07:59:32 +00:00
Dão Gottwald
5539ed541f Bug 1866069 - Announce title and description on the contextual opt-in row when selecting the first element (i.e. the learn more link). r=daleharvey
This is a hack for the experiment and likely not ideal for screen readers, but better than what we have. I'm reaching out to a11y folks to figure out the right long-term solution here. I'll make an effort to get that ready for the experiment too, but would like to get this landed as a backup.

Differential Revision: https://phabricator.services.mozilla.com/D194501
2023-11-28 07:58:01 +00:00
Dão Gottwald
7a95763a69 Bug 1866620 - [Firefox Suggest Opt-in Experiment] Bring narrow layout for topPosition=false in line with topPosition=true. r=daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D194691
2023-11-28 07:56:47 +00:00
Dale Harvey
5e2e7f430b Bug 1797488 - Ensure switchtotab loads URL in a tab if record is missing. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D194170
2023-11-28 06:33:56 +00:00
Drew Willcoxon
ff0aca1e18 Bug 1866858 - Document rs_mdn, rust_amo, and rust_pocket result types in urlbar's metrics.yaml. r=daisuke
Differential Revision: https://phabricator.services.mozilla.com/D194800
2023-11-27 22:51:37 +00:00
Malte Juergens
5b77fcfd88 Bug 1863281 - Fix tests that would break with dom.security.https_first_schemeless enabled by default r=freddyb,places-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D192923
2023-11-27 09:51:46 +00:00
Anna Yeddi
bf1aed276d Bug 1864962 - Update urlbar-go-button to be a button and pass a11y_checks in Search and Address Bar. r=Jamie,adw
We provide `role=button` to the image control that can be clicked (with a mouse or with an assistive technology as speech-to-text/voice control) as an alternative way of the urlbar search query submission, where other ways are accessible (and are tested here too).

Setting an environment to `focusableRule: false` allows us to flag to the AccessibilityUtils that this specific button is purposefully not made focusable and its keyboard focusability should not be tested.

The previously failing accessibility checks should now be passing, thus we are also removing the `fail-if` notations that were added by bug 1854660 before the investigation in the meta bug 1854661.

Differential Revision: https://phabricator.services.mozilla.com/D193703
2023-11-23 02:33:10 +00:00
Dão Gottwald
3b22299325 Bug 1865862 - [Firefox Suggest Opt-in Experiment] Update descriptions as per final figma. r=daleharvey
Not updating the ids here as these strings aren't localized.

Differential Revision: https://phabricator.services.mozilla.com/D194244
2023-11-21 19:40:51 +00:00
Anna Yeddi
9985c92499 Bug 1864751 - Pt.2. Remove fail-if notations for a11y_checks of one-off-items in Search and Address Bar and Session Restore. r=adw,Jamie,sessionstore-reviewers,sclements
With the AccessibilityUtils tests updated in D193591 to pass a11y_checks for for keyboard focusable URL bar's `.searchbar-engine-one-off-item` buttons and `.urlbarView-row-inner` results options that are purposefully made focusable with arrow keys only (instead of a Tab that would create more tiring, cumbersome experience navigating Awesomebar for keyboard-only users), we could now remove the `fail-if` notations from a series of tests that were previously failing. Also, there are 12 tests that would also be affected, but they have other elements that are throwing warning or failing a11y_checks besides the one-off controls, thus we'd be keeping them to expect to fail until these items are resolved separately.

These tests were `fail-if`ed by bug 1854660 and bug 1854528, before the investigation in the meta bug 1854661 and bug 1854529.

Differential Revision: https://phabricator.services.mozilla.com/D193849
2023-11-21 18:42:51 +00:00
Joel Maher
2cae29b76e Bug 1859869 - batch 12 - browser/* xpcshell .ini manifests to .toml. r=aryx,extension-reviewers,credential-management-reviewers,search-reviewers,sessionstore-reviewers,places-reviewers,issammani,Standard8,robwu,sclements
Differential Revision: https://phabricator.services.mozilla.com/D193996
2023-11-21 17:35:23 +00:00
Dale Harvey
d16fbc1855 Bug 1803576 - Add Save page as PDF Quickaction. r=daisuke,fluent-reviewers,kpatenio
Differential Revision: https://phabricator.services.mozilla.com/D193757
2023-11-20 19:57:32 +00:00
Karandeep
415dc9403d Bug 1860548 - Enable the URL Paste Suggestion feature by default in Nightly. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D191868
2023-11-20 17:14:25 +00:00
Marc Seibert
ffee0a897e Bug 1657237 - Address Bar flashes punycode when loading page.r=mak
Differential Revision: https://phabricator.services.mozilla.com/D192696
2023-11-20 17:11:23 +00:00
Dão Gottwald
8aa348a1d0 Bug 1852058 - [Firefox Suggest Opt-in Experiment] Implement Glean probes for all treatment branches. r=daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D193767
2023-11-17 10:35:03 +00:00
Natalia Csoregi
994473d318 Backed out changeset e7983ca0617d (bug 1852058) for causing build bustages. CLOSED TREE 2023-11-17 09:39:15 +02:00
Dão Gottwald
e1bce67af2 Bug 1852058 - [Firefox Suggest Opt-in Experiment] Implement Glean probes for all treatment branches. r=daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D193767
2023-11-17 07:00:42 +00:00
Karandeep
1197d357f2 Bug 1852046 - Convert "Suggestions from the web" and "Suggestions from sponsors" toggles to checkboxes on privacy prefs page r=dao,fluent-reviewers,desktop-theme-reviewers,hjones,bolsson
Differential Revision: https://phabricator.services.mozilla.com/D191641
2023-11-16 07:19:42 +00:00
Dão Gottwald
9ca2d44a2a Bug 1864121 - [Firefox Suggest Opt-in Experiment] Add Shortcuts group label when contextual opt-in UI is shown above top sites. r=daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D193649
2023-11-16 07:17:13 +00:00
Narcis Beleuzu
a12b7a1fdc Backed out changeset 74497487caf9 (bug 1860548) for bc failure on browser_rich_suggestions.js 2023-11-15 21:02:51 +02:00
Karandeep
6c8ba1c729 Bug 1860548 - Enable the URL Paste Suggestion feature by default in Nightly. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D191868
2023-11-15 10:51:27 +00:00
Dão Gottwald
72853c5b0e Bug 1852056 - [Firefox Suggest Opt-in Experiment] Implement layout for opt-in UI after one-off button row. r=daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D193437
2023-11-15 07:21:17 +00:00
Iulian Moraru
372411ff9e Backed out 2 changesets (bug 1852056, bug 1864122) for causing bc failures on browser_shortcuts_add_search_engine.js. CLOSED TREE
Backed out changeset 095c9d5d982c (bug 1864122)
Backed out changeset 42e41cb8b18f (bug 1852056)
2023-11-15 00:32:50 +02:00
Dale Harvey
07c52626b4 Bug 1852442 - Remove delay for heuristic result. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D192462
2023-11-14 20:42:35 +00:00
Dão Gottwald
30815ae8a3 Bug 1852056 - [Firefox Suggest Opt-in Experiment] Implement layout for opt-in UI after one-off button row. r=daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D193437
2023-11-14 20:31:19 +00:00
Anna Yeddi
d86c7c92a3 Bug 1863584 - Remove skip-if for a11y_checks that previously crashed with @ mozilla::detail::InvalidArrayIndex r=Gijs,Standard8
We had to skip-if those tests that were crashing during a11y_checks and since the bug 1849230 is resolved now these test can be re-enabled (whenever possible). Two tests have also been failing intermittently, thus they are remaining skipped, but the comment is updated to remove the mention of the crash.

Differential Revision: https://phabricator.services.mozilla.com/D193230
2023-11-11 10:47:21 +00:00
Dão Gottwald
dd8ed34c17 Bug 1852055 - [Firefox Suggest Opt-in Experiment] Implement opt-in UI at the top of the results list. r=daleharvey,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D193198
2023-11-10 11:28:14 +00:00
Cristian Tuns
dddbc43f01 Backed out changeset 09cf9c007215 (bug 1657237) for causing bc failures in browser_enter.js CLOSED TREE 2023-11-10 06:24:46 -05:00
Marc Seibert
138e783c51 Bug 1657237 - Address Bar flashes punycode when loading page.r=mak
Differential Revision: https://phabricator.services.mozilla.com/D192696
2023-11-10 09:51:36 +00:00
Natalia Csoregi
4e91b13b7d Backed out changeset 555c786396f8 (bug 1852046) as requested. CLOSED TREE 2023-11-09 20:53:42 +02:00
Stanca Serban
741d5e91ef Backed out changeset e65fca949600 (bug 1858994) for causing xpcshell failures in test_autofill_bookmarked.js. 2023-11-08 12:47:20 +02:00
Marc Seibert
b5cf15e608 Bug 1858994 - Punycode is shown in heuristic result.r=mak
Differential Revision: https://phabricator.services.mozilla.com/D191218
2023-11-08 09:21:29 +00:00
Cosmin Sabou
f335845d1d Backed out changeset 41043c74e42a (bug 1860548) for bc failures on browser_quicksuggest_addons.js. CLOSED TREE 2023-11-08 01:06:14 +02:00
Karandeep
b99530f211 Bug 1860548 - Enable the URL Paste Suggestion feature by default in Nightly. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D191868
2023-11-07 15:14:38 +00:00
Vinny Diehl
3fe411114d Bug 1858854 - Validate input to setTimeZone r=arai
Differential Revision: https://phabricator.services.mozilla.com/D191935
2023-11-04 09:30:35 +00:00
Mark Banner
7537024af5 Bug 1861676 - Use the new queryParamNames SERP telemetry parameter by default. r=search-reviewers,jteow
Differential Revision: https://phabricator.services.mozilla.com/D191649
2023-11-03 10:35:04 +00:00
Dale Harvey
a60e4e3d74 Bug 1862704 - Use moz-bool-pref to test for richsuggestions. r=dao,desktop-theme-reviewers,emilio
Differential Revision: https://phabricator.services.mozilla.com/D192600
2023-11-03 09:43:10 +00:00
mcheang
4475e74bde Bug 1849013 - Add telemetry to track when search service initialization fails. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D190889
2023-11-02 21:32:30 +00:00
Marc Seibert
136602cd2a Bug 1859810 - Bookmark suggestion includes container label before URL with browser.urlbar.switchTabs.searchAllContainers = true.r=mak
Differential Revision: https://phabricator.services.mozilla.com/D191636
2023-11-02 14:50:58 +00:00
Drew Willcoxon
dc483e0bcb Bug 1832198 - Remove Suggest suggestions from memory when their features are disabled. r=daisuke
This is simple to fix after the changes made in bug 1861540 D192038.

Differential Revision: https://phabricator.services.mozilla.com/D192393
2023-11-01 20:56:46 +00:00
Marc Seibert
fa13bd0d23 Bug 1860528 - Mixed content warning doesn't look right with enabled.r=dao
Differential Revision: https://phabricator.services.mozilla.com/D192017
2023-11-01 11:22:39 +00:00
Norisz Fay
4e95b87ca8 Backed out changeset 79de70379650 (bug 1832198) for causing failures on browser_quicksuggest_mdn.js CLOSED TREE 2023-11-01 09:47:26 +02:00
Drew Willcoxon
5afd8c41d0 Bug 1832198 - Remove Suggest suggestions from memory when their features are disabled. r=daisuke
This is simple to fix after the changes made in bug 1861540 D192038.

Differential Revision: https://phabricator.services.mozilla.com/D192393
2023-11-01 06:45:43 +00:00
Anna Yeddi
4c4974b325 Bug 1858041 - Pt.4. Temporarily skip some Tier 2 a11y_checks for unexpecredly failing/passing or crashing on Autoland. r=devtools-reviewers,credential-management-reviewers,issammani
There are some a11y_checks that are intermittently failing on Autoland and pass on Try and vice versa. Also, a couple of tests are crashing while performing a11y_checks, thus they are to be skipped while we continue the investigation into each of them.

Related bugs:
- Fail-if tests: meta bug 1848402
- Explore capturing click events for a11y_checks: bug 1692110

Differential Revision: https://phabricator.services.mozilla.com/D192086
2023-10-31 17:20:39 +00:00
Abhishek Madan
63569191d0 Bug 1833105 - Added two histogram telemetry checks for clean copy. r=pbz,anti-tracking-reviewers
Depends on D191339

Differential Revision: https://phabricator.services.mozilla.com/D189175
2023-10-31 01:58:20 +00:00
Drew Willcoxon
a10a5ff60a Bug 1861540 - Part 2: Update tests to use the local remote settings server. r=daisuke
This modifies tests to use the server. There are a few important points to call
out:

This means tests are now using the real Rust component, and we need to make sure
the test RS data is valid and matches what Rust expects. For example, I had to
add `icon` properties to suggestions and set the `advertiser` to "Wikipedia" for
non-sponsored suggestions. Otherwise Rust hits an error on ingest. I also
removed some test cases because they tested behaviors that are impossible with
Rust, for example Pocket keywords that are duplicated in the high- and
low-confidence arrays.

We need to be careful to wait until Suggest is done syncing from remote settings
regardless of whether it's using the JS or Rust backend. I added a way to force
the backends to sync. That way, tests can force a sync, wait for it to finish,
and be sure that all sync activity is done.

A common pattern in tests is to call `ensureQuickSuggestInit()` and then set
Suggest-related prefs (or vice versa). This is a little problematic because both
`ensureQuickSuggestInit()` and setting prefs can cause Suggest to start a sync.
It's more problematic now that we're not mocking remote settings or Rust. So I
combined the two by adding a `prefs` param to `ensureQuickSuggestInit()`. That
way, tests can be sure that all syncing is done once that function returns.

Depends on D192037, D192124

Differential Revision: https://phabricator.services.mozilla.com/D192038
2023-10-30 23:33:12 +00:00
Drew Willcoxon
3709e4e407 Bug 1861540 - Part 1: Implement a remote settings server for tests. r=daisuke
This implements a remote settings server for tests. Unfortunately there doesn't
seem to be a general-purpose implementation already in the tree.

In part 2, I'll update tests so they use it.

Differential Revision: https://phabricator.services.mozilla.com/D192037
2023-10-30 23:33:11 +00:00