From b975434f83a48555cacb4f5cafb0b646e2e87f38 Mon Sep 17 00:00:00 2001 From: "blakeross%telocity.com" Date: Sun, 13 Oct 2002 06:28:56 +0000 Subject: [PATCH] set page proxy state after window shows. --- browser/base/content/browser.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/browser/base/content/browser.js b/browser/base/content/browser.js index 435a81bbe17..09440105f06 100644 --- a/browser/base/content/browser.js +++ b/browser/base/content/browser.js @@ -260,8 +260,6 @@ function Startup() var toolbox = document.getElementById("navigator-toolbox"); toolbox.customizeDone = BrowserToolboxCustomizeDone; - SetPageProxyState("invalid", null); - var webNavigation; try { // Create the browser instance component. @@ -403,6 +401,7 @@ function Startup() function delayedStartup(aElt) { gBrowser.addEventListener("load", function(evt) { setTimeout(loadEventHandlers, 0, evt); }, true); + if (gMustLoadSidebar) { var sidebar = document.getElementById("sidebar"); sidebar.setAttribute("src", window.opener.document.getElementById("sidebar").getAttribute("src")); @@ -423,6 +422,8 @@ function delayedStartup(aElt) WindowFocusTimerCallback(aElt); + SetPageProxyState("invalid", null); + // Get the preferences service var prefService = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefService);