Experiment APIs breaking at activityLog call, with "this.context is undefined"
Categories
(WebExtensions :: Experiments, defect)
Tracking
(Not tracked)
People
(Reporter: zombie, Unassigned)
References
Details
https://github.com/mikeconley/ohnoreflow/
When loading Mike's Oh no! Reflow! (either temporarily or by disabling signatures), which includes an experiment API, the following error is thrown in the browser console:
TypeError: this.context is undefined ExtensionCommon.jsm:2364:5
which points at:
https://searchfox.org/mozilla-central/source/toolkit/components/extensions/ExtensionCommon.jsm#2364
Not sure if the problem is inside the experiment API or the newly added activity logging.
Comment 1•6 years ago
|
||
From a quick look to the oh-no-reflow sources (in particular where EventManager is being used) I think that the regression is actually being introduced by Bug 1451212 (Remove EventManager compatibility hack).
Comment 2•6 years ago
|
||
I've updated OhNoReflow and SpinDoctor (my two add-ons that use the WebExtension experiments API) to use the more modern form of arguments for EventManager, and that seems to have fixed things. I'm all good here now - thank you!
Updated•6 years ago
|
| Reporter | ||
Updated•6 years ago
|
Description
•