diff --git a/docshell/base/nsAboutRedirector.cpp b/docshell/base/nsAboutRedirector.cpp index 2803400e62f..e34764ab160 100644 --- a/docshell/base/nsAboutRedirector.cpp +++ b/docshell/base/nsAboutRedirector.cpp @@ -43,10 +43,7 @@ static RedirEntry kRedirMap[] = { "mozilla", "chrome://global/content/mozilla.xhtml", nsIAboutModule::URI_SAFE_FOR_UNTRUSTED_CONTENT }, - { - "plugins", "chrome://global/content/plugins.html", - nsIAboutModule::URI_MUST_LOAD_IN_CHILD - }, + { "plugins", "chrome://global/content/plugins.html", 0 }, { "config", "chrome://global/content/config.xul", 0 }, #ifdef MOZ_CRASHREPORTER { "crashes", "chrome://global/content/crashes.xhtml", 0 }, diff --git a/toolkit/content/plugins.html b/toolkit/content/plugins.html index e9f1cedd84a..bfd84c79e6c 100644 --- a/toolkit/content/plugins.html +++ b/toolkit/content/plugins.html @@ -9,6 +9,8 @@ diff --git a/toolkit/mozapps/extensions/AddonManager.jsm b/toolkit/mozapps/extensions/AddonManager.jsm index 43d69f5e262..99f79005866 100644 --- a/toolkit/mozapps/extensions/AddonManager.jsm +++ b/toolkit/mozapps/extensions/AddonManager.jsm @@ -2988,25 +2988,3 @@ Cu.import("resource://gre/modules/TelemetryTimestamps.jsm", AddonManagerInternal Object.freeze(AddonManagerInternal); Object.freeze(AddonManagerPrivate); Object.freeze(AddonManager); - -// Functions to support about:plugins -Cu.import("resource://gre/modules/RemotePageManager.jsm"); - -// Lists all the properties that plugins.html needs -const NEEDED_PROPS = ["name", "pluginLibraries", "pluginFullpath", "version", - "isActive", "blocklistState", "description", - "pluginMimeTypes"]; -function filterProperties(plugin) { - let filtered = {}; - for (let prop of NEEDED_PROPS) { - filtered[prop] = plugin[prop]; - } - return filtered; -} - -let listener = new RemotePages("about:plugins"); -listener.addMessageListener("RequestPlugins", ({ target: port }) => { - AddonManager.getAddonsByTypes(["plugin"], function (aPlugins) { - port.sendAsyncMessage("PluginList", [filterProperties(p) for (p of aPlugins)]); - }); -});