mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-11 16:32:59 +00:00
set page proxy state after window shows.
This commit is contained in:
parent
e998481700
commit
709faaa002
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user