Commit Graph

38984 Commits

Author SHA1 Message Date
Mark Banner
8432a66c33 Bug 1867288 - Load application provided search engine icons from remote settings. r=search-reviewers,mcheang,mconley
Differential Revision: https://phabricator.services.mozilla.com/D204263
2024-03-13 20:25:06 +00:00
mcheang
fe2c92c581 Bug 1885177 - Fix test_settings_persist, browser_rich_suggestions and browser_searchEngine_behaviors with search-config-v2 enabled. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D204529
2024-03-13 20:25:06 +00:00
Fred Chasen
a0c49755c4 Bug 1884995 - Add BackupResource abstract class. r=mconley,backup-reviewers
Adds a `BackupResource` abstract class to be extended by more specific resource handlers and a `BackupResources` module which resources can be registered with.

The BackupResource base includes helpers to get the size of files and directories.

All registed resources will be provided to the `BackupService` constructor for it instantiate them.

Differential Revision: https://phabricator.services.mozilla.com/D203795
2024-03-13 19:08:05 +00:00
Nipun Shukla
b67eacdd99 Bug 1876342 - Added Windows native messaging host registration for Chromium r=mhughes,robwu,nalexander
Differential Revision: https://phabricator.services.mozilla.com/D199587
2024-03-13 19:01:05 +00:00
Nipun Shukla
5c02edf906 Bug 1876344 - Added idle startup task to register native messaging host JSON files on macOS r=mhughes,robwu,mossop
Differential Revision: https://phabricator.services.mozilla.com/D201773
2024-03-13 19:01:04 +00:00
Natalia Csoregi
e0993839dd Backed out changeset ebcab57cf7cd (bug 1883682) for causing newtab failures. CLOSED TREE 2024-03-13 21:19:25 +02:00
Natalia Csoregi
a6b8803582 Backed out changeset d488b0a57d95 (bug 1876173) for causing fxms failures. CLOSED TREE 2024-03-13 21:17:52 +02:00
Jason Prickett
9f76e777a7 Bug 1876173 - Add attribute to allow RDM to be disabled for aboutwelcome spotlight r=omc-reviewers,aminomancer
Differential Revision: https://phabricator.services.mozilla.com/D201902
2024-03-13 18:23:44 +00:00
Barret Rennie
b8d5ffadf3 Bug 1883682 - Migrate saveToPocket feature to use setPref r=thecount
Differential Revision: https://phabricator.services.mozilla.com/D204520
2024-03-13 18:11:30 +00:00
Mark Banner
d534b7b6ee Bug 1885041 - Expand disallowing JSM based imports via ESLint to everything except for devtools. r=arai,omc-reviewers,aminomancer,zombie
Differential Revision: https://phabricator.services.mozilla.com/D204441
2024-03-13 17:38:28 +00:00
negin
1da3c1c675 Bug 1875203 - disable multistage_experimentAPI transitions test case for debug builds r=omc-reviewers,pdahiya
[try run](https://treeherder.mozilla.org/jobs?repo=try&author=nsauermann%40mozilla.com&selectedTaskRun=fqhEAWtySZaqPjLtWUVYWQ.0)

Differential Revision: https://phabricator.services.mozilla.com/D204377
2024-03-13 17:25:42 +00:00
Cristian Tuns
3c0612e620 Backed out changeset c4f4e70ebe00 (bug 1884995) for causing bc failures in browser_all_files_referenced.js CLOSED TREE 2024-03-13 13:42:26 -04:00
Hanna Jones
2ef49ff271 Bug 1828737 - upgrade to Storybook V7 r=reusable-components-reviewers,tgiles
This patch upgrades Storybook to the latest version. Had to do a decent bit of hacking around with our customizations to get them to keep working. Probably the biggest change was we now have to use an [indexer](https://storybook.js.org/docs/api/main-config-indexers) for our markdown stories, and in order to get the information we need we have to do the same transformations that we do in the loader. For that reason I moved a lot of the loader logic out into a utils file. It feels pretty redundant to have the loader and the indexer...but I'm not sure if there's an alternative right now.

Also worth noting - I turned off the auto generated docs in favor of our READMEs, which I added args tables to. We don't have these for all our components yet, so we might want to file bugs to start adding them. If we would prefer to keep those docs pages for now I think I can configure Storybook to keep generating them

Differential Revision: https://phabricator.services.mozilla.com/D197218
2024-03-13 16:22:05 +00:00
Fred Chasen
59e85f6675 Bug 1884995 - Add BackupResource abstract class. r=mconley,backup-reviewers
Adds a `BackupResource` abstract class to be extended by more specific resource handlers and a `BackupResources` module which resources can be registered with.

The BackupResource base includes helpers to get the size of files and directories.

All registed resources will be provided to the `BackupService` constructor for it instantiate them.

Differential Revision: https://phabricator.services.mozilla.com/D203795
2024-03-13 16:02:07 +00:00
Mike Conley
e91e2ed006 Bug 1884407 - Add a probe to measure free disk space on the profile directory storage device. data-review=jhirsch r=fchasen,kpatenio,backup-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D204094
2024-03-13 14:59:34 +00:00
Mark Banner
db1c82325d Bug 1885121 - Fix a few more tests that are broken with search-config-v2 enabled. r=mcheang
Differential Revision: https://phabricator.services.mozilla.com/D204500
2024-03-13 14:51:07 +00:00
Mark Banner
f65518c3c0 Bug 1882577 - Make nsISearchEngine.getIconURL an async function. r=search-reviewers,extension-reviewers,settings-reviewers,robwu,mcheang,mak
Differential Revision: https://phabricator.services.mozilla.com/D203026
2024-03-13 14:51:06 +00:00
Karandeep
9af5d8493e Bug 1880498 - Modify the abandonment event, to also happen in case of a switch tab. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D202238
2024-03-13 14:08:06 +00:00
James Teow
d891b571f2 Bug 1883916 - Add nonAdsLinkQueryParamNames to search-telemetry-schema - r=Standard8
Adds a new property that will be used to extract the intended href to load on SERPs
that contain the actual URL in a query param key not known until they click on the
actual link.

Differential Revision: https://phabricator.services.mozilla.com/D204355
2024-03-13 00:34:56 +00:00
DJ
b258811034 Bug 1884417 - minor style fixes for tab previews. r=desktop-theme-reviewers,emilio
Differential Revision: https://phabricator.services.mozilla.com/D204078
2024-03-12 20:46:59 +00:00
Norisz Fay
013051b63c Backed out changeset fddbc2279422 (bug 1884407) for causing python failures on test_yaml_indices.py CLOSED TREE 2024-03-12 23:45:09 +02:00
Mike Conley
388bba8113 Bug 1884407 - Add a probe to measure free disk space on the profile directory storage device. data-review=jhirsch r=fchasen,kpatenio
Differential Revision: https://phabricator.services.mozilla.com/D204094
2024-03-12 20:23:19 +00:00
Niklas Baumgardner
c300e0b0c4 Bug 1884936 - Make sure there are no gaps in screenshots canvas. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D204367
2024-03-12 19:34:25 +00:00
Niklas Baumgardner
7515009d91 Bug 1884172 - Use x-moz-nativeimage when copying screenshots to clipboard. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D204256
2024-03-12 19:03:33 +00:00
Stanca Serban
fe83932e94 Backed out changeset 1e8ffb360c27 (bug 1884172) for causing OSX mochitests failures in browser_screenshots_test_visible.js. CLOSED TREE 2024-03-12 19:10:04 +02:00
Anna Yeddi
62176e33f3 Bug 1884278 - Add exceptions from a11y_checks for clicks on a not focusable pinned media button on Firefox View. r=kcochrane,fxview-reviewers
The Firefox View tests, i.e. `browser/components/firefoxview/tests/browser/browser_opentabs_pinned_tabs.js:test_mute_unmute_pinned_tab` sends [a click on a pinned mute/unmute control](https://searchfox.org/mozilla-central/rev/b55a24116575b1b6c17f1aa56a0b142d86dfa41c/browser/components/firefoxview/tests/browser/browser_opentabs_pinned_tabs.js#324-325,341-342) that is intentionally made not focusable to follow the existent tab panel behavior.

A keyboard-only user could mute/unmute this pinned tab via the context menu, while we do not want to create an additional, unnecessary tabstop for this control as well. Thus we add an exception from the a11y_checks for this tests via `setEnv` and remove the `fail-if` notation from its test manifest.

Depends on D203987

Differential Revision: https://phabricator.services.mozilla.com/D203988
2024-03-12 14:32:45 +00:00
Anna Yeddi
a19a18f721 Bug 1879447 - Update AccessibilityUtils to support intervening generics between a tab and its tablist in isKeyboardFocusableTabInTablist check. r=Jamie,fxview-reviewers
There are cases in our code base, in the reusable component that is using Lit components, where a tablist includes a tab component wrapper (that has an accessible role `ROLE_TEXT_CONTAINER`) - the `<moz-page-nav-button>` - we want to include this case in the calculation of the tabs within a tablist calculation when checking the tablist's keyboard accessibility.

Differential Revision: https://phabricator.services.mozilla.com/D203987
2024-03-12 14:32:45 +00:00
Niklas Baumgardner
1993607fe7 Bug 1884172 - Use x-moz-nativeimage when copying screenshots to clipboard. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D204256
2024-03-12 14:22:34 +00:00
Mark Banner
12acbf468b Bug 1884181 - Introduce a DefaultEngineDropDown class for search preferences and have EngineStore notify it and EngineView appropriately. r=settings-reviewers,mossop
Differential Revision: https://phabricator.services.mozilla.com/D204024
2024-03-12 13:38:15 +00:00
Mark Banner
2fe70e7c07 Bug 1884181 - Make EngineStore._engines a public property, remove the setter/getter. r=settings-reviewers,mossop
Differential Revision: https://phabricator.services.mozilla.com/D204023
2024-03-12 13:38:14 +00:00
Mark Banner
29f80a5587 Bug 1884181 - Move EngineStore/EngineView functions out of gSearchPane and into the relevant class. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D204022
2024-03-12 13:38:14 +00:00
Mark Banner
7bc3786c4f Bug 1884181 - Rename EngineStore._defaultEngines for better clarity. r=settings-reviewers,mossop
Differential Revision: https://phabricator.services.mozilla.com/D204021
2024-03-12 13:38:14 +00:00
Mark Banner
4960f5682d Bug 1884181 - Avoid calling buildDefaultEngineDropDowns twice when opening preferences. r=settings-reviewers,mossop
Differential Revision: https://phabricator.services.mozilla.com/D204020
2024-03-12 13:38:13 +00:00
Mark Banner
3707c6f50d Bug 1884181 - Change search preferences EngineStore and EngineView to be classes. r=settings-reviewers,mossop
Differential Revision: https://phabricator.services.mozilla.com/D204019
2024-03-12 13:38:13 +00:00
Drew Willcoxon
34f1979f9a Bug 1832912 - Fix failures in urlbar weather tests. r=daisuke
I found several problems:

Problem 1:

`getViewUpdate()` is allowed to be async and `UrlbarView` [awaits it](https://searchfox.org/mozilla-central/rev/a0ebb2a2c286c1d98d7ae93d043f65ed9970108b/browser/components/urlbar/UrlbarView.sys.mjs#2017) even though
the `Weather` implementation is not async. That means the summary text content
will be updated asyncly, so `browser_weather.js` needs to wait for it.

This is the cause of the recent frequent failures.

Problem 2:

This has to do with `add_tasks_with_rust()`. When it disables the Rust backend
and forces sync, the JS backend will sync `Weather` with remote settings. Since
keywords are present in remote settings at that point, `Weather` will then start
fetching. Each task that uses `add_tasks_with_rust()` needs to wait for this
fetch to finish. Otherwise `weather.suggestion` may be null. To fix this, I
added a way for tests to register a setup function that will run each time
`add_tasks_with_rust()` calls an original task.

This is the cause of infrequent failures that go back to at least when Rust was
enabled by default. I think this might be the cause of recent failures in
`test_weather.js` and `test_weather_keywords.js` too so I did the same thing
there.

Problem 3:

`browser_weather.js` sometimes times out in verify mode, so I requested a longer
timeout. It looks like the test finishes, it just takes a long time sometimes.

Problem 4:

`test_weather_keywords.js` sometimes times out in verify mode. This test takes
forever to run, especially now that it uses `add_tasks_with_rust()`. I added a
`skip-if` for verify mode. It's fine to skip verify mode for this test. Once we
remove the JS backend, we can probably remove the `skip-if`. If it still times
out, we could use `requesttimeoutfactor` or split it up.

Differential Revision: https://phabricator.services.mozilla.com/D204138
2024-03-12 03:34:18 +00:00
James Teow
e7c6bac76d Bug 1875287 - Extract urls from query param values in links when required - r=scunnane
Differential Revision: https://phabricator.services.mozilla.com/D201841
2024-03-12 01:31:11 +00:00
Anna Yeddi
3b0b6ca299 Bug 1884180 - Add an exception from a11y_checks for a dragging event in Screenshots. r=niklas
We intentionally turn off this a11y check, because the mouse event that was flagged by the a11y_checks test suite is emitted at the end of the dragging event. Its keyboard accessible alternative is provided and tested elsewhere, therefore this rule check can be ignored by a11y_checks suite.

Differential Revision: https://phabricator.services.mozilla.com/D204296
2024-03-11 23:44:01 +00:00
Sandor Molnar
6b82cd2685 Backed out changeset a24a00e9a529 (bug 1884172) for causing bc failures @ browser/components/screenshots/tests/browser/browser_screenshots_test_full_page.js CLOSED TREE 2024-03-12 01:03:08 +02:00
Jason Prickett
d559850e2d Bug 1882662 - Add checkDefaultBrowser pref check to fox doodle message targeting r=omc-reviewers,aminomancer
Differential Revision: https://phabricator.services.mozilla.com/D204268
2024-03-11 19:42:05 +00:00
Niklas Baumgardner
e98ebac32a Bug 1884471 - Hide about:profilemanager from about:about. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D204254
2024-03-11 18:06:27 +00:00
Max Christian Pohle
cf4cd71f26 Bug 1877500: single click os/fx mailto default, r=mhughes,fluent-reviewers,bolsson
Differential Revision: https://phabricator.services.mozilla.com/D203053
2024-03-11 17:35:51 +00:00
mcheang
e86c953b7b Bug 1870685 - Ensure mochi browser chrome tests pass with search-config-v2 enabled. r=Standard8
Depends on D202637

Differential Revision: https://phabricator.services.mozilla.com/D204133
2024-03-11 17:07:13 +00:00
mcheang
3ccb2b1975 Bug 1870685 - Ensure tests outside of search pass with the new search configuration enabled. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D202637
2024-03-11 17:07:12 +00:00
Nikki Sharpley
1e307b7769 Bug 1884671 - Add directory and pref for the new sidebar foundational work r=fxview-reviewers,sclements
Differential Revision: https://phabricator.services.mozilla.com/D204232
2024-03-11 16:31:09 +00:00
Mark Banner
57d07fefcd Bug 1884623 - Fix documentation warning in browser/components/urlbar/docs/overview.rst.
Differential Revision: https://phabricator.services.mozilla.com/D204264
2024-03-11 16:26:43 +00:00
Niklas Baumgardner
5b22671ddc Bug 1884172 - Use x-moz-nativeimage when copying screenshots to clipboard. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D204256
2024-03-11 16:18:31 +00:00
Mark Banner
afdbce2ec3 Bug 1884623 - Update more jsm references in production code and docs in browser/. r=mossop,extension-reviewers,omc-reviewers,migration-reviewers,robwu,mconley,aminomancer
Differential Revision: https://phabricator.services.mozilla.com/D204182
2024-03-11 15:26:28 +00:00
Mark Banner
3284e4653e Bug 1884623 - Update Enterprise Policy related logging and modules to avoid jsm references. r=mkaply
Differential Revision: https://phabricator.services.mozilla.com/D204181
2024-03-11 15:26:28 +00:00
Mark Banner
0a0c3c6972 Bug 1884623 - Cleanup jsm references in ESLint files. r=mossop,devtools-reviewers,omc-reviewers,ochameau,aminomancer
Differential Revision: https://phabricator.services.mozilla.com/D204180
2024-03-11 15:26:27 +00:00
Javier Rueda
5e40504c38 Bug 1884135 - Button to add exception in Manage DNS-over-HTTPS subdialog is enabled when input box is empty. r=mossop,settings-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D204033
2024-03-11 13:21:37 +00:00