Bug 1318537 - Remove Learn More link from the insecure login field autocomplete popup. r=seanlee draft
authorMatthew Noorenberghe <mozilla@noorenberghe.ca>
Wed, 23 Nov 2016 13:42:00 -0800
changeset 449721 971a1e5780d067f921af94bb54fc0f7e7143fe7c
parent 449720 7bfeec8395e5ca28421d92f3bf51d56feafc0319
child 539548 b4a9b11dd6abf04a48306b2d0b351455c1a3c3d1
push id38630
push usermozilla@noorenberghe.ca
push dateWed, 14 Dec 2016 19:51:38 +0000
reviewersseanlee
bugs1318537
milestone52.0a2
Bug 1318537 - Remove Learn More link from the insecure login field autocomplete popup. r=seanlee MozReview-Commit-ID: KbRokkIr8DE
toolkit/content/widgets/autocomplete.xml
--- a/toolkit/content/widgets/autocomplete.xml
+++ b/toolkit/content/widgets/autocomplete.xml
@@ -1469,17 +1469,16 @@ extends="chrome://global/content/binding
       <xul:vbox class="ac-title"
                 align="left"
                 xbl:inherits="">
         <xul:description class="ac-text-overflow-container">
           <xul:description anonid="title-text"
                            class="ac-title-text"
                            xbl:inherits="selected"/>
         </xul:description>
-        <xul:label id="learnMoreLink" align="left" class="text-link"/>
       </xul:vbox>
       <xul:hbox anonid="tags"
                 class="ac-tags"
                 align="center"
                 xbl:inherits="selected">
         <xul:description class="ac-text-overflow-container">
           <xul:description anonid="tags-text"
                            class="ac-tags-text"
@@ -1506,32 +1505,16 @@ extends="chrome://global/content/binding
                 xbl:inherits="selected,actiontype">
         <xul:description class="ac-text-overflow-container">
           <xul:description anonid="action-text"
                            class="ac-action-text"
                            xbl:inherits="selected"/>
         </xul:description>
       </xul:hbox>
     </content>
-    <implementation>
-      <constructor><![CDATA[
-        let learnMoreLink = document.getElementById("learnMoreLink");
-        learnMoreLink.setAttribute("value", this._stringBundle.GetStringFromName("insecureFieldWarningLearnMore"));
-        learnMoreLink.setAttribute("href", Services.urlFormatter.formatURLPref("app.support.baseURL") + "insecure-form-field-warning");
-      ]]></constructor>
-
-      <property name="_stringBundle">
-        <getter><![CDATA[
-          if (!this.__stringBundle) {
-            this.__stringBundle = Services.strings.createBundle("chrome://passwordmgr/locale/passwordmgr.properties");
-          }
-          return this.__stringBundle;
-        ]]></getter>
-      </property>
-    </implementation>
   </binding>
 
   <binding id="autocomplete-richlistitem" extends="chrome://global/content/bindings/richlistbox.xml#richlistitem">
 
     <content align="center"
              onoverflow="this._onOverflow();"
              onunderflow="this._onUnderflow();">
       <xul:image anonid="type-icon"