Bug 689078 - Error in saving tab value: TypeError: this.parent is null; r=dietrich
authorRaymond Lee <raymond@raysquare.com>
Mon, 26 Sep 2011 10:46:25 +0800
changeset 78985 12daae1947d755f438a9ea060832fe888a907005
parent 78984 a9edf67c89547f37836e69ea744e87ab6708c3e2
child 78986 915ca38990ae9a4e3c5af81dc0089dca497aac68
push id78
push userclegnitto@mozilla.com
push dateFri, 16 Dec 2011 17:32:24 +0000
treeherdermozilla-release@79d24e644fdd [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdietrich
bugs689078
milestone9.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 689078 - Error in saving tab value: TypeError: this.parent is null; r=dietrich
browser/base/content/tabview/tabitems.js
--- a/browser/base/content/tabview/tabitems.js
+++ b/browser/base/content/tabview/tabitems.js
@@ -223,17 +223,17 @@ TabItem.prototype = Utils.extend(new Ite
   // Function: getStorageData
   // Get data to be used for persistent storage of this object.
   getStorageData: function TabItem_getStorageData() {
     let data = {
       url: this.tab.linkedBrowser.currentURI.spec,
       groupID: (this.parent ? this.parent.id : 0),
       title: this.tab.label
     };
-    if (this.parent.getActiveTab() == this)
+    if (this.parent && this.parent.getActiveTab() == this)
       data.active = true;
 
     return data;
   },
 
   // ----------
   // Function: save
   // Store persistent for this object.