Skip to content

Commit

Permalink
Add debug logs aroung "SessionStore:restoreHistory"
Browse files Browse the repository at this point in the history
  • Loading branch information
Infocatcher committed Jan 14, 2017
1 parent 57b644d commit 8988561
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion content.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,12 @@ PrivateTabContent.prototype = {
handleSessionRestoring: function(data) {
var tabData = data.tabData;
var isPrivate = tabData && tabData.attributes && "privateTab-isPrivate" in tabData.attributes;
if(isPrivate != this.isPrivate)
if(isPrivate == this.isPrivate)
_log("[frame script] handleSessionRestoring(): private state is already " + isPrivate);
else {
_log("[frame script] handleSessionRestoring(): private state -> " + isPrivate);
this.isPrivate = isPrivate;
}
},

togglePrivate: function(isPrivate, silent) {
Expand Down

0 comments on commit 8988561

Please sign in to comment.