зеркало из https://github.com/mozilla/gecko-dev.git
Bug 774009 - uncaught JS exception while running browser_overflowScroll.js (TypeError: aTab.linkedBrowser is null). r=gavin
This commit is contained in:
Родитель
897e7c1522
Коммит
1e58b7201c
|
@ -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;
|
||||
},
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче