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
Родитель ebbad4262e
Коммит 16444a6872
1 изменённых файлов: 3 добавлений и 0 удалений

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

@ -1984,6 +1984,9 @@ Tab.prototype = {
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
let overlay = plugin.ownerDocument.getAnonymousElementByAttribute(plugin, "class", "mainBox");
if (!overlay || PluginHelper.isTooSmall(plugin, overlay)) {