Bug 1285373 P2 Make sdk/event/chrome use weak unload reference. r=gabor

This commit is contained in:
Ben Kelly 2016-07-20 06:47:23 -07:00
parent 104a1642b5
commit ac08e4b7de

View File

@ -57,7 +57,7 @@ function observe(topic) {
// We need to remove any observer added once the add-on is unloaded;
// otherwise we'll get a "dead object" exception.
// See: https://bugzilla.mozilla.org/show_bug.cgi?id=1001833
unload(() => removeObserver(observerChannel, topic));
unload(() => removeObserver(observerChannel, topic), { weak: true });
return observerChannel;
}