[Bug 761654] "Always load remote content from [address]" link in the preview pane is failing. r=mconley, r=IanN, a=Standard8
authorMagnus Melin <mkmelin+mozilla@iki.fi>
Mon, 20 Aug 2012 22:49:30 +0300
changeset 12555 cbfc7d94b03da78e02052e585a2f149ead87dcbb
parent 12554 efb5f08b1d8a1c9a47af0ba36038f9474d061568
child 12556 6bcd1eea7663182566b0674cb3cc1001773c2f9a
push id643
push userbugzilla@standard8.plus.com
push dateTue, 21 Aug 2012 12:48:11 +0000
treeherdercomm-beta@cbfc7d94b03d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmconley, IanN, Standard8
bugs761654
[Bug 761654] "Always load remote content from [address]" link in the preview pane is failing. r=mconley, r=IanN, a=Standard8
mail/components/addrbook/content/abCardOverlay.js
suite/mailnews/addrbook/abCardOverlay.js
--- a/mail/components/addrbook/content/abCardOverlay.js
+++ b/mail/components/addrbook/content/abCardOverlay.js
@@ -110,17 +110,17 @@ function OnLoadNewCard()
     // we'll fill these in here...
     if ("primaryEmail" in window.arguments[0])
       gEditCard.card.primaryEmail = window.arguments[0].primaryEmail;
     if ("displayName" in window.arguments[0]) {
       gEditCard.card.displayName = window.arguments[0].displayName;
       // if we've got a display name, don't generate
       // a display name (and stomp on the existing display name)
       // when the user types a first or last name
-      if (gEditCard.card.displayName.length)
+      if (gEditCard.card.displayName)
         gEditCard.generateDisplayName = false;
     }
     if ("aimScreenName" in window.arguments[0])
       gEditCard.card.setProperty("_AimScreenName",
                                  window.arguments[0].aimScreenName);
     if ("allowRemoteContent" in window.arguments[0])
       gEditCard.card.setProperty("AllowRemoteContent",
                                  window.arguments[0].allowRemoteContent);
--- a/suite/mailnews/addrbook/abCardOverlay.js
+++ b/suite/mailnews/addrbook/abCardOverlay.js
@@ -97,17 +97,17 @@ function OnLoadNewCard()
     // we'll fill these in here...
     if ("primaryEmail" in window.arguments[0])
       gEditCard.card.primaryEmail = window.arguments[0].primaryEmail;
     if ("displayName" in window.arguments[0]) {
       gEditCard.card.displayName = window.arguments[0].displayName;
       // if we've got a display name, don't generate
       // a display name (and stomp on the existing display name)
       // when the user types a first or last name
-      if (gEditCard.card.displayName.length)
+      if (gEditCard.card.displayName)
         gEditCard.generateDisplayName = false;
     }
     if ("aimScreenName" in window.arguments[0])
       gEditCard.card.setProperty("_AimScreenName",
                                  window.arguments[0].aimScreenName);
 
     if ("allowRemoteContent" in window.arguments[0])
       gEditCard.card.setProperty("AllowRemoteContent",