bug Bug 480761: avoid accidentally calling endLoading too early on startup, reduces drawing to a single drawWindow. r=mfinkle

This commit is contained in:
Taras Glek 2009-03-06 11:36:23 -08:00
parent 5c263e373f
commit 5c7e9e9a34

View File

@ -129,8 +129,8 @@ var Browser = {
ws.updateSize(w, h);
if (Browser._isStartup) {
// now we can set the viewport to a real size and draw the page
ws.endUpdateBatch();
Browser.canvasBrowser.endLoading();
Browser._selectedTab.updateThumbnail();
Browser._isStartup = false;
}
@ -1136,8 +1136,7 @@ ProgressController.prototype = {
if (this.browser.currentURI.spec != "about:blank")
this.browser.contentWindow.focus();
if (!this._isStartup)
Browser.canvasBrowser.endLoading();
Browser.canvasBrowser.endLoading();
}
if (!this._isStartup)
this._tab.updateThumbnail();