From d74dd0408b9834adf3ea4c3a9c67f84962ee8bad Mon Sep 17 00:00:00 2001 From: Infocatcher Date: Wed, 1 Feb 2017 13:30:17 +0300 Subject: [PATCH] Update for Private Tab 0.2.1.3+, handle toggling using duplication See https://github.com/Infocatcher/Private_Tab/issues/244 https://github.com/Infocatcher/Private_Tab#events --- chrome/content/ownWindow.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/chrome/content/ownWindow.js b/chrome/content/ownWindow.js index 9d541e5..81a40f4 100644 --- a/chrome/content/ownWindow.js +++ b/chrome/content/ownWindow.js @@ -75,8 +75,13 @@ var linkPropsPlusWnd = { this.fixWindowHeight(); } else if(type == "PrivateTab:PrivateChanged") { - if((e.originalTarget || e.target) == this.parentTab) + var tab = e.originalTarget || e.target; + if(tab == this.parentTab) + this.setTitle(); + else if(e.explicitOriginalTarget == this.parentTab) { // Private Tab 0.2.1.3+ + this.parentTab = tab; this.setTitle(); + } } else if(type == "TabClose") { if((e.originalTarget || e.target) == this.parentTab)