mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 11:25:00 +00:00
Bug 1285373 P2 Make sdk/event/chrome use weak unload reference. r=gabor
This commit is contained in:
parent
104a1642b5
commit
ac08e4b7de
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user