Bug 1500022 - Remove now unused code after the removal of "extensions.getAddons.themes.browseURL" pref. r=jorgk
authorRichard Marti <richard.marti@gmail.com>
Thu, 18 Oct 2018 23:15:21 +0200
changeset 33409 eb34ed5966a0988254f154696eadf14c6c42a680
parent 33408 fe6493684a2e0e019ef4d69800b7931db3d9845e
child 33410 1be95c892c357bbb9fb2db9f569ffd7755623659
push id387
push userclokep@gmail.com
push dateMon, 10 Dec 2018 21:30:47 +0000
reviewersjorgk
bugs1500022
Bug 1500022 - Remove now unused code after the removal of "extensions.getAddons.themes.browseURL" pref. r=jorgk
mail/base/content/specialTabs.js
--- a/mail/base/content/specialTabs.js
+++ b/mail/base/content/specialTabs.js
@@ -762,24 +762,16 @@ var specialTabs = {
       aTab.browser.setAttribute("type", "content");
       if (background)
         aTab.browser.removeAttribute("primary");
       else
         aTab.browser.setAttribute("primary", "true");
 
       aTab.browser.setAttribute("id", "contentTabBrowser" + this.lastBrowserId);
 
-      // The click handler that keeps tabs within Thunderbird is not preserved when the Add-ons Manager
-      // loads some new URLs, so we add it back in here for the Themes browsing page.
-      let themesBrowseURL = Services.urlFormatter.formatURLPref("extensions.getAddons.themes.browseURL");
-      let addonRegExp = Services.prefs.getCharPref("extensions.getAddons.siteRegExp");
-      if (aArgs.contentPage === themesBrowseURL) {
-        aArgs.clickHandler = "specialTabs.siteClickHandler(event, new RegExp(\"" + addonRegExp + "\"));";
-      }
-
       aTab.clickHandler = "clickHandler" in aArgs && aArgs.clickHandler ?
                           aArgs.clickHandler :
                           "specialTabs.defaultClickHandler(event);";
       aTab.browser.setAttribute("onclick", aTab.clickHandler);
 
       // Set this attribute so that when favicons fail to load, we remove the
       // image attribute and just show the default tab icon.
       aTab.tabNode.setAttribute("onerror", "this.removeAttribute('image');");