Files
tubestation/browser/components/shopping
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
..