Bug 741134 - Plugin placeholder shown even when Site Setting says 'Play Plugins: Yes'. r=mfinkle

This commit is contained in:
Margaret Leibovic 2012-04-11 15:10:49 -07:00
parent b931d603dc
commit d37e73f9ce

View File

@ -1945,7 +1945,10 @@ Tab.prototype = {
case "PluginClickToPlay": {
let plugin = aEvent.target;
if (this.clickToPlayPluginsActivated) {
// Check if plugins have already been activated for this page, or if the user
// has set a permission to always play plugins on the site
if (this.clickToPlayPluginsActivated ||
Services.perms.testPermission(this.browser.currentURI, "plugins") == Services.perms.ALLOW_ACTION) {
PluginHelper.playPlugin(plugin);
return;
}