Bug 1521928 - Changing addObserver to removeObserver. r=Standard8
authorchampionshuttler <shivams2799@gmail.com>
Mon, 18 Feb 2019 13:55:06 +0000
changeset 459784 e9d51144a284dd5be358e7e62d362592399e607c
parent 459783 711d305d6bd95eba2a69c679a5bb332f6fe52ad8
child 459785 22194fd99032f5b3bdfe4fcb1a8fc1472c908451
push id35572
push usercbrindusan@mozilla.com
push dateMon, 18 Feb 2019 21:43:34 +0000
treeherdermozilla-central@c590fd06f7cb [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersStandard8
bugs1521928
milestone67.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1521928 - Changing addObserver to removeObserver. r=Standard8 Differential Revision: https://phabricator.services.mozilla.com/D20097
widget/tests/test_imestate.html
--- a/widget/tests/test_imestate.html
+++ b/widget/tests/test_imestate.html
@@ -1288,17 +1288,17 @@ function runTestPasswordFieldOnDialog() 
   };
 
   var observer = new WindowObserver();
   var arg1 = {}, arg2 = {};
   Services.prompt.promptPassword(window, "title", "text", arg1, "msg", arg2);
 
   ok(true, "password dialog was closed");
 
-  Services.obs.addObserver(observer, "domwindowopened");
+  Services.obs.removeObserver(observer, "domwindowopened");
 
   var passwordField;
 
   function onPasswordDialogLoad() {
     ok(true, "onPasswordDialogLoad is called");
     dialog.removeEventListener("load", onPasswordDialogLoad);
     passwordField = dialog.document.getElementById("password1Textbox");
     passwordField.addEventListener("focus", onPasswordFieldFocus);