Bug 787833 Some plugin notifications fail to show r=IanN a=Callek.
authorNeil Rashbrook <neil@parkwaycc.co.uk>
Sun, 02 Sep 2012 23:41:47 +0100
changeset 30851 edd78fb4d7a911b91f078ced9925f2d14bf5bff9
parent 30845 83c1528870668c46015140ab0d82466bed4b9f11
child 30852 f884da2e73ac0c8a439d804e64304cbc3a3c3828
push id1
push userclokep@gmail.com
push dateMon, 07 May 2018 22:45:56 +0000
treeherdercomm-esr60@57eacde5ef40 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersIanN, Callek
bugs787833
Bug 787833 Some plugin notifications fail to show r=IanN a=Callek.
suite/common/bindings/notification.xml
--- a/suite/common/bindings/notification.xml
+++ b/suite/common/bindings/notification.xml
@@ -397,16 +397,19 @@
             // that the target is a plugin.
             if (!(plugin instanceof Components.interfaces.nsIObjectLoadingContent))
               return;
 
             // Save information on the plugin to give to the plugin finder.
             var pluginInfo = this.getPluginInfo(plugin);
             this.missingPlugins[pluginInfo.mimetype] = pluginInfo;
 
+            // Force a style flush, so that we ensure our binding is attached.
+            plugin.clientTop;
+
             // Hide the in-content UI if it's too big. The crashed plugin handler already does this.
             var doc = plugin.ownerDocument;
             var overlay = doc.getAnonymousElementByAttribute(plugin, "class", "mainBox");
             if (this.isTooSmall(plugin, overlay))
               overlay.style.visibility = "hidden";
 
             if (this._prefs.getBoolPref(aPref || "plugins.hide_infobar_for_missing_plugin"))
               return;