From af2b4b79a9dc1e7d3b7c1fd9b8bd4c3f60e110d0 Mon Sep 17 00:00:00 2001 From: Jonathan Kingston Date: Mon, 28 Aug 2017 17:46:55 -0700 Subject: [PATCH] Remove about: paths from showTabs as it prevents the tabs being created. Fixes #773 --- webextension/js/background/backgroundLogic.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/webextension/js/background/backgroundLogic.js b/webextension/js/background/backgroundLogic.js index 2fd5c5c..a928d53 100644 --- a/webextension/js/background/backgroundLogic.js +++ b/webextension/js/background/backgroundLogic.js @@ -74,6 +74,11 @@ const backgroundLogic = { url = undefined; } + // We can't open these we just have to throw them away + if (new URL(url).protocol === "about:") { + return; + } + return browser.tabs.create({ url, active,