mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Don't save a tab that has no parent (it's closing).
This commit is contained in:
parent
09f130d786
commit
04122a215d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user