Skip to content

Commit

Permalink
Bug 1395843 - Properly remove the DevTools test shared-head observer …
Browse files Browse the repository at this point in the history
…r=ochameau

Differential Revision: https://phabricator.services.mozilla.com/D67845
  • Loading branch information
juliandescottes committed Mar 23, 2020
1 parent 31cd2a5 commit 1875266
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions devtools/client/shared/test/shared-head.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,9 @@ function testActorBootstrap() {

const unloadObserver = function(subject) {
if (subject.wrappedJSObject == _require("@loader/unload")) {
Services.prefs.removeObserver(
"devtools-server-initialized",
actorRegistryObserver
Services.obs.removeObserver(
actorRegistryObserver,
"devtools-server-initialized"
);
Services.obs.removeObserver(unloadObserver, "devtools:loader:destroy");
}
Expand Down

0 comments on commit 1875266

Please sign in to comment.