Bug 849216 - open social toolbar popup in setTimeout handler to avoid auto-rollup handling. r=felipe

--HG--
extra : rebase_source : 311aaca5135f223ebcc9f6e3ca81e3c4b2bee219
This commit is contained in:
Mark Hammond 2013-03-13 09:31:39 +11:00
parent cc534b99af
commit a7c0fc1ede

View File

@ -1030,7 +1030,11 @@ var SocialToolbar = {
let anchor = navBar.getAttribute("mode") == "text" ?
document.getAnonymousElementByAttribute(aToolbarButton, "class", "toolbarbutton-text") :
document.getAnonymousElementByAttribute(aToolbarButton, "class", "toolbarbutton-icon");
panel.openPopup(anchor, "bottomcenter topright", 0, 0, false, false);
// Bug 849216 - open the popup in a setTimeout so we avoid the auto-rollup
// handling from preventing it being opened in some cases.
setTimeout(function() {
panel.openPopup(anchor, "bottomcenter topright", 0, 0, false, false);
}, 0);
},
setPanelErrorMessage: function SocialToolbar_setPanelErrorMessage(aNotificationFrame) {