set page proxy state after window shows.

This commit is contained in:
blakeross%telocity.com 2002-10-13 06:28:56 +00:00
parent e998481700
commit 709faaa002

View File

@ -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);