Commit Graph

410 Commits

Author SHA1 Message Date
kpatenio
db36d4dd8e Bug 1927964 - Improve responsive design of integrated RC. r=shopping-reviewers,rking
Differential Revision: https://phabricator.services.mozilla.com/D229816
2025-01-10 20:36:05 +00:00
Fred Chasen
b7006f76c9 Bug 1939621 - Update tests to run with both ShoppingSidebar and ReviewChecker actors. r=shopping-reviewers,rking,kpatenio
- Adds a `browser_reviewchecker.toml` to run tests specific to the Review Checker sidebar and common "about:shoppingsidebar" UI tests with the ReviewChecker actors enabled.
- Prefaces Review Checker test filenames with `browser_reviewchecker_`.
- Only runs shopping sidebar specific tests in `browser.toml` and prefaces those filenames with `browser_shoppingsidebar_`.
- Splits out parts of test files that are specific only to one actor.
- Renames all common tests to `browser_shopping_`
- Updates `ReviewCheckerParent` to not return a url on `about:shoppingsidebar` so it is not handled valid non-product page, replicating the behavior of the current sidebar tests.
- Adds versions of sidebar test helper methods that work with the new sidebar.

Differential Revision: https://phabricator.services.mozilla.com/D233121
2025-01-08 23:15:08 +00:00
Punam Dahiya
cf58fbd5e3 Bug 1618001 - Move React vendored libraries to the toolkit to prevent multiple instances r=sylvestre,omc-reviewers,home-newtab-reviewers,frontend-codestyle-reviewers,firefox-ai-ml-reviewers,aminomancer,mconley
Differential Revision: https://phabricator.services.mozilla.com/D232431
2025-01-08 21:08:16 +00:00
Rebecca King
be7760f41b Bug 1938206 - Hide shopping-header when sidebar.revamp is false to prevent double Review Checker header - r=shopping-reviewers,fchasen
Differential Revision: https://phabricator.services.mozilla.com/D232691
2025-01-06 15:21:13 +00:00
kpatenio
0be81cc64a Bug 1916012 - Add empty state UI for sidebar migration. r=shopping-reviewers,fluent-reviewers,fchasen
- Adds new illustrations and copy to RC sidebar panel for non PDPs, which will act as empty states
- To test the feature, set browser.shopping.experience2023.integratedSidebar=true, browser.shopping.experience2023.shoppingSidebar=false
- This is for users already opted-in to RC, so browser.shopping.experience2023.optedIn=true. See D226075 for the non-opted in versions of the empty states.
- Adds a new ShoppingProduct static method called getSupportedDomains, which allows us to read supported domains from our ProductConfig and display a list of domains in the empty state
- Adds browser tests for empty states and ShoppingProduct.getSupportedDomains
- Figma: https://www.figma.com/design/GnCtw7DmPtlSEIfjatHtSI/Review-Checker-in-sidebar-migration?node-id=9832-47109&node-type=section&m=dev

Differential Revision: https://phabricator.services.mozilla.com/D222891
2024-12-20 09:28:38 +00:00
Cristian Tuns
c553010a69 Backed out changeset 5a226549351f (bug 1916012) for causing bc failures in browser_empty_states.js CLOSED TREE 2024-12-19 22:09:09 -05:00
kpatenio
0a6089ab0b Bug 1916012 - Add empty state UI for sidebar migration. r=shopping-reviewers,fluent-reviewers,fchasen
- Adds new illustrations and copy to RC sidebar panel for non PDPs, which will act as empty states
- To test the feature, set browser.shopping.experience2023.integratedSidebar=true, browser.shopping.experience2023.shoppingSidebar=false
- This is for users already opted-in to RC, so browser.shopping.experience2023.optedIn=true. See D226075 for the non-opted in versions of the empty states.
- Adds a new ShoppingProduct static method called getSupportedDomains, which allows us to read supported domains from our ProductConfig and display a list of domains in the empty state
- Adds browser tests for empty states and ShoppingProduct.getSupportedDomains
- Figma: https://www.figma.com/design/GnCtw7DmPtlSEIfjatHtSI/Review-Checker-in-sidebar-migration?node-id=9832-47109&node-type=section&m=dev

Differential Revision: https://phabricator.services.mozilla.com/D222891
2024-12-20 01:55:56 +00:00
Fred Chasen
d954fb32de Bug 1920832 - Add isSupportedSiteURL check and pass isProductPage and isSupportedSite to shopping content in updates. r=shopping-reviewers,kpatenio
* Adds a `isSupportedSiteURL` method to the `ShoppingProduct` to determine if a URL is on a supported shopping site.
* Passes isProductPage and isSupportedSite booleans to the shopping container to render the empty state UIs
* Switches to checking if shopping container pref boolean properties is not nullish before setting in `_update`. This cleaned up the update objects in `ShoppingSidebarChild` and made adding the new empty states simpler.

Differential Revision: https://phabricator.services.mozilla.com/D227752
2024-12-19 08:26:22 +00:00
Fred Chasen
0f35a787ae Bug 1921576 - Fix close button for Review Checker sidebar. r=shopping-reviewers,firefox-desktop-core-reviewers ,kpatenio
* Sends a `CloseShoppingSidebar` message on clicking the shopping header close button to allow the `ReviewCheckerParent` to close the sidebar.

Differential Revision: https://phabricator.services.mozilla.com/D228281
2024-12-18 21:49:02 +00:00
Norisz Fay
31df192146 Backed out changeset e78abc802629 (bug 1920832) for causing bc failures on browser_integrated_sidebar.js CLOSED TREE 2024-12-18 06:03:23 +02:00
Fred Chasen
1cdd344b22 Bug 1920832 - Add isSupportedSiteURL check and pass isProductPage and isSupportedSite to shopping content in updates. r=shopping-reviewers,kpatenio
* Adds a `isSupportedSiteURL` method to the `ShoppingProduct` to determine if a URL is on a supported shopping site.
* Passes isProductPage and isSupportedSite booleans to the shopping container to render the empty state UIs
* Switches to checking if shopping container pref boolean properties is not nullish before setting in `_update`. This cleaned up the update objects in `ShoppingSidebarChild` and made adding the new empty states simpler.

Differential Revision: https://phabricator.services.mozilla.com/D227752
2024-12-17 23:05:12 +00:00
Hanna Jones
3efce0d3eb Bug 1917305 - Part 5: Update shopping toggles r=shopping-reviewers,kpatenio
Differential Revision: https://phabricator.services.mozilla.com/D226723
2024-12-12 18:27:15 +00:00
Fred Chasen
2a40aed615 Bug 1916547 - Part 1: Render Review Checker in the new sidebar. r=shopping-reviewers,firefox-desktop-core-reviewers ,sidebar-reviewers,sclements,mossop,kpatenio
- Adds a remote content browser to contain `about:shoppingsidebar` in `review-checker.xhtml` and update the Review Checker sidebar to use that wrapper document.
- Adds ReviewChecker actors for the sidebar Review Checker panel.
- ReviewCheckerParent is a simplified version of the ShoppingSidebarParent as it does not need to handle the state of the sidebar opening or closing.
- ReviewCheckerChild is just extends ShoppingSidebarChild for now, though it will need to be separate in the future.
- Adds a browser.shopping.experience2023.shoppingSidebar boolean pref to disable ShoppingSidebar actors when they are not needed.
- Fixes `AbortError` error handling when the outer sidebar browser is removed.

Note that any auto-opening or closing behavior will need to be added afterwards, as these actors are not around to check product urls when the sidebar is closed.

Differential Revision: https://phabricator.services.mozilla.com/D222840
2024-12-12 01:24:20 +00:00
Butkovits Atila
cd16376f28 Backed out 6 changesets (bug 1917305) for causing failure at browser_parsable_css.js. CLOSED TREE
Backed out changeset a11742cbdf6c (bug 1917305)
Backed out changeset f148cb47b84f (bug 1917305)
Backed out changeset 8c3b26eb05e7 (bug 1917305)
Backed out changeset 0b20c8187edc (bug 1917305)
Backed out changeset d0749e2b61fc (bug 1917305)
Backed out changeset f538e9697cb3 (bug 1917305)
2024-12-11 19:37:27 +02:00
Hanna Jones
f967989566 Bug 1917305 - Part 5: Update shopping toggles r=shopping-reviewers,kpatenio
Differential Revision: https://phabricator.services.mozilla.com/D226723
2024-12-11 15:52:53 +00:00
Sandor Molnar
ab8c870dbe Backed out 6 changesets (bug 1917305) for causing bc failures @ browser_parsable_css.js CLOSED TREE
Backed out changeset 54eeb575b705 (bug 1917305)
Backed out changeset ea78740bd5b1 (bug 1917305)
Backed out changeset a1fe92460a5d (bug 1917305)
Backed out changeset 5b6f08a5fd6c (bug 1917305)
Backed out changeset 488458777db0 (bug 1917305)
Backed out changeset ab9d3dcb9ac7 (bug 1917305)
2024-12-11 01:49:50 +02:00
Hanna Jones
bace9afcce Bug 1917305 - Part 5: Update shopping toggles r=shopping-reviewers,kpatenio
Differential Revision: https://phabricator.services.mozilla.com/D226723
2024-12-10 21:01:05 +00:00
Rebecca King
a9f68b4543 Bug 1901615 - Remove ads exposure counter from telemetry metrics - r=shopping-reviewers,fchasen
Differential Revision: https://phabricator.services.mozilla.com/D231601
2024-12-10 15:48:09 +00:00
Logan Rosen
d24c9d9ff4 Bug 1857834 - auto-formatting with Prettier v3 r=linter-reviewers,webdriver-reviewers,perftest-reviewers,search-reviewers,devtools-reviewers,sync-reviewers,reusable-components-reviewers,profiler-reviewers,dom-storage-reviewers,android-reviewers,firefox-ai-ml-reviewers,hjones,mcheang,mstange,sparky,janv,nchevobbe,tarek,Standard8,markh
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D230598
2024-11-29 15:18:25 +00:00
Sandor Molnar
7d50bb6e2e Backed out changeset c4369fa6e979 (bug 1921471) for causing bc failures @ browser_sidebar_remote.js & browser_unavailable_product.js CLOSED TREE 2024-11-26 00:30:14 +02:00
Fred Chasen
5c68a50632 Bug 1921471 - Use content process to display sidebar contents when appropriate. r=places-reviewers,sidebar-reviewers,mossop,firefox-desktop-core-reviewers ,jsudiaman
* Adds a `remoteType` attribute to the config when registering a sidebar to opt-in to using a remote content process when displaying that sidebar panel.
* Moves loading URLs into a `SidebarController._loadUrl` method, which can be passed a remoteType if the sidebar contents should be displayed in a remote content process. If needed it will replace the sidebar browser element with a remote or non-remote browser to match the remoteType passed.
* Adds browser load listeners methods, a `SidebarController._hasLoaded` promise for non-remote loading and a `SidebarController._hasProgressStopped` promise if the browser is remote.
* Adds a setter for `SidebarController.browser`.
* Adds a `shopping-sidebar` message manager group to avoid actor conflict.

Differential Revision: https://phabricator.services.mozilla.com/D223961
2024-11-25 18:22:14 +00:00
Adi
a1f2bdd9ab Backed out changeset 04f7f20bf82e (bug 1921471) for causing bc failures @browser_syncedtabs_sidebar.js. 2024-11-21 21:25:07 +02:00
Fred Chasen
8dcd4eee5d Bug 1921471 - Use content process to display sidebar contents when appropriate. r=places-reviewers,sidebar-reviewers,mossop,firefox-desktop-core-reviewers ,jsudiaman
* Adds a `remoteType` attribute to the config when registering a sidebar to opt-in to using a remote content process when displaying that sidebar panel.
* Moves loading URLs into a `SidebarController._loadUrl` method, which can be passed a remoteType if the sidebar contents should be displayed in a remote content process. If needed it will replace the sidebar browser element with a remote or non-remote browser to match the remoteType passed.
* Adds browser load listeners methods, a `SidebarController._hasLoaded` promise for non-remote loading and a `SidebarController._hasProgressStopped` promise if the browser is remote.
* Adds a setter for `SidebarController.browser`.
* Adds a `shopping-sidebar` message manager group to avoid actor conflict.

Differential Revision: https://phabricator.services.mozilla.com/D223961
2024-11-21 17:36:56 +00:00
Spencer Poor
9e4c37fcd1 Bug 1920145 - [moz-message] Modified moz-message property definitions, fluent set to true. r=hjones,settings-reviewers,credential-management-reviewers,reusable-components-reviewers,translations-reviewers,backup-reviewers,mtigley,fxview-reviewers,sidebar-reviewers,mossop,mconley
Bug 1920145 - [moz-message] Further cleanup of moz-message attribute declarations, edited docs. r=hjones

Bug 1920145 - [moz-message] Edited additional README that mentions relevant header declarations. r=hjones

Bug 1920145 - [moz-message] Fixed linter errors stemming from changes. r=hjones

Bug 1920145 - [moz-message] Reverted accidental removals of necessary data-l10n-attrs references. r=hjones

Bug 1920145 - [moz-message] Further reverted other removals of data-l10n-attrs references in components that aren't moz-message. r=hjones

Bug 1920145 - [moz-message] Cleaned up a couple more references to datal10nAttrs in NotificationMessageBar.mjs. r=hjones

Differential Revision: https://phabricator.services.mozilla.com/D226891
2024-11-15 19:21:06 +00:00
Stanca Serban
005c9bd515 Backed out changeset 3a50257f49c6 (bug 1902667) for causing mochitests fai;ures in browser_glean_sidebar.js/ CLOSED TREE 2024-11-05 03:33:45 +02:00
Kelly Cochrane
15189eebf1 Bug 1902667 - Add new trigger and callout for sidebar survey r=sidebar-reviewers,mviar,omc-reviewers,jsudiaman
Differential Revision: https://phabricator.services.mozilla.com/D226831
2024-11-04 21:31:17 +00:00
kpatenio
41ae99add2 Bug 1922613 - renew shopping probes expiring in 134. r=shopping-reviewers,jhirsch
Differential Revision: https://phabricator.services.mozilla.com/D225728
2024-10-16 16:58:19 +00:00
Tom Schuster
bbae806c40 Bug 1912403 - Remove inline click handlers from navigator-toolbox that react to tab navigation. r=pip-reviewers,tabbrowser-reviewers,mconley,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D220817
2024-10-02 07:58:41 +00:00
Fred Chasen
a31102ffc2 Bug 1919166 - Prevent registering review checker sidebar panel for private windows. r=shopping-reviewers,sidebar-reviewers,kpatenio,nsharpley
Differential Revision: https://phabricator.services.mozilla.com/D222380
2024-09-24 22:00:18 +00:00
Fred Chasen
89e6d0b8cb Bug 1916017 - Add Review Checker as a sidebar tool. r=shopping-reviewers,fluent-reviewers,desktop-theme-reviewers,sidebar-reviewers,sclements,kpatenio
- Registers the a new review checker sidebar using `registerPrefSidebar` that will display if  `browser.shopping.experience2023.integratedSidebar` is enabled.
- Hides any open review checker sidebars if the pref changes.
- Adds `reviewchecker` to the sidebar revamp tools pref.

Note: this only adds the sidebar tool, it will not load anything as the actors aren't setup yet.

Differential Revision: https://phabricator.services.mozilla.com/D221362
2024-09-19 17:07:29 +00:00
kpatenio
f4e025a957 Bug 1916016 - update opt-in card for migration to Firefox sidebar r=fluent-reviewers,omc-reviewers,shopping-reviewers,fchasen,pdahiya
- Updated `AboutWelcomeChild.sys.mjs` to a new opt-in card `FS_OPT_IN_SIDEBAR_VARIANT` that is rendered only if `browser.shopping.experience2023.integratedSidebar`
- Updated styling for the integrated RC in `aboutwelcome.css`
- Added non-exposed strings to `shopping.ftl`
- Updated tests to work for both integrated and non-integrated versions

Differential Revision: https://phabricator.services.mozilla.com/D221396
2024-09-18 20:51:03 +00:00
Sandor Molnar
446bc20f4d Backed out changeset cf3a30d74dec (bug 1916016) for causing xpc failures @ test_sorted_alphabetically.js CLOSED TREE 2024-09-19 01:08:05 +03:00
kpatenio
9e138be518 Bug 1916016 - update opt-in card for migration to Firefox sidebar r=fluent-reviewers,omc-reviewers,shopping-reviewers,fchasen,pdahiya
- Updated `AboutWelcomeChild.sys.mjs` to a new opt-in card `FS_OPT_IN_SIDEBAR_VARIANT` that is rendered only if `browser.shopping.experience2023.integratedSidebar`
- Updated styling for the integrated RC in `aboutwelcome.css`
- Added non-exposed strings to `shopping.ftl`
- Updated tests to work for both integrated and non-integrated versions

Differential Revision: https://phabricator.services.mozilla.com/D221396
2024-09-18 20:51:03 +00:00
Fred Chasen
3adfd9f4f1 Bug 1917996 - Disable Shopping sidebar when integrated sidebar pref is set. r=shopping-reviewers,kpatenio
Differential Revision: https://phabricator.services.mozilla.com/D221871
2024-09-16 17:18:35 +00:00
kpatenio
e7785b57ff Bug 1917995 - update recommendations schema and only show price template if a recommendation has a price. r=shopping-reviewers,fchasen
Differential Revision: https://phabricator.services.mozilla.com/D221897
2024-09-12 21:40:33 +00:00
Fred Chasen
87366b7668 Bug 1914974: Update Review Checker telemetry to record if a recommendation was sponsored. r=shopping-reviewers,kpatenio
- Adds an extra sponsored key to pass if the recommendation was sponsored or not to `surface_ads_placement`, `surface_ads_impression` and `surface_ads_clicked`.
- Records `ads_exposure` for all recommendations.
- Parses the JSON response in exposure telemetry tests.

Differential Revision: https://phabricator.services.mozilla.com/D220302
2024-08-28 20:49:48 +00:00
Noemi Erli
536c91507c Backed out changeset 6024af71dec5 (bug 1914974) for causing failures in browser_shopping_ads_test.js CLOSED TREE 2024-08-28 04:02:42 +03:00
Fred Chasen
dc7dbd88e6 Bug 1914974: Update Review Checker telemetry to record if a recommendation was sponsored. r=shopping-reviewers,kpatenio
- Adds an extra sponsored key to pass if the recommendation was sponsored or not to `surface_ads_placement`, `surface_ads_impression` and `surface_ads_clicked`.
- Records `ads_exposure` for all recommendations.
- Parses the JSON response in exposure telemetry tests.

Differential Revision: https://phabricator.services.mozilla.com/D220302
2024-08-27 23:23:25 +00:00
kpatenio
8f96edb98d Bug 1914057 - update recommendations toggle label and description in review checker settings. r=shopping-reviewers,fluent-reviewers,fchasen
Differential Revision: https://phabricator.services.mozilla.com/D220029
2024-08-27 18:38:48 +00:00
kpatenio
6be27e8fff Bug 1914057 - hide sponsor label if served recommendations in review checker. r=shopping-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D219935
2024-08-27 18:38:48 +00:00
kpatenio
263dc34615 Bug 1914057 - update strings for review checker recommendations and settings, plus other minor UX changes. r=fluent-reviewers,shopping-reviewers,bolsson,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D219791
2024-08-27 18:38:47 +00:00
Stanca Serban
ef505e2fa5 Backed out 3 changesets (bug 1914057) for causing mochitests failures in browser_recommended_ad_test.js. CLOSED TREE
Backed out changeset 9d215f25967c (bug 1914057)
Backed out changeset 4105f16f245b (bug 1914057)
Backed out changeset 873a53c675ba (bug 1914057)
2024-08-27 01:59:48 +03:00
kpatenio
baab399721 Bug 1914057 - update recommendations toggle label and description in review checker settings. r=shopping-reviewers,fluent-reviewers,fchasen
Differential Revision: https://phabricator.services.mozilla.com/D220029
2024-08-26 21:52:20 +00:00
kpatenio
37c6ca0c59 Bug 1914057 - hide sponsor label if served recommendations in review checker. r=shopping-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D219935
2024-08-26 21:52:19 +00:00
kpatenio
c008efa598 Bug 1914057 - update strings for review checker recommendations and settings, plus other minor UX changes. r=fluent-reviewers,shopping-reviewers,bolsson,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D219791
2024-08-26 21:52:19 +00:00
Mark Banner
28e4ba7093 Bug 1870226 - Upgrade eslint-plugin-jsdoc to version 43.2.0. r=frontend-codestyle-reviewers,credential-management-reviewers,issammani
This switches from the deprecated/removed jsdoc/newline-after-description rule to using the replacement jsdoc/tag-lines rule.

Differential Revision: https://phabricator.services.mozilla.com/D219512
2024-08-23 16:43:57 +00:00
Butkovits Atila
11a5a23896 Backed out 7 changesets (bug 1870226) for causing build bustages. CLOSED TREE
Backed out changeset 619244623dba (bug 1870226)
Backed out changeset e85a5647cae4 (bug 1870226)
Backed out changeset 21ea9baf83ea (bug 1870226)
Backed out changeset a506c0f0ce28 (bug 1870226)
Backed out changeset 77c78201a206 (bug 1870226)
Backed out changeset 7a98dfef087f (bug 1870226)
Backed out changeset f64ad89c2406 (bug 1870226)
2024-08-23 12:22:02 +03:00
Mark Banner
1ee70a0f13 Bug 1870226 - Upgrade eslint-plugin-jsdoc to version 43.2.0. r=frontend-codestyle-reviewers,credential-management-reviewers,issammani
This switches from the deprecated/removed jsdoc/newline-after-description rule to using the replacement jsdoc/tag-lines rule.

Differential Revision: https://phabricator.services.mozilla.com/D219512
2024-08-23 08:55:49 +00:00
Cosmin Sabou
549910c473 Bug 1855360 - Enable browser_ui_telemetry.js on linux as the test is fixed. a=test-only 2024-07-18 21:21:20 +03:00
Shane Hughes
9420fd5be8 Bug 1855360 - Fix the Shopping test manifest FOG timeout failure. r=omc-reviewers,negin
Differential Revision: https://phabricator.services.mozilla.com/D215534
2024-07-09 01:14:04 +00:00