Bug 1477641 - substitute addons.mozilla.org with addons.thunderbird.net on add-ons page. r=Paenglab,aceman a=jorgk
authorJorg K <jorgk@jorgk.com>
Mon, 30 Jul 2018 00:49:18 +0200
changeset 31710 bca85912a30bcea62c140855fbb43a90acf24dff
parent 31709 010b1f45ab0e5fbc544b0223ce84ea935ccaee13
child 31711 e412da29421f26b78af7d2dc1159a5818e0d2f8e
push id35
push usermozilla@jorgk.com
push dateSun, 29 Jul 2018 23:18:04 +0000
treeherdercomm-esr60@1d0a66f5d8f0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersPaenglab, aceman, jorgk
bugs1477641
Bug 1477641 - substitute addons.mozilla.org with addons.thunderbird.net on add-ons page. r=Paenglab,aceman a=jorgk
mail/base/content/specialTabs.js
--- a/mail/base/content/specialTabs.js
+++ b/mail/base/content/specialTabs.js
@@ -258,16 +258,22 @@ var contentTabBaseType = {
   // Code to run if a particular document is loaded in a tab.
   // The array members (functions) are for the respective document URLs
   // as specified in inContentWhitelist.
   inContentOverlays: [
     // about:addons
     function (aDocument, aTab) {
       // Switch off the context menu.
       aTab.browser.removeAttribute("context");
+
+      // Fix the "Search on addons.mozilla.org" placeholder text in the searchbox.
+      let textbox = aDocument.getElementById("header-search");
+      let placeholder = textbox.getAttribute("placeholder");
+      placeholder = placeholder.replace("addons.mozilla.org", "addons.thunderbird.net");
+      textbox.setAttribute("placeholder", placeholder);
     },
 
     // Let's not mess with about:blank.
     null,
 
     // Other about:* pages.
     function (aDocument, aTab) {
       // Provide context menu for about:* pages.