mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-01 00:32:11 +00:00
Bug 1851036 - Add events for displaying the shopping component's address bar icon r=Gijs,TravisLong
Differential Revision: https://phabricator.services.mozilla.com/D187230
This commit is contained in:
parent
71bedd3d83
commit
efd25593ba
@ -10118,6 +10118,13 @@ var ShoppingSidebarManager = {
|
||||
let isCurrentBrowserProduct = isProductURL(
|
||||
gBrowser.selectedBrowser.currentURI
|
||||
);
|
||||
|
||||
// Only record if the state of the icon will change from hidden to visible.
|
||||
if (button.hidden && isCurrentBrowserProduct) {
|
||||
console.log("visibility of shopping address bar icon changed");
|
||||
Glean.shopping.addressBarIconDisplayed.record();
|
||||
}
|
||||
|
||||
button.hidden = !isCurrentBrowserProduct;
|
||||
button.setAttribute("shoppingsidebaropen", !!this.isActive);
|
||||
let l10nId = this.isActive
|
||||
|
@ -371,3 +371,20 @@ shopping:
|
||||
- fx-desktop-shopping-eng@mozilla.com
|
||||
send_in_pings:
|
||||
- events
|
||||
|
||||
address_bar_icon_displayed:
|
||||
type: event
|
||||
description: |
|
||||
The Shopping product Address Bar Icon was displayed to the user.
|
||||
bugs:
|
||||
- https://bugzilla.mozilla.org/show_bug.cgi?id=1851036
|
||||
data_reviews:
|
||||
- https://bugzilla.mozilla.org/show_bug.cgi?id=1841892
|
||||
data_sensitivity:
|
||||
- interaction
|
||||
expires: 122
|
||||
notification_emails:
|
||||
- betling@mozilla.com
|
||||
- fx-desktop-shopping-eng@mozilla.com
|
||||
send_in_pings:
|
||||
- events
|
||||
|
Loading…
Reference in New Issue
Block a user