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]

git-svn-id: svn://10.0.0.236/trunk@247524 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
reed%reedloden.com 2008-03-11 07:08:16 +00:00
parent 3eeb7c6d89
commit ba4917937f

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