Bug 664670 - imageDataCb passed to Storage.getTabData in TabItem__reconnect runs when the tab is already gone; r=dao

This commit is contained in:
Tim Taubert 2011-07-08 14:50:33 +02:00
Родитель 0cf65e2426
Коммит f3fe7383f8
1 изменённых файлов: 4 добавлений и 1 удалений

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

@ -265,8 +265,11 @@ TabItem.prototype = Utils.extend(new Item(), new Subscribable(), {
let tabData = null;
let self = this;
let imageDataCb = function(imageData) {
// we could have been unlinked while waiting for the thumbnail to load
if (!self.tab)
return;
Utils.assertThrow(tabData, "tabData");
tabData.imageData = imageData;
let currentUrl = self.tab.linkedBrowser.currentURI.spec;