Bug 741128 - Plugin placeholder not shown when embeds become visible by dynamically changing height/width. r=mfinkle

This commit is contained in:
Margaret Leibovic 2012-04-03 11:34:41 -07:00
parent 09398440b8
commit 516cb59640

View File

@ -1936,11 +1936,11 @@ Tab.prototype = {
// is a hidden plugin object
let overlay = plugin.ownerDocument.getAnonymousElementByAttribute(plugin, "class", "mainBox");
if (!overlay || PluginHelper.isTooSmall(plugin, overlay)) {
if (overlay)
overlay.style.visibility = "hidden";
if (this.loadEventProcessed && !this.clickToPlayPluginDoorhangerShown)
PluginHelper.showDoorHanger(this);
return;
if (!overlay)
return;
}
// Add click to play listener to the overlay