Bug 1500022 - Remove now unused code after the removal of "extensions.getAddons.themes.browseURL" pref. r=jorgk

This commit is contained in:
Richard Marti 2018-10-18 23:15:21 +02:00
Родитель 9d8a05043c
Коммит 9b397d734a
1 изменённых файлов: 0 добавлений и 8 удалений

Просмотреть файл

@ -767,14 +767,6 @@ var specialTabs = {
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);";