From 83a806c9eb960d6099e0a96c831d8b42cba13410 Mon Sep 17 00:00:00 2001 From: Mark Hammond Date: Wed, 13 Mar 2013 09:31:39 +1100 Subject: [PATCH] Bug 849216 - open social toolbar popup in setTimeout handler to avoid auto-rollup handling. r=felipe --HG-- extra : rebase_source : 311aaca5135f223ebcc9f6e3ca81e3c4b2bee219 --- browser/base/content/browser-social.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/browser/base/content/browser-social.js b/browser/base/content/browser-social.js index 8e22d19c34eb..8e4a482051c7 100644 --- a/browser/base/content/browser-social.js +++ b/browser/base/content/browser-social.js @@ -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) {