mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-06 15:58:39 +09:00
[Basilisk] Guard against empty MIME types when dealing with plug-ins
Port of MoonchildProductions/Pale-Moon#1956
This commit is contained in:
parent
56de0d9596
commit
d0aae61395
1 changed files with 5 additions and 0 deletions
|
|
@ -223,6 +223,11 @@ function initPluginsRow() {
|
|||
continue;
|
||||
}
|
||||
for (let mimeType of plugin.getMimeTypes()) {
|
||||
// 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);
|
||||
if (!permissionMap.has(permString)) {
|
||||
let name = BrowserUtils.makeNicePluginName(plugin.name);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue