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: https://github.com/mozilla/price-tracker/blob/1e881c5188d8e7d7b4753c08d88040f2fcb3c007/src/experiment_apis/customizableUI/api.js#L14-L17 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(), ```
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:
price-tracker/src/experiment_apis/customizableUI/api.js
Lines 14 to 17 in 1e881c5
It needs to be updated to something like: