Bustage fix for bug 1146065.
authorJustin Dolske <dolske@mozilla.com>
Sat, 28 Mar 2015 13:49:50 -0700
changeset 266701 1e5dcedd40cce32ab759756f6707496de01b0173
parent 266700 879aacc06222d7be03d60ff5ca321cf2e148558c
child 266702 b34ca540cf734796091643dad3c26978814bdef6
push id830
push userraliiev@mozilla.com
push dateFri, 19 Jun 2015 19:24:37 +0000
treeherdermozilla-release@932614382a68 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1146065
milestone39.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
Bustage fix for bug 1146065.
toolkit/components/passwordmgr/LoginManagerContent.jsm
--- a/toolkit/components/passwordmgr/LoginManagerContent.jsm
+++ b/toolkit/components/passwordmgr/LoginManagerContent.jsm
@@ -455,19 +455,19 @@ var LoginManagerContent = {
           usernameField = element;
           break;
         }
       }
     }
 
     if (!usernameField)
       log("(form -- no username field found)");
-
-    log("Username field id/name/value is: ", usernameField.id, " / ",
-        usernameField.name, " / ", usernameField.value);
+    else
+      log("Username field id/name/value is: ", usernameField.id, " / ",
+          usernameField.name, " / ", usernameField.value);
 
     // If we're not submitting a form (it's a page load), there are no
     // password field values for us to use for identifying fields. So,
     // just assume the first password field is the one to be filled in.
     if (!isSubmission || pwFields.length == 1) {
       var passwordField = pwFields[0].element;
       log("Password field id/name is: ", passwordField.id, " / ", passwordField.name);
       return [usernameField, passwordField, null];