Skip to content
This repository has been archived by the owner on Dec 3, 2020. It is now read-only.

PriceTracker blocks bug 1451212 #318

Open
mixedpuppy opened this issue Jul 10, 2019 · 1 comment
Open

PriceTracker blocks bug 1451212 #318

mixedpuppy opened this issue Jul 10, 2019 · 1 comment

Comments

@mixedpuppy
Copy link
Member

https://bugzilla.mozilla.org/show_bug.cgi?id=1451212

We have old code that we'd like to remove but (only) price tracker still uses the old call signature here:

onWidgetRemoved: new EventManager(
context,
'customizableUI.onWidgetRemoved',
(fire) => {

It needs to be updated to something like:

new EventManager({
  context, 
  name: "customizableUI.onWidgetRemoved",
  register: (fire) => {
    const toolbarButton = {
      onWidgetRemoved(widgetId) {
        fire.async(widgetId);
      },
    };
    CustomizableUI.addListener(toolbarButton);
    return () => {
      CustomizableUI.removeListener(toolbarButton);
    };
  },
}).api(),
@biancadanforth
Copy link
Collaborator

biancadanforth commented Jul 17, 2019

Thanks @mixedpuppy for letting us know about this and whats more, gating landing the change until we update Price Tracker.

We are blocked on making changes to Price Tracker until our PM comes back from vacation next week. However, I have assessed the breakage that would occur in Price Tracker if we do nothing, and the consequences are minor: we lose the functionality from the customizableUI experimental API, but that is limited to the hide_toolbar_button telemetry event (#157 ) and a minor popup display issue for the Overflow menu on Linux (#256 ). Feel free to proceed with your patch at any time, as we can fix and deploy on our end very quickly next week if we need to.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants