Bug 774009 - uncaught JS exception while running browser_overflowScroll.js (TypeError: aTab.linkedBrowser is null). r=gavin

This commit is contained in:
Dão Gottwald 2012-09-29 17:59:43 +02:00
Родитель 897e7c1522
Коммит 1e58b7201c
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -66,10 +66,12 @@ var tabPreviews = {
ctx.drawWindow(win, win.scrollX, win.scrollY,
snippetWidth, snippetWidth * this.aspectRatio, "rgb(255,255,255)");
if (aStore) {
if (aStore &&
aTab.linkedBrowser /* bug 795608: the tab may got removed while drawing the thumbnail */) {
aTab.__thumbnail = thumbnail;
aTab.__thumbnail_lastURI = aTab.linkedBrowser.currentURI.spec;
}
return thumbnail;
},