Commit graph

37874 commits

Author SHA1 Message Date
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
Cosmin Sabou
9c531a8d10 Backed out 2 changesets (bug 1863867) for causing archBits related newtab failures. CLOSED TREE
Backed out changeset fbcb2af38cda (bug 1863867)
Backed out changeset 5ea397ecbbf8 (bug 1863867)
2023-11-28 07:53:16 +02:00
Paul Bone
68def50596 Bug 1863867 - Add support for targeting experiments based on memory r=barret
Differential Revision: https://phabricator.services.mozilla.com/D193160
2023-11-28 05:07:20 +00:00
Paul Bone
d59a2173c9 Bug 1863867 - Add expriment targeting based on archiecture bits r=barret
Differential Revision: https://phabricator.services.mozilla.com/D193159
2023-11-28 05:07:19 +00:00
Niklas Baumgardner
9c82fcdb22 Bug 1864889 - Only allow left mouse button on screenshots overlay. r=sfoster
Differential Revision: https://phabricator.services.mozilla.com/D193680
2023-11-28 02:33:17 +00:00
Mike Conley
fa79cbff6d Bug 1863400 - Part 9: Hack the newtab try-runner.js script to also run about:welcome tests and coverage. r=pdahiya,ahal,dmose
This is fairly gross, but basically it uses some directory manipulation to run the
bundling steps and karma tests for both browser/components/newtab and
browser/components/aboutwelcome.

It then also takes the lcov.info files generated by both test runs and
concatenates them together before zipping them up.

Bug 1866170 covers creating a try-runner.js script for
browser/components/aboutwelcome.

Differential Revision: https://phabricator.services.mozilla.com/D194443
2023-11-28 01:37:39 +00:00
Mike Conley
37abcde317 Bug 1863400 - Part 8: Update stylelint, eslint, prettierignore, hgignore, gitignore and Generated.txt rules for aboutwelcome to match newtab. r=pdahiya
This also re-runs npm install on browser/components/aboutwelcome to make sure everything in
package-lock.json is up-to-date.

Depends on D193122

Differential Revision: https://phabricator.services.mozilla.com/D193228
2023-11-28 01:37:38 +00:00
Mike Conley
8f2ec8be56 Bug 1863400 - Part 7: Move about:welcome Karma unit tests to browser/components/aboutwelcome folder. r=pdahiya
Depends on D193121

Differential Revision: https://phabricator.services.mozilla.com/D193122
2023-11-28 01:37:38 +00:00
Mike Conley
b443310b40 Bug 1863400 - Part 6: Perform bundling within browser/components/aboutwelcome folder. r=pdahiya
Depends on D193120

Differential Revision: https://phabricator.services.mozilla.com/D193121
2023-11-28 01:37:37 +00:00
Mike Conley
7404423a13 Bug 1863400 - Part 5: Move bundled about:welcome components into browser/components/aboutwelcome folder. r=pdahiya,aminomancer
Depends on D193119

Differential Revision: https://phabricator.services.mozilla.com/D193120
2023-11-28 01:37:37 +00:00
Mike Conley
61072f8c28 Bug 1863400 - Part 4: Move static about:welcome content into browser/components/aboutwelcome folder. r=pdahiya,desktop-theme-reviewers,dao
Depends on D193118

Differential Revision: https://phabricator.services.mozilla.com/D193119
2023-11-28 01:37:36 +00:00
Mike Conley
2fc6f09a05 Bug 1863400 - Part 3: Move some about:welcome modules into browser/components/aboutwelcome folder. r=pdahiya
Depends on D193117

Differential Revision: https://phabricator.services.mozilla.com/D193118
2023-11-28 01:37:36 +00:00
Mike Conley
ba555c99b7 Bug 1863400 - Part 2: Move AboutWelcome parent and child JSWindowActors to browser/components/aboutwelcome folder. r=pdahiya
Depends on D193116

Differential Revision: https://phabricator.services.mozilla.com/D193117
2023-11-28 01:37:35 +00:00
Mike Conley
7faaf77125 Bug 1863400 - Part 1: Move about:welcome mochitest-browser tests to browser/components/aboutwelcome folder. r=pdahiya,Gijs
This clones many of the ESLint rules from browser/components/newtab over as well.

Differential Revision: https://phabricator.services.mozilla.com/D193116
2023-11-28 01:37:35 +00:00
Gijs Kruitbosch
4ad9779769 Bug 1866503 - closing menupopups/panels inside panelviews in temporary PanelUI panels should not close those panels, r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D194632
2023-11-27 23:27:36 +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
Luca Greco
e7c75ccf37 Bug 1866565 - Do not open an about:addons tab when opening an abuse report form in a tab from a toolbar button context menu. r=willdurand
Differential Revision: https://phabricator.services.mozilla.com/D194648
2023-11-27 22:03:16 +00:00
Katherine Patenio
b244491004 Bug 1865822 - adjust unanalyzed product card image for smaller sidebar width. r=shopping-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D194561
2023-11-27 21:24:40 +00:00
Greg Tatum
24775179e6 Bug 1863335 - Make the simd detection synchronous; r=nordzilla,geckoview-reviewers,owlish,translations-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D192701
2023-11-27 18:02:17 +00:00
Itiel
867ac130fa Bug 1865827 - Make the Report Broken Site panel more similar to other panels, and simplify some CSS r=Gijs,twisniewski,desktop-theme-reviewers,emilio
Differential Revision: https://phabricator.services.mozilla.com/D194416
2023-11-27 17:13:56 +00:00
Otto Länd
f692f4b888 Bug 1860668: apply code formatting via Lando
# ignore-this-changeset
2023-11-27 16:45:31 +00:00
Mike Conley
674a57e18e Bug 1860668 - Convert ActivityStreamPrefs from a JSM to an ESM. r=thecount
Depends on D193489

Differential Revision: https://phabricator.services.mozilla.com/D193490
2023-11-27 16:42:20 +00:00
Mike Conley
db89203526 Bug 1860668 - Adjust Istanbul coverage thresholds for Store.jsm and TopSitesFeed.jsm. r=thecount
These are now tested via xpcshell, and their coverage is no longer reported
up through Istanbul.

Depends on D193488

Differential Revision: https://phabricator.services.mozilla.com/D193489
2023-11-27 16:42:20 +00:00
Mike Conley
9fd4e217d0 Bug 1860668 - Remove TopStoriesFeed.test.js. r=thecount
This feed is no longer in use by the main distribution of Firefox, and we're
not doing manual QA on it nor changing it. It's blocking our ability to migrate
to ESMs, so we're removing the test altogether. Someday soon, we can hopefully
remove TopStoriesFeed.jsm itself.

Depends on D193473

Differential Revision: https://phabricator.services.mozilla.com/D193488
2023-11-27 16:42:20 +00:00
Mike Conley
4e80f3827e Bug 1860668 - Convert TopSitesFeed.test.js into an xpcshell test. r=thecount
This is a handwritten conversion of the TopSitesFeed.test.js tests to
xpcshell. Along the way, some of the tests have been dropped - specifically,
tests for pseudoprivate methods on TopSitesFeed that start with `_`.

The only exception is the Contile integration tests that call
._contile._fetchSites, as those seem fairly important to retain coverage for.

Depends on D192630

Differential Revision: https://phabricator.services.mozilla.com/D193473
2023-11-27 16:42:19 +00:00
Mike Conley
32aacbebb4 Bug 1860668 - Convert Store.test.js to an xpcshell test. r=thecount
Differential Revision: https://phabricator.services.mozilla.com/D192630
2023-11-27 16:42:19 +00:00
Emilio Cobos Álvarez
f6e244a581 Bug 1865346 - Fix updater deck downloading state alignment. r=Gijs,settings-reviewers,desktop-theme-reviewers,dao
This is the only element in the deck which has plain inlines inside.
Make them a block, which is more similar to what the about dialog does
too, anyways.

Differential Revision: https://phabricator.services.mozilla.com/D194604
2023-11-27 14:39:50 +00:00
Iulian Moraru
097ac43ad8 Backed out changeset 49b89e35b5f5 (bug 1866503) for causing multiple bc failures related to panelUI. CLOSED TREE 2023-11-27 15:39:13 +02:00
Gijs Kruitbosch
642f020a6e Bug 1866503 - closing menupopups/panels inside panelviews in temporary PanelUI panels should not close those panels, r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D194632
2023-11-27 12:14:03 +00:00
Luca Greco
2985cf7b0a Bug 1863307 - Adapt mochitest-browser tests covering the report context menu item to run with amoFormEnabled true/false. r=willdurand
Differential Revision: https://phabricator.services.mozilla.com/D194707
2023-11-27 11:20:09 +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
Nikki Sharpley
17d1423a14 Bug 1836474 - added tests for the fxview-category-navigation component r=fxview-reviewers,kcochrane,sfoster
The new side component `fxview-category-navigation` required tests after being implemented in [[https://bugzilla.mozilla.org/show_bug.cgi?id=1832668 | Bug 1832668]]
- added tests to verify clicking each `fxview-category-button` navigates to the correct view/page
- added tests to verify keyboard navigation to each `fxview-category-button` navigates to the correct view/page
- added tests to verify direct navigation updates the category from the hash accordibly

Differential Revision: https://phabricator.services.mozilla.com/D193579
2023-11-24 21:11:53 +00:00
Vinny Diehl
18847b7aa0 Bug 1831482 - Add ellipsis to "Forget About This Site" r=mak,fluent-reviewers,places-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D194208
2023-11-24 17:33:02 +00:00
Ben Hearsum
3a4715ec8e Bug 1862724: remove nimbus controls for macOS attribution. r=nalexander
The pref is being kept for now, to make it easy for QA to verify dynamic attribution when it is ready.

Depends on D192628

Differential Revision: https://phabricator.services.mozilla.com/D193799
2023-11-24 15:15:02 +00:00
Ben Hearsum
26cc2fc1f0 Bug 1862768: move mac attribution cache to a new file r=nalexander
While investigating why initial macOS attribution data had a lower attribution rate than expected I realized that one reason why this may be the case is because we're using the same file as a cache for it. This means that even if a user has paved over with a fresh install, we will pick up the previous attribution data (even if it was null).

While doing this, I think we should also accommodate having separate attribution data per channel, which should keep the data cleaner. Release, Beta, and ESR use `Firefox.app`, which makes the likelyhood of a paveover with a different channel reasonably high.

Differential Revision: https://phabricator.services.mozilla.com/D192628
2023-11-24 15:15:02 +00:00
Jonathan Watt
15c1a58822 Bug 1866011 p2. Rename nsIDocShell.contentViewer. r=emilio,credential-management-reviewers,devtools-reviewers,sgalich
Differential Revision: https://phabricator.services.mozilla.com/D194370
2023-11-24 09:10:52 +00:00
Katherine Patenio
6375f0412c Bug 1858762 - add animation on sidebar expand/collapse r=desktop-theme-reviewers,shopping-reviewers,dao,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D192903
2023-11-24 05:59:25 +00:00
Thomas Wisniewski
c142f79117 Bug 1865827 - add tests to ensure the back button appears and functions appropriately for Report Broken Site popups; r=Gijs,desktop-theme-reviewers,emilio
Differential Revision: https://phabricator.services.mozilla.com/D194398
2023-11-24 00:31:47 +00:00
Mark Banner
aec5efee92 Bug 1866029 - Remove unnecessary parameter to PlacesTreeView._getNewRowForRemovedNode. r=places-reviewers,daisuke
Differential Revision: https://phabricator.services.mozilla.com/D194373
2023-11-23 23:48:04 +00:00
Norisz Fay
ec5f0ad734 Backed out changeset cad4a7cf7a1b (bug 1858762) for causing bc failures on browser_shopping_integration.js CLOSED TREE 2023-11-23 22:52:15 +02:00
Katherine Patenio
0d75435c36 Bug 1858762 - add animation on sidebar expand/collapse r=desktop-theme-reviewers,shopping-reviewers,dao,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D192903
2023-11-23 17:46:44 +00:00
Sarah Clements
b8cd7eaa7f Bug 1848459 - add telemetry to count closed tabs lost in session restore r=sfoster,sessionstore-reviewers
* Add histogram to sessionrestore code to count how often and the number of
closed tabs that aren't saved on window close due to no open saveable tabs
* Add test coverage

Differential Revision: https://phabricator.services.mozilla.com/D193055
2023-11-23 13:38:06 +00:00
Sam Foster
2cd97ee94c Bug 1863783 - Ensure fxview page content only listens/observes and renders updates when visible. r=fxview-reviewers,sclements,jsudiaman
* Add a type=page to the top-level ViewPage instances
* Rename viewTabVisibleCallback and viewTabHiddenCallback to view*Callback and call each when selectedness or visiblity changes
* Ensure active view/pages are always properly initialized during page load and category switching
* Add a test to verify no mutations happen when tabs change while firefox view is inactive
* Fix tests to better account for loading and readiness sequence when activating firefox view

Differential Revision: https://phabricator.services.mozilla.com/D193744
2023-11-23 07:57:33 +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