Bug 745016 - Tap-to-play plugin click listener sometimes doesn't get triggered. r+a=mfinkle

This commit is contained in:
Margaret Leibovic 2012-04-18 07:59:21 -07:00
Родитель 9b985c8a28
Коммит d9a6520225
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -1984,6 +1984,9 @@ Tab.prototype = {
return; return;
} }
// Force a style flush, so that we ensure our binding is attached.
plugin.clientTop;
// If the plugin is hidden, or if the overlay is too small, show a doorhanger notification // If the plugin is hidden, or if the overlay is too small, show a doorhanger notification
let overlay = plugin.ownerDocument.getAnonymousElementByAttribute(plugin, "class", "mainBox"); let overlay = plugin.ownerDocument.getAnonymousElementByAttribute(plugin, "class", "mainBox");
if (!overlay || PluginHelper.isTooSmall(plugin, overlay)) { if (!overlay || PluginHelper.isTooSmall(plugin, overlay)) {