mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 456393: disable plugins, r=mfinkle
This commit is contained in:
parent
f3d8b9882a
commit
93b7726815
@ -145,6 +145,13 @@ var Browser = {
|
||||
var self = this;
|
||||
setTimeout(function() { self.currentBrowser.loadURI(whereURI, null, null, false); }, 0);
|
||||
}
|
||||
|
||||
// Disable plugins
|
||||
var phs = Cc["@mozilla.org/plugin/host;1"].
|
||||
getService(Ci.nsIPluginHost);
|
||||
var plugins = phs.getPluginTags({ });
|
||||
for (i = 0; i < plugins.length; ++i)
|
||||
plugins[i].disabled = true;
|
||||
}
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user