Bug 1593546 - Port bug 1525175: Adapt to changed ID of add-ons search box. rs=bustage-fix
authorJorg K <jorgk@jorgk.com>
Sun, 03 Nov 2019 23:20:17 +0100
changeset 37419 e59f4d018a053fff1484243fff19c02662a5a869
parent 37418 0f3fc12f7371151f51c0748225a39eaab681b5ac
child 37420 a4dc1186265bea8d2162aab9c3471bb6f1452c1d
push id396
push userclokep@gmail.com
push dateMon, 06 Jan 2020 23:11:57 +0000
reviewersbustage-fix
bugs1593546, 1525175
Bug 1593546 - Port bug 1525175: Adapt to changed ID of add-ons search box. rs=bustage-fix
mail/base/content/aboutAddonsExtra.js
--- a/mail/base/content/aboutAddonsExtra.js
+++ b/mail/base/content/aboutAddonsExtra.js
@@ -54,17 +54,18 @@ var extensionsNeedingRestart = new Set()
     hbox.appendChild(backButton);
     hbox.appendChild(forwardButton);
 
     document
       .getElementById("category-box")
       .insertBefore(hbox, document.getElementById("categories"));
 
     // Fix the "Search on addons.mozilla.org" placeholder text in the searchbox.
-    let textbox = document.getElementById("header-search");
+    let browser = document.getElementById("html-view-browser");
+    let textbox = browser.contentDocument.getElementById("search-addons");
     let placeholder = textbox.getAttribute("placeholder");
     placeholder = placeholder.replace(
       "addons.mozilla.org",
       "addons.thunderbird.net"
     );
     textbox.setAttribute("placeholder", placeholder);
     return;
   }