From 060da14eee143a93fbfbeebe05e9debc5c236fce Mon Sep 17 00:00:00 2001 From: stoically Date: Tue, 6 Mar 2018 09:26:17 +0100 Subject: [PATCH] Lets not isolate blank tabs Part of #56 --- src/background/request.js | 5 +++++ src/ui/options.html | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/background/request.js b/src/background/request.js index 7ab207c2..3521796c 100644 --- a/src/background/request.js +++ b/src/background/request.js @@ -382,6 +382,11 @@ class Request { return true; } + if (tab.url === 'about:blank') { + debug('[shouldIsolate] not isolating because the tab url is blank'); + return false; + } + if (tab.url === 'about:blank' && this.requestsSeen[request.requestId]) { debug('[shouldIsolate] not isolating because the tab url is blank and we seen this request before, probably redirect'); return false; diff --git a/src/ui/options.html b/src/ui/options.html index b4556b39..6a53df0c 100644 --- a/src/ui/options.html +++ b/src/ui/options.html @@ -144,7 +144,7 @@