Bug 1530211 - Autofill addresses learn more link is not blue, r=MattN
authorAlexander Surkov <surkov.alexander@gmail.com>
Mon, 25 Feb 2019 14:34:51 -0500
changeset 518900 41885fe2a2933d39205d32faec31c4c1402f0820
parent 518899 c95f0d583ed590b69f1e10bfbc1c466706f272d1
child 518901 7c89a561baee4bf8a5b726a30032d40a5986180f
child 518958 4d9aebc3fabb38f3f19609143e2614bef8828433
push id10862
push userffxbld-merge
push dateMon, 11 Mar 2019 13:01:11 +0000
treeherdermozilla-beta@a2e7f5c935da [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersMattN
bugs1530211
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 1530211 - Autofill addresses learn more link is not blue, r=MattN
toolkit/content/widgets/text.js
--- a/toolkit/content/widgets/text.js
+++ b/toolkit/content/widgets/text.js
@@ -8,32 +8,34 @@
 // leaking to window scope.
 {
 const {Services} = ChromeUtils.import("resource://gre/modules/Services.jsm");
 
 class MozTextLink extends MozElementMixin(XULTextElement) {
   constructor() {
     super();
 
-    this.classList.add("text-link");
-
     this.addEventListener("click", (event) => {
       if (event.button == 0 || event.button == 1) {
         this.open(event);
       }
     }, true);
 
     this.addEventListener("keypress", (event) => {
       if (event.keyCode != KeyEvent.DOM_VK_RETURN) {
         return;
       }
       this.click();
     });
   }
 
+  connectedCallback() {
+    this.classList.add("text-link");
+  }
+
   set href(val) {
     this.setAttribute("href", val);
     return val;
   }
 
   get href() {
     return this.getAttribute("href");
   }