From d91a81ffffe4ba3b0620298c71250cd58fb564e0 Mon Sep 17 00:00:00 2001 From: Jonathan Kingston Date: Tue, 4 Apr 2017 15:33:11 +0100 Subject: [PATCH] Fixing about: scheme assignment. Fixes #413 --- webextension/background.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webextension/background.js b/webextension/background.js index 57e7c6a..9ae91e8 100644 --- a/webextension/background.js +++ b/webextension/background.js @@ -160,7 +160,8 @@ const assignManager = { isTabPermittedAssign(tab) { // Ensure we are not an important about url // Ensure we are not in incognito mode - if (this.CLOSEABLE_WINDOWS.has(tab.url) + const url = new URL(tab.url); + if (url.protocol === "about:" || tab.incognito) { return false; }