зеркало из https://github.com/mozilla/gecko-dev.git
Bug 664670 - imageDataCb passed to Storage.getTabData in TabItem__reconnect runs when the tab is already gone; r=dao
This commit is contained in:
Родитель
0cf65e2426
Коммит
f3fe7383f8
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче