зеркало из https://github.com/mozilla/pjs.git
set page proxy state after window shows.
This commit is contained in:
Родитель
377596c9cd
Коммит
b975434f83
|
@ -260,8 +260,6 @@ function Startup()
|
||||||
var toolbox = document.getElementById("navigator-toolbox");
|
var toolbox = document.getElementById("navigator-toolbox");
|
||||||
toolbox.customizeDone = BrowserToolboxCustomizeDone;
|
toolbox.customizeDone = BrowserToolboxCustomizeDone;
|
||||||
|
|
||||||
SetPageProxyState("invalid", null);
|
|
||||||
|
|
||||||
var webNavigation;
|
var webNavigation;
|
||||||
try {
|
try {
|
||||||
// Create the browser instance component.
|
// Create the browser instance component.
|
||||||
|
@ -403,6 +401,7 @@ function Startup()
|
||||||
function delayedStartup(aElt)
|
function delayedStartup(aElt)
|
||||||
{
|
{
|
||||||
gBrowser.addEventListener("load", function(evt) { setTimeout(loadEventHandlers, 0, evt); }, true);
|
gBrowser.addEventListener("load", function(evt) { setTimeout(loadEventHandlers, 0, evt); }, true);
|
||||||
|
|
||||||
if (gMustLoadSidebar) {
|
if (gMustLoadSidebar) {
|
||||||
var sidebar = document.getElementById("sidebar");
|
var sidebar = document.getElementById("sidebar");
|
||||||
sidebar.setAttribute("src", window.opener.document.getElementById("sidebar").getAttribute("src"));
|
sidebar.setAttribute("src", window.opener.document.getElementById("sidebar").getAttribute("src"));
|
||||||
|
@ -423,6 +422,8 @@ function delayedStartup(aElt)
|
||||||
|
|
||||||
WindowFocusTimerCallback(aElt);
|
WindowFocusTimerCallback(aElt);
|
||||||
|
|
||||||
|
SetPageProxyState("invalid", null);
|
||||||
|
|
||||||
// Get the preferences service
|
// Get the preferences service
|
||||||
var prefService = Components.classes["@mozilla.org/preferences-service;1"]
|
var prefService = Components.classes["@mozilla.org/preferences-service;1"]
|
||||||
.getService(Components.interfaces.nsIPrefService);
|
.getService(Components.interfaces.nsIPrefService);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче