diff --git a/toolkit/components/passwordmgr/test/browser/browser_passwordmgr_sort.js b/toolkit/components/passwordmgr/test/browser/browser_passwordmgr_sort.js index 60e2b7ef97a..e774f39c44b 100644 --- a/toolkit/components/passwordmgr/test/browser/browser_passwordmgr_sort.js +++ b/toolkit/components/passwordmgr/test/browser/browser_passwordmgr_sort.js @@ -88,7 +88,7 @@ function test() { Services.obs.addObserver(function (aSubject, aTopic, aData) { if (aTopic == "passwordmgr-password-toggle-complete") { - Services.obs.removeObserver(arguments.callee, aTopic, false); + Services.obs.removeObserver(arguments.callee, aTopic); func(); } }, "passwordmgr-password-toggle-complete", false); diff --git a/toolkit/components/passwordmgr/test/browser/browser_passwordmgrdlg.js b/toolkit/components/passwordmgr/test/browser/browser_passwordmgrdlg.js index d2643a9b854..fd49507e485 100644 --- a/toolkit/components/passwordmgr/test/browser/browser_passwordmgrdlg.js +++ b/toolkit/components/passwordmgr/test/browser/browser_passwordmgrdlg.js @@ -99,7 +99,7 @@ function test() { Services.obs.addObserver(function (aSubject, aTopic, aData) { if (aTopic == "passwordmgr-password-toggle-complete") { - Services.obs.removeObserver(arguments.callee, aTopic, false); + Services.obs.removeObserver(arguments.callee, aTopic); func(); } }, "passwordmgr-password-toggle-complete", false); diff --git a/toolkit/components/social/MozSocialAPI.jsm b/toolkit/components/social/MozSocialAPI.jsm index bb1f7ca4dc5..3c27d175227 100644 --- a/toolkit/components/social/MozSocialAPI.jsm +++ b/toolkit/components/social/MozSocialAPI.jsm @@ -31,7 +31,7 @@ this.MozSocialAPI = { } } else { - Services.obs.removeObserver(injectController, "document-element-inserted", false); + Services.obs.removeObserver(injectController, "document-element-inserted"); } } }; diff --git a/toolkit/components/social/test/browser/browser_workerAPI.js b/toolkit/components/social/test/browser/browser_workerAPI.js index bf214e85db9..daa5979a61a 100644 --- a/toolkit/components/social/test/browser/browser_workerAPI.js +++ b/toolkit/components/social/test/browser/browser_workerAPI.js @@ -36,7 +36,7 @@ let tests = { profileURL: "http://en.wikipedia.org/wiki/Kuma_Lisa" } function ob(aSubject, aTopic, aData) { - Services.obs.removeObserver(ob, "social:profile-changed", false); + Services.obs.removeObserver(ob, "social:profile-changed"); is(aData, provider.origin, "update of profile from our provider"); let profile = provider.profile; is(profile.portrait, expect.portrait, "portrait is set"); @@ -56,7 +56,7 @@ let tests = { name: "test-ambient" } function ob(aSubject, aTopic, aData) { - Services.obs.removeObserver(ob, "social:ambient-notification-changed", false); + Services.obs.removeObserver(ob, "social:ambient-notification-changed"); is(aData, provider.origin, "update is from our provider"); let notif = provider.ambientNotificationIcons[expect.name]; is(notif.name, expect.name, "ambientNotification reflected"); @@ -74,7 +74,7 @@ let tests = { userName: "" }; function ob(aSubject, aTopic, aData) { - Services.obs.removeObserver(ob, "social:profile-changed", false); + Services.obs.removeObserver(ob, "social:profile-changed"); is(aData, provider.origin, "update of profile from our provider"); is(Object.keys(provider.profile).length, 0, "profile was cleared by empty username"); is(Object.keys(provider.ambientNotificationIcons).length, 0, "icons were cleared by empty username");