Closed
Bug 1235161
Opened 9 years ago
Closed 8 years ago
Do not display not-yet-activated ask-to-activate plugins in plugin enumeration
Categories
(Core Graveyard :: Plug-ins, defect)
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 1186948
People
(Reporter: lyfjxymf, Unassigned)
Details
(Keywords: APIchange)
Attachments
(1 file)
30.01 KB,
image/png
|
Details |
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:43.0) Gecko/20100101 Firefox/43.0
Build ID: 20151221130713
Steps to reproduce:
Even though I set some of my installed plugins to "ask-to-activate", they are still visible via `navigator.plugins` when they are not yet activated. This issue breaks my Baidu Drive page, since the page identified and tried to make use of a inactivated plugin. I have to disable some plugins completely to avoid page problems.
Actual results:
Please try this code below. You will see not-yet-activated plugins listed:
```html
<HTML>
<HEAD>
<TITLE>About Plug-ins</TITLE>
</HEAD>
<BODY>
<SCRIPT language="javascript">
numPlugins = navigator.plugins.length;
if (numPlugins > 0)
document.writeln("Installed plug-ins");
else
document.writeln("No plug-ins are installed.");
for (i = 0; i < numPlugins; i++) {
plugin = navigator.plugins[i];
document.write("<center><font size=+1><b>");
document.write(plugin.name);
document.writeln("</b></font></center><br>");
document.writeln("<dl>");
document.writeln("<dd>File name:");
document.write(plugin.filename);
document.write("<dd><br>");
document.write(plugin.description);
document.writeln("</dl>");
document.writeln("<p>");
document.writeln("<table border=1 >");
document.writeln("<tr>");
document.writeln("<th width=20%>Mime Type</th>");
document.writeln("<th width=50%>Description</th>");
document.writeln("<th width=20%>Suffixes</th>");
document.writeln("<th>Enabled</th>");
document.writeln("</tr>");
numTypes = plugin.length;
for (j = 0; j < numTypes; j++)
{
mimetype = plugin[j];
if (mimetype){
enabled = "No";
enabledPlugin = mimetype.enabledPlugin;
if (enabledPlugin && (enabledPlugin.name == plugin.name))
enabled = "Yes";
document.writeln("<tr align=center>");
document.writeln("<td>");
document.write(mimetype.type);
document.writeln("</td>");
document.writeln("<td>");
document.write(mimetype.description);
document.writeln("</td>");
document.writeln("<td>");
document.write(mimetype.suffixes);
document.writeln("</td>");
document.writeln("<td>");
document.writeln(enabled);
document.writeln("</td>");
document.writeln("</tr>");
}
}
document.write("</table>");
}
</SCRIPT>
</BODY>
</HTML>
```
Expected results:
Not yet activated plugins should not be visible via `navigator.plugins` for security reasons.
I guess this is impossible, if the sites does not find plugins, many existing sites probably will not use plugins and redirect to less functionality, such as HTML5 or "unable to browse" tip.
Component: Untriaged → Plug-ins
Product: Firefox → Core
Whiteboard: [DUPEME]
Comment 2•8 years ago
|
||
This feature was implemented (for Flash, at least) in bug 1186948.
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
Resolution: --- → DUPLICATE
Whiteboard: [DUPEME]
Updated•3 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•