Remove plugin checking code leftovers.
parent
6fde4f6686
commit
7487cb290e
|
@ -681,9 +681,6 @@ pref("plugins.hide_infobar_for_outdated_plugin", false);
|
|||
// Pale Moon:pref to always show the plugin indicator or not (default=false)
|
||||
pref("plugins.always_show_indicator", false);
|
||||
|
||||
pref("plugins.update.url", "https://aus.palemoon.org/plugincheck/");
|
||||
pref("plugins.update.notifyUser", false);
|
||||
|
||||
//Enable tri-state option (Always/Never/Ask)
|
||||
pref("plugins.click_to_play", true);
|
||||
|
||||
|
|
|
@ -323,12 +323,6 @@ var gPluginHandler = {
|
|||
BrowserOpenAddonsMgr("addons://list/plugin");
|
||||
},
|
||||
|
||||
// Callback for user clicking on the link in a click-to-play plugin
|
||||
// (where the plugin has an update)
|
||||
openPluginUpdatePage: function(aEvent) {
|
||||
openURL(Services.urlFormatter.formatURLPref("plugins.update.url"));
|
||||
},
|
||||
|
||||
// Callback for user clicking a "reload page" link
|
||||
reloadPage: function(browser) {
|
||||
browser.reload();
|
||||
|
@ -510,11 +504,7 @@ var gPluginHandler = {
|
|||
}
|
||||
|
||||
let url;
|
||||
// TODO: allow the blocklist to specify a better link, bug 873093
|
||||
if (pluginInfo.blocklistState == Ci.nsIBlocklistService.STATE_VULNERABLE_UPDATE_AVAILABLE) {
|
||||
url = Services.urlFormatter.formatURLPref("plugins.update.url");
|
||||
}
|
||||
else if (pluginInfo.blocklistState != Ci.nsIBlocklistService.STATE_NOT_BLOCKED) {
|
||||
if (pluginInfo.blocklistState != Ci.nsIBlocklistService.STATE_NOT_BLOCKED) {
|
||||
url = Services.blocklist.getPluginBlocklistURL(pluginInfo.pluginTag);
|
||||
}
|
||||
pluginInfo.detailsLink = url;
|
||||
|
|
|
@ -57,9 +57,6 @@ XPCOMUtils.defineLazyGetter(this, "gBrowserBundle", function() {
|
|||
return Services.strings.createBundle('chrome://browser/locale/browser.properties');
|
||||
});
|
||||
|
||||
const PREF_PLUGINS_NOTIFYUSER = "plugins.update.notifyUser";
|
||||
const PREF_PLUGINS_UPDATEURL = "plugins.update.url";
|
||||
|
||||
// We try to backup bookmarks at idle times, to avoid doing that at shutdown.
|
||||
// Number of idle seconds before trying to backup bookmarks. 15 minutes.
|
||||
const BOOKMARKS_BACKUP_IDLE_TIME = 15 * 60;
|
||||
|
@ -880,21 +877,6 @@ BrowserGlue.prototype = {
|
|||
}
|
||||
},
|
||||
|
||||
_showPluginUpdatePage: function() {
|
||||
// Pale Moon: disable this functionality from BrowserGlue, people are
|
||||
// already notified if they visit a page with an outdated plugin, and
|
||||
// they can check properly from the plugins page as well.
|
||||
|
||||
// Services.prefs.setBoolPref(PREF_PLUGINS_NOTIFYUSER, false);
|
||||
//
|
||||
// var formatter = Cc["@mozilla.org/toolkit/URLFormatterService;1"].
|
||||
// getService(Ci.nsIURLFormatter);
|
||||
// var updateUrl = formatter.formatURLPref(PREF_PLUGINS_UPDATEURL);
|
||||
//
|
||||
// var win = this.getMostRecentBrowserWindow();
|
||||
// win.openUILinkIn(updateUrl, "tab");
|
||||
},
|
||||
|
||||
/**
|
||||
* Initialize Places
|
||||
* - imports the bookmarks html file if bookmarks database is empty, try to
|
||||
|
|
|
@ -40,10 +40,6 @@
|
|||
<!ENTITY warning.updatesecurity.enable.label "Enable">
|
||||
<!ENTITY warning.updatesecurity.enable.tooltip "Enable add-on update security checking">
|
||||
|
||||
<!-- global informations -->
|
||||
<!ENTITY info.plugincheck.label "Check to see if your plugins are up to date">
|
||||
<!ENTITY info.plugincheck.tooltip "Check to see if your plugins are up to date">
|
||||
|
||||
<!-- categories / views -->
|
||||
<!ENTITY view.search.label "Search">
|
||||
<!ENTITY view.discover.label "Get Add-ons">
|
||||
|
|
|
@ -809,15 +809,6 @@ var gViewController = {
|
|||
}
|
||||
},
|
||||
|
||||
/* Plugincheck service is currently N/A for Pale Moon
|
||||
cmd_pluginCheck: {
|
||||
isEnabled: function cmd_pluginCheck_isEnabled() true,
|
||||
doCommand: function cmd_pluginCheck_doCommand() {
|
||||
openURL(Services.urlFormatter.formatURLPref("plugins.update.url"));
|
||||
}
|
||||
},
|
||||
*/
|
||||
|
||||
cmd_toggleAutoUpdateDefault: {
|
||||
isEnabled: function cmd_toggleAutoUpdateDefault_isEnabled() true,
|
||||
doCommand: function cmd_toggleAutoUpdateDefault_doCommand() {
|
||||
|
@ -3028,10 +3019,7 @@ var gDetailView = {
|
|||
"details.notification.outdated",
|
||||
[this._addon.name], 1
|
||||
);
|
||||
var warningLink = document.getElementById("detail-warning-link");
|
||||
warningLink.value = gStrings.ext.GetStringFromName("details.notification.outdated.link");
|
||||
warningLink.href = Services.urlFormatter.formatURLPref("plugins.update.url");
|
||||
warningLink.hidden = false;
|
||||
document.getElementById("detail-warning-link").hidden = true;
|
||||
} else if (this._addon.blocklistState == Ci.nsIBlocklistService.STATE_VULNERABLE_UPDATE_AVAILABLE) {
|
||||
this.node.setAttribute("notification", "error");
|
||||
document.getElementById("detail-error").textContent = gStrings.ext.formatStringFromName(
|
||||
|
|
|
@ -1328,9 +1328,7 @@
|
|||
"notification.outdated",
|
||||
[this.mAddon.name], 1
|
||||
);
|
||||
this._warningLink.value = gStrings.ext.GetStringFromName("notification.outdated.link");
|
||||
this._warningLink.href = Services.urlFormatter.formatURLPref("plugins.update.url");
|
||||
this._warningLink.hidden = false;
|
||||
this._warningLink.hidden = true;
|
||||
this._warningBtn.hidden = true;
|
||||
} else if (!isUpgrade && this.mAddon.blocklistState == Ci.nsIBlocklistService.STATE_VULNERABLE_UPDATE_AVAILABLE) {
|
||||
this.setAttribute("notification", "error");
|
||||
|
|
|
@ -88,7 +88,6 @@
|
|||
<command id="cmd_back"/>
|
||||
<command id="cmd_forward"/>
|
||||
<command id="cmd_enableCheckCompatibility"/>
|
||||
<!-- <command id="cmd_pluginCheck"/> -->
|
||||
<command id="cmd_enableUpdateSecurity"/>
|
||||
<command id="cmd_toggleAutoUpdateDefault"/>
|
||||
<command id="cmd_resetAddonAutoUpdate"/>
|
||||
|
@ -355,15 +354,6 @@
|
|||
<spacer flex="5000"/> <!-- Necessary to allow the message to wrap -->
|
||||
</hbox>
|
||||
</hbox>
|
||||
<!-- <hbox class="view-header global-info-container plugin-info-container">
|
||||
<hbox class="global-info" flex="1" align="center">
|
||||
<button class="button-link global-info-plugincheck"
|
||||
label="&info.plugincheck.label;"
|
||||
tooltiptext="&info.plugincheck.tooltip;"
|
||||
command="cmd_pluginCheck"/>
|
||||
<spacer flex="5000"/>
|
||||
</hbox>
|
||||
</hbox> -->
|
||||
<hbox class="view-header global-info-container experiment-info-container">
|
||||
<hbox class="global-info" flex="1" align="center">
|
||||
<label value="&experiment.info.label;"/>
|
||||
|
|
Loading…
Reference in New Issue