Don't save a tab that has no parent (it's closing).

This commit is contained in:
Edward Lee 2010-07-24 16:28:17 -07:00
parent 09f130d786
commit 04122a215d

View File

@ -222,7 +222,7 @@ window.TabItem.prototype = Utils.extend(new Item(), {
// saveImageData - true to include thumbnail pixels (and page title as well); default false
save: function(saveImageData) {
try{
if (!this.tab || !this.reconnected) // too soon/late to save
if (!this.tab || this.tab.parentNode == null || !this.reconnected) // too soon/late to save
return;
var data = this.getStorageData(saveImageData);