From 124fe70e86cec7684a93432c71977d2c4ccc0236 Mon Sep 17 00:00:00 2001 From: "sspitzer@mozilla.org" Date: Sun, 11 Nov 2007 10:36:52 -0800 Subject: [PATCH] fix for bug #402668: reduce Ts by initially hiding editBookmarkPanel and autocomplete panel r=gavin, a=schrep --- browser/base/content/browser-places.js | 3 +++ browser/base/content/browser.xul | 4 ++-- browser/base/content/urlbarBindings.xml | 13 +++++++++++++ toolkit/content/widgets/autocomplete.xml | 11 +++++++++++ 4 files changed, 29 insertions(+), 2 deletions(-) diff --git a/browser/base/content/browser-places.js b/browser/base/content/browser-places.js index 8e9671d12cd1..f682db05a19b 100644 --- a/browser/base/content/browser-places.js +++ b/browser/base/content/browser-places.js @@ -52,6 +52,9 @@ var PlacesCommandHook = { get panel() { delete this.panel; var element = document.getElementById("editBookmarkPanel"); + // initially the panel is hidden + // to avoid impacting startup / new window performance + element.hidden = false; element.addEventListener("popuphiding", this, false); element.addEventListener("keypress", this, true); return this.panel = element; diff --git a/browser/base/content/browser.xul b/browser/base/content/browser.xul index 117dbedeaf3c..ece22695ae39 100644 --- a/browser/base/content/browser.xul +++ b/browser/base/content/browser.xul @@ -99,9 +99,9 @@ onclick="checkForMiddleClick(this, event);"/> - +