From a4192094469300b6b096567a993121cb1e5b4067 Mon Sep 17 00:00:00 2001 From: Infocatcher Date: Sat, 13 Aug 2016 00:24:03 +0300 Subject: [PATCH] =?UTF-8?q?Correctly=20handle=20opening=20of=20private:?= =?UTF-8?q?=E2=80=A6=20in=20current=20non-remote=20tab=20(#162,=20#211)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bootstrap.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bootstrap.js b/bootstrap.js index d9a481e..0e625db 100644 --- a/bootstrap.js +++ b/bootstrap.js @@ -1361,6 +1361,14 @@ var privateTab = { this.setTabState(tab); // Private tab may be restored using our API return; } + if( + this.isRemoteTab(tab) + && tab.linkedBrowser + && tab.linkedBrowser.currentURI.spec == "about:blank" + ) { // Yay, yay, let's take yet another strange trick + _log(e.type + ": about:blank remote tab, looks like this is buggy event (was loaded some URL into non-remote tab?)"); + return; + } var window = tab.ownerDocument.defaultView; if( this.isMultiProcessWindow(window) // Just always set...