Bug 419990 - "Firefox hides the urlbar dropmarker too late when chromehidden contains toolbar" (Correct the chrome size accounting when chromehidden contains toolbar) [p=frnchfrgg-mozbugs@altern.org (RIVAUD Julien [_FrnchFrgg_]) r=Mano a1.9=shaver]

This commit is contained in:
reed@reedloden.com 2008-03-11 00:08:16 -07:00
parent 3f2978a173
commit 4163810fb8

View File

@ -769,6 +769,12 @@ function BrowserStartup()
document.documentElement.setAttribute("height", defaultHeight);
}
if (gURLBar && document.documentElement.getAttribute("chromehidden").indexOf("toolbar") != -1) {
gURLBar.setAttribute("readonly", "true");
gURLBar.setAttribute("enablehistory", "false");
}
setTimeout(delayedStartup, 0);
}
@ -896,11 +902,6 @@ function delayedStartup()
BrowserOffline.init();
OfflineApps.init();
if (gURLBar && document.documentElement.getAttribute("chromehidden").indexOf("toolbar") != -1) {
gURLBar.setAttribute("readonly", "true");
gURLBar.setAttribute("enablehistory", "false");
}
gBrowser.addEventListener("pageshow", function(evt) { setTimeout(pageShowEventHandlers, 0, evt); }, true);
window.addEventListener("keypress", ctrlNumberTabSelection, false);