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 36546 e59f4d018a053fff1484243fff19c02662a5a869
parent 36545 0f3fc12f7371151f51c0748225a39eaab681b5ac
child 36547 a4dc1186265bea8d2162aab9c3471bb6f1452c1d
push id2534
push userclokep@gmail.com
push dateMon, 02 Dec 2019 19:52:51 +0000
treeherdercomm-beta@055c50840778 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
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;
   }