From dd3b2ac315c885c213964873e5c9135fd9059364 Mon Sep 17 00:00:00 2001 From: "masayuki@d-toybox.com" Date: Wed, 2 Apr 2008 05:57:47 -0700 Subject: [PATCH] Bug 425474 After toolbar customize, back and forward buttons display fall below. p=Atsushi Sakai, r=gavin, bfx3=beltzner --- browser/base/content/browser.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/browser/base/content/browser.js b/browser/base/content/browser.js index adfa69bfdd8c..b65d4619a1d6 100644 --- a/browser/base/content/browser.js +++ b/browser/base/content/browser.js @@ -233,7 +233,8 @@ function SetClickAndHoldHandlers() // Bug 414797: Clone the dropmarker's menu into both the back and // the forward buttons. - if (document.getElementById("unified-back-forward-button")) { + var unifiedButton = document.getElementById("unified-back-forward-button"); + if (unifiedButton && !unifiedButton._clickHandlersAttached) { var popup = document.getElementById("back-forward-dropmarker") .firstChild.cloneNode(true); var backButton = document.getElementById("back-button"); @@ -245,6 +246,7 @@ function SetClickAndHoldHandlers() forwardButton.setAttribute("type", "menu-button"); forwardButton.appendChild(popup); _addClickAndHoldListenersOnElement(forwardButton); + unifiedButton._clickHandlersAttached = true; } } #endif