Bug 456393: disable plugins, r=mfinkle

This commit is contained in:
Gavin Sharp 2008-09-22 14:17:46 -04:00
parent f3d8b9882a
commit 93b7726815

View File

@ -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;
}
},