mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-22 23:27:30 +09:00
[Pale-Moon] No issue - Guard against empty MIME types when dealing with plug-ins
This commit is contained in:
parent
9d9d5c9b16
commit
7f0772e096
2 changed files with 10 additions and 0 deletions
|
|
@ -268,6 +268,11 @@ function initPluginsRow() {
|
||||||
if (mimeType == "application/x-shockwave-flash" && plugin.name != "Shockwave Flash") {
|
if (mimeType == "application/x-shockwave-flash" && plugin.name != "Shockwave Flash") {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
// XXX: Guard against plug-ins that include an empty MIME type
|
||||||
|
// in their list of handled MIME types (e.g. latest Java SE 8 plug-in).
|
||||||
|
if (mimeType.length == 0) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
let permString = pluginHost.getPermissionStringForType(mimeType);
|
let permString = pluginHost.getPermissionStringForType(mimeType);
|
||||||
if (!permissionMap.has(permString)) {
|
if (!permissionMap.has(permString)) {
|
||||||
let name = makeNicePluginName(plugin.name) + " " + plugin.version;
|
let name = makeNicePluginName(plugin.name) + " " + plugin.version;
|
||||||
|
|
|
||||||
|
|
@ -566,6 +566,11 @@ var AboutPermissions = {
|
||||||
if ((mimeType == gFlash.type) && (plugin.name != gFlash.name)) {
|
if ((mimeType == gFlash.type) && (plugin.name != gFlash.name)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
// XXX: Guard against plug-ins that include an empty MIME type
|
||||||
|
// in their list of handled MIME types (e.g. latest Java SE 8 plug-in).
|
||||||
|
if (mimeType.length == 0) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
let permString = pluginHost.getPermissionStringForType(mimeType);
|
let permString = pluginHost.getPermissionStringForType(mimeType);
|
||||||
if (!permissionMap.has(permString)) {
|
if (!permissionMap.has(permString)) {
|
||||||
let permissionEntry = document.createElementNS(XUL_NS, "box");
|
let permissionEntry = document.createElementNS(XUL_NS, "box");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue