Commit graph

38264 commits

Author SHA1 Message Date
Niklas Baumgardner
10e944bf30 Bug 1872764 - Screenshots should always get events. r=sfoster,emilio
Differential Revision: https://phabricator.services.mozilla.com/D197802
2024-01-12 02:24:43 +00:00
Sandor Molnar
b9b8d7bcd6 Backed out changeset 44d7819ed242 (bug 1849135) for causing bc failures at browser/components/preferences/tests/browser_search_within_preferences_2.js CLOSED TREE 2024-01-12 00:39:50 +02:00
Cosmin Sabou
9f91a3b9cd Backed out changeset 9bcde04da83b (bug 1871067) for causing build bustages. CLOSED TREE 2024-01-12 00:04:42 +02:00
Emily McMinn
e17a4c7d71 Bug 1871067 - Remove Protections Panel info message from Messaging System docs and update schemas r=barret
Differential Revision: https://phabricator.services.mozilla.com/D198207
2024-01-11 21:50:53 +00:00
Ben Hearsum
97b4985a08 Bug 1874177: enable macOS attribution reporting by default r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D198294
2024-01-11 20:39:40 +00:00
negin
b885a6f25d Bug 1873019 - Remove dependency from useEffect in LanguageSwitcher causing infinite re-renders r=omc-reviewers,Mardak,aminomancer
Temporarily remove screenIndex dependency from useEffect which is causing infinite re-renders and ultimately an unresponsive browser (likely because every time filtered screen is changing, it updates [screens as well](https://searchfox.org/mozilla-central/source/browser/components/aboutwelcome/content-src/components/MultiStageAboutWelcome.jsx#206) ). This is a quick fix to get into beta uplift.

Differential Revision: https://phabricator.services.mozilla.com/D198302
2024-01-11 20:29:09 +00:00
Niklas Baumgardner
3126ddf62c Bug 1874014 - Check that screenshots anchor is connected to document. r=sfoster
Differential Revision: https://phabricator.services.mozilla.com/D198199
2024-01-11 18:51:57 +00:00
Hanna Jones
f465027ef4 Bug 1849135 - make about:preferences search work with moz-toggle + custom elements r=settings-reviewers,Gijs
I started hitting search issues with my change in D196494 and with other experiments to use more reusable components in about:preferences. We'll likely have to keep adding new elements to `searchWithinNode`, but changing `textNodeDescendants` to look for text nodes in the shadow DOM seems like a generally helpful change + gets the highlighting working properly.

Differential Revision: https://phabricator.services.mozilla.com/D197120
2024-01-11 15:03:04 +00:00
Anna Yeddi
16775fd283 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
Anna Yeddi
90844b1305 Bug 1873094 - Update the Firefox View Open Tabs test case to send a click on a menuitem itself instead of its container. r=fxview-reviewers,kcochrane
The Firefox View provides a custom menu for Open Tab links. This menu is attempted to be clicked [twice](https://searchfox.org/mozilla-central/rev/6321fb8f7533456a62dfa2aa68ee0477a6c8f693/browser/components/firefoxview/tests/browser/firefoxview-next/browser_opentabs_firefoxview_next.js#134,238) in the test file `browser/components/firefoxview/tests/browser/firefoxview-next/browser_opentabs_firefoxview_next.js`. But since the `<panel-item>` itself has a role of `presentation` and is serving as a container for an accessible `<button role="menuitem">`, the automatic accessibility checks are flagging these clicks as ones on a non-accessible elements. We can update the test case to send a click on a `menuitem` itself to ensure the test is working as expected too, since the keyboard-only users and users of assistive technology would be activating the menuitem.

Since this would allow the a11y_checks to test an actual control and we expect these tests to pass, we need to update the `fail-if` notation in the test manifest to exclude the `panel-item` failure.

Differential Revision: https://phabricator.services.mozilla.com/D197727
2024-01-11 13:38:27 +00:00
Henrik Skupin
5217f294ff Bug 1836727 - [marionette] Fix MARIONETTE_MANIFESTS usage in moz.build files. r=webdriver-reviewers,necko-reviewers,application-update-reviewers,search-reviewers,sessionstore-reviewers,places-reviewers,dom-storage-reviewers,Standard8,jesup,jdescottes,nalexander,sclements,janv
Differential Revision: https://phabricator.services.mozilla.com/D197515
2024-01-11 10:34:29 +00:00
Drew Willcoxon
261dc77768 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
Noemi Erli
e0cc765727 Backed out 4 changesets (bug 1855068, bug 1856412) for causing failures in test_SiteDataManager.js CLOSED TREE
Backed out changeset dbaf2b0da226 (bug 1856412)
Backed out changeset 8d040fd73abf (bug 1856412)
Backed out changeset 645f7ed438fb (bug 1855068)
Backed out changeset be41f5296dec (bug 1855068)
2024-01-11 03:20:27 +02:00
Emily McMinn
b9fbafd3d9 Bug 1863022 - Render message from browser-siteProtections.js, replace messaging system telemetry, and migrate strings r=pdahiya,omc-reviewers,pbz,fluent-reviewers,flod
The protections panel message should show once when the panel is first opened; after that it will be collapsed by default and can be shown again by clicking the "info" button on the panel

Messaging system previously sent the following pings on message show, and when the "learn more" link was clicked:

```
{“message_id”:“PROTECTIONS_PANEL_1",“event”:“IMPRESSION”,“addon_version”:“20231106094018",“locale”:“en-US”,“client_id”:“6fabd2de-3d0a-4b11-be4c-86b0ea1a1144",“browser_session_id”:“4b0f34b1-75ef-4704-907e-18d84e5187c3",“pingType”:“whats-new-panel”}
```
and

```
{“message_id”:“PROTECTIONS_PANEL_1",“event”:“CLICK”,“addon_version”:“20231106094018",“locale”:“en-US”,“client_id”:“6fabd2de-3d0a-4b11-be4c-86b0ea1a1144",“browser_session_id”:“4b0f34b1-75ef-4704-907e-18d84e5187c3",“pingType”:“whats-new-panel”}
```

This patch replaces these pings with 'RecordEvents' telemetry on the `protectionsPopup` object:

```
33153 	security.ui.protectionspopup 	open 	protectionspopup_cfr 	impression 	{"message": "PROTECTIONS_PANEL_1"}
```
and

```
34932 	security.ui.protectionspopup 	click 	protectionspopup_cfr
```

Differential Revision: https://phabricator.services.mozilla.com/D192968
2024-01-10 22:20:05 +00:00
Glenda Leonard
a9e6dfb60b Bug 1862493 - Updated based on revision reviews r=thecount,mconley
Differential Revision: https://phabricator.services.mozilla.com/D198063
2024-01-10 21:32:47 +00:00
Glenda Leonard
3bc7a178ee Bug 1862493 - Updated to account for tile positions r=thecount,mconley
Differential Revision: https://phabricator.services.mozilla.com/D197105
2024-01-10 21:32:46 +00:00
Glenda Leonard
160641663e Bug 1862493 - Added xpcshell tests r=thecount,mconley
Differential Revision: https://phabricator.services.mozilla.com/D197104
2024-01-10 21:32:46 +00:00
Glenda Leonard
1405b598ab Bug 1862493 - add more telemetry to tiles RS-761 r=thecount,mconley
Differential Revision: https://phabricator.services.mozilla.com/D197103
2024-01-10 21:32:46 +00:00
Hanna Jones
2ad28e3831 Bug 1845150 - Update usage of notificationbox in InfoBar r=reusable-components-reviewers,tgiles
There are some tests you can run to see how this looks, but I've also been verifying things locally by running this snippet in the browser toolbox:

```js
const { InfoBar } = ChromeUtils.import(
  "resource://activity-stream/lib/InfoBar.jsm"
);
const { CFRMessageProvider } = ChromeUtils.importESModule(
  "resource://activity-stream/lib/CFRMessageProvider.sys.mjs"
);
let message = (await CFRMessageProvider.getMessages()).find(
	m => m.id === "INFOBAR_ACTION_86"
);
InfoBar.showInfoBarMessage(
    BrowserWindowTracker.getTopWindow().gBrowser.selectedBrowser,
    {
      ...message,
      content: {
        priority: window.gNotificationBox.PRIORITY_WARNING_HIGH,
        ...message.content,
      },
    },
    {}
);
```

Depends on D194312

Differential Revision: https://phabricator.services.mozilla.com/D194313
2024-01-10 18:55:30 +00:00
Hanna Jones
1cd9e53b6b 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
Hanna Jones
614f900ec6 Bug 1845150 - Use moz-message-bar instead of message-bar in notificationbox.js r=webdriver-reviewers,desktop-theme-reviewers,media-playback-reviewers,karlt,whimboo,tgiles,dao,devtools-reviewers
This patch updates the `NotificationMessage` element in `notificationbox.js` so that it extends our newer `moz-message-bar` component instead of the deprecated `message-bar` component. Many of the changes are just dealing with the implications of making things async (so that we can ensure `moz-message-bar.mjs` gets imported). I tried to break out places where I modified related code and tests into separate patches to mitigate some of the review pain here.

This patch solves a longstanding issue where we were loading `in-content/common-shared.css` in the chrome since it gets used by the `message-bar` element. It also makes some small visual changes to our infobars (slight outline, icon colors, adds a bit of spacing).

Differential Revision: https://phabricator.services.mozilla.com/D189872
2024-01-10 18:55:29 +00:00
mcheang
a34314823d Bug 1873788 - Fix bookmark keyword and alias search switching to default engine search when restrict symbols are at the end of the search string. r=mak
This patch does not fix the ? symbol at the end. That fix will be in Bug 1667639.

Differential Revision: https://phabricator.services.mozilla.com/D198102
2024-01-10 18:23:40 +00:00
Mark Banner
0fc84c18e2 Bug 1787278 - Drop babel transpile plugins from newtab and related code. r=aminomancer
Differential Revision: https://phabricator.services.mozilla.com/D197884
2024-01-10 17:39:29 +00:00
Mark Banner
ddaf19c5cf Bug 1873013 - Remove unused react-test-renderer from newtab's node_modules. r=emcminn
Differential Revision: https://phabricator.services.mozilla.com/D197670
2024-01-10 17:39:29 +00:00
Marco Bonardo
84238863a4 Bug 1873914 - Remove PromiseUtils module. r=Standard8,fxview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D198157
2024-01-10 16:34:30 +00:00
Mike Conley
5861c230d5 Bug 1873026 - Hack the newtab try-runner.js script to also run about:asrouter tests and coverage. r=dmose,ahal
Differential Revision: https://phabricator.services.mozilla.com/D197681
2024-01-10 15:53:09 +00:00
Harshit Sohaney
d43cbd3e1d Bug 1856412 - (Part 1) Make all clear history entrypoints point to the new clear history dialog. r=pbz,fluent-reviewers,settings-reviewers,flod,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D192282
2024-01-10 13:15:01 +00:00
Harshit Sohaney
173f01f1b0 Bug 1855068 - (Part 1) Added functionality to get all data sizes by time range. r=pbz,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D190862
2024-01-10 11:47:26 +00:00
Shane Hughes
7a0b25d2c9 Bug 1857995 - Add Feature Callout page to firefox source docs. r=omc-reviewers,negin
Differential Revision: https://phabricator.services.mozilla.com/D191221
2024-01-10 01:38:51 +00:00
Stanca Serban
3a7783c4b5 Backed out changeset f737edc6cd59 (bug 1863022) for causing mochitests failures in browser_protectionsUI.js. CLOSED TREE 2024-01-10 01:49:46 +02:00
Emily McMinn
a240571a59 Bug 1863022 - Render message from browser-siteProtections.js, replace messaging system telemetry, and migrate strings r=pdahiya,omc-reviewers,pbz,fluent-reviewers,flod
The protections panel message should show once when the panel is first opened; after that it will be collapsed by default and can be shown again by clicking the "info" button on the panel

Messaging system previously sent the following pings on message show, and when the "learn more" link was clicked:

```
{“message_id”:“PROTECTIONS_PANEL_1",“event”:“IMPRESSION”,“addon_version”:“20231106094018",“locale”:“en-US”,“client_id”:“6fabd2de-3d0a-4b11-be4c-86b0ea1a1144",“browser_session_id”:“4b0f34b1-75ef-4704-907e-18d84e5187c3",“pingType”:“whats-new-panel”}
```
and

```
{“message_id”:“PROTECTIONS_PANEL_1",“event”:“CLICK”,“addon_version”:“20231106094018",“locale”:“en-US”,“client_id”:“6fabd2de-3d0a-4b11-be4c-86b0ea1a1144",“browser_session_id”:“4b0f34b1-75ef-4704-907e-18d84e5187c3",“pingType”:“whats-new-panel”}
```

This patch replaces these pings with 'RecordEvents' telemetry on the `protectionsPopup` object:

```
33153 	security.ui.protectionspopup 	open 	protectionspopup_cfr 	impression 	{"message": "PROTECTIONS_PANEL_1"}
```
and

```
34932 	security.ui.protectionspopup 	click 	protectionspopup_cfr
```

Differential Revision: https://phabricator.services.mozilla.com/D192968
2024-01-09 22:34:35 +00:00
Jared Hirsch
6468af16a1 Bug 1868602 - Fixes to dedupe shopping surface displayed Glean counts. r=Gijs,tabbrowser-reviewers,mconley
Differential Revision: https://phabricator.services.mozilla.com/D195727
2024-01-09 21:56:37 +00:00
Nicholas Rishel
4e88da9ecc Bug 1873545 - Correct topic to "alertshow" in ASRouter Toast Notification. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D197973
2024-01-09 21:08:36 +00:00
Nikki Sharpley
f26d7471aa Bug 1869833 - Remove all legacy Firefox View files and assets. r=sfoster,fxview-reviewers,extension-reviewers
- removes all old View related files and assets
- removes legacy telemetry
- removes tests related to prefs that have since been removed
- remove `browser_all_files_referenced.js` exceptions added in Bug 1869833

Depends on D196093

Differential Revision: https://phabricator.services.mozilla.com/D196208
2024-01-09 20:52:58 +00:00
Kelly Cochrane
bb600ec34a Bug 1870703 - Resolve intermittent test failure on Windows 11 for virtual-list updates on window resize r=fxview-reviewers,jsudiaman
Differential Revision: https://phabricator.services.mozilla.com/D197820
2024-01-09 20:45:27 +00:00
Ben Hearsum
5e6ef0e003 Bug 1865845: stop caching mac attribution data in a separate file r=nalexander
This is mostly removing code and tests related to reading/writing the cache file on macOS and updating of tests. Aside from that, the most notable part is the change to `setAttributionString` to automatically prepend `__MOZCUSTOM__` when writing an attribution code. This is mostly done to make things simpler and cleaner in the majority of the tests, but seeing as `getAttributionString` is also aware of it, it seems like a generally nicer way to do this.

Differential Revision: https://phabricator.services.mozilla.com/D197204
2024-01-09 20:21:54 +00:00
Ben Hearsum
ce9d6f5d50 Bug 1865845: refactor attribution code to clearly separate out flows for mac, nsis, and msix r=nalexander
This function has been difficult to read for awhile. This patch cleans it up in preparation to adjust it for the removal of the cache file on macOS.

Differential Revision: https://phabricator.services.mozilla.com/D197203
2024-01-09 20:21:54 +00:00
James Teow
ce8decc058 Bug 1872878 - Update search-telemetry-v2 schema with searchPageMatches - r=Standard8
While the new property is essential for matching SERPs, it is required so that the change
can be uplifted this change to other builds and avoid test_search_telemetry_config_validation.js
breaking when search-telemetry-v2.json is updated.

It is probably safer to update the schema on various builds, and only land the code changes
that depend on the update to search-telemetry-v2 on Nightly so that if we encounter an error
in search telemetry, its impact is minimal.

We can always update the schema to include the new property in required when all clients
have an updated search-telemetry-v2 dump.

Differential Revision: https://phabricator.services.mozilla.com/D197746
2024-01-09 20:05:58 +00:00
Narcis Beleuzu
b7ba2ef9c7 Backed out 3 changesets (bug 1865845) for bc failures on browser_AttributionCode_telemetry.js . CLOSED TREE
Backed out changeset 4f799b89c628 (bug 1865845)
Backed out changeset e825fb03ff56 (bug 1865845)
Backed out changeset 9a8c396a22db (bug 1865845)
2024-01-09 21:26:48 +02:00
Itiel
630b1a8f1f Bug 1869574 - Refactor the headerText setter to cater for more panelview needs r=twisniewski,Gijs,translations-reviewers
This introduces `mainview-with-header` attribute for panels that their
mainview should have a header (no matter where they appear); and
`has-custom-header` for panels that their panelview (not necessarily a
mainview) has a custom design for a header, one that headerText setter
can't anticipate in advance (due to UX needs that may arise).
If one of these attributes are set on the panel, this signals headerText
that the panelview's header should NOT be removed and that the markup
should be respected.

Differential Revision: https://phabricator.services.mozilla.com/D196671
2024-01-09 17:01:25 +00:00
Jonathan Sudiaman
aeee249a4b Bug 1867828 - Find in Page shortcut should focus on search input in Firefox View r=fxview-reviewers,sclements
Disable Find in Page in Firefox View, intercept `Ctrl + F` event to focus the search textbox.

https://treeherder.mozilla.org/#/jobs?repo=try&revision=42e21485cf747dca611eb63c453438c8a3d13206

Differential Revision: https://phabricator.services.mozilla.com/D197790
2024-01-09 15:38:15 +00:00
Ben Hearsum
352258de42 Bug 1865845: stop caching mac attribution data in a separate file r=nalexander
This is mostly removing code and tests related to reading/writing the cache file on macOS and updating of tests. Aside from that, the most notable part is the change to `setAttributionString` to automatically prepend `__MOZCUSTOM__` when writing an attribution code. This is mostly done to make things simpler and cleaner in the majority of the tests, but seeing as `getAttributionString` is also aware of it, it seems like a generally nicer way to do this.

Differential Revision: https://phabricator.services.mozilla.com/D197204
2024-01-09 15:38:04 +00:00
Ben Hearsum
8d7a597741 Bug 1865845: refactor attribution code to clearly separate out flows for mac, nsis, and msix r=nalexander
This function has been difficult to read for awhile. This patch cleans it up in preparation to adjust it for the removal of the cache file on macOS.

Differential Revision: https://phabricator.services.mozilla.com/D197203
2024-01-09 15:38:03 +00:00
Greg Stoll
fd1c81349d Bug 1871187: prompt() goes through content analysis r=Gijs
Adds another text-paste case to content analysis, this time for the
prompt() command, which is not covered by the other clipboard cases
in bug 1871135.

Differential Revision: https://phabricator.services.mozilla.com/D197018
2024-01-09 13:53:31 +00:00
Mike Hommey
6895e6b14c Bug 1639461 - Remove last(?) remnants of the -remote command line flag. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D197315
2024-01-09 02:40:04 +00:00
Emilio Cobos Álvarez
ea8818c428 Bug 1869796 - Remove some unused chrome flags. r=smaug,sessionstore-reviewers,dao
And rename CHROME_WINDOW_MIN to CHROME_WINDOW_MINIMIZE, for parallel
with the resize flag.

Differential Revision: https://phabricator.services.mozilla.com/D197869
2024-01-09 00:36:09 +00:00
Mark Banner
3db3d74285 Bug 1873464 - For search related configurations, only validate additional properties on nightly builds. r=search-reviewers,mcheang
Differential Revision: https://phabricator.services.mozilla.com/D197920
2024-01-08 18:01:58 +00:00
Tom Schuster
346cecd51c Bug 1872839 - Remove aMimeTypeGuess parameter from nsIContentPolicy. r=freddyb
Differential Revision: https://phabricator.services.mozilla.com/D197794
2024-01-08 15:47:42 +00:00
Valentin Gosu
ca044aa125 Bug 1859608 - Change the user's DoH region when that changes r=necko-reviewers,sunil,kershaw
The DoHConfig now listens for region change notification and
saves the new region in a pref. On the next initialization of
the DoH config we will use the saved pref to update the doh
region even if the pref was already set.

This should also work for testing (manually setting the value of the
pref) as long as no region changes happen.

Differential Revision: https://phabricator.services.mozilla.com/D195023
2024-01-08 13:11:10 +00:00
Mark Banner
c6fa6ec934 Bug 1873010 - Remove chai-json-schema module from aboutwelcome/asrouter/newtab test code as it is not used. r=aminomancer
Differential Revision: https://phabricator.services.mozilla.com/D197669
2024-01-07 22:10:13 +00:00