Bug 839280 - Fix document leak in nsLoginManager. r=dolske
☠☠ backed out by 1156d4f8ec2c ☠ ☠
authorAlexandre Poirot <poirot.alex@gmail.com>
Thu, 07 Mar 2013 17:39:39 -0500
changeset 124249 7952fadd1732442445aef29332d74e8ab0a5ecaa
parent 124248 4ada9533c6d5fc52aa33cda967bcb0ec486ab375
child 124250 6deb17bc6c567c8b10591db48f9241365ea3901c
push id24315
push userryanvm@gmail.com
push dateFri, 08 Mar 2013 19:30:04 +0000
treeherdermozilla-inbound@b4bfc1c0829c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdolske
bugs839280
milestone22.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 839280 - Fix document leak in nsLoginManager. r=dolske
toolkit/components/passwordmgr/nsLoginManager.js
--- a/toolkit/components/passwordmgr/nsLoginManager.js
+++ b/toolkit/components/passwordmgr/nsLoginManager.js
@@ -279,16 +279,17 @@ LoginManager.prototype = {
         handleEvent : function (event) {
             if (!event.isTrusted)
                 return;
 
             this._pwmgr.log("domEventListener: got event " + event.type);
 
             switch (event.type) {
                 case "DOMContentLoaded":
+                    event.target.removeEventListener(event.type, this, false);
                     this._pwmgr._fillDocument(event.target);
                     return;
 
                 case "DOMAutoComplete":
                 case "blur":
                     var acInputField = event.target;
                     var acForm = acInputField.form;