From f6861164a34f2722b70feb0161bcfec2dd0d78ad Mon Sep 17 00:00:00 2001 From: ManeraKai Date: Sun, 19 Jun 2022 18:49:42 +0300 Subject: Disabled cookies for incognito for this release #291 #340 --- src/pages/background/background.js | 12 ------------ src/pages/options/index.html | 2 +- src/pages/options/widgets/general.pug | 4 ++-- 3 files changed, 3 insertions(+), 15 deletions(-) (limited to 'src/pages') diff --git a/src/pages/background/background.js b/src/pages/background/background.js index d19828ca..5b2924ae 100644 --- a/src/pages/background/background.js +++ b/src/pages/background/background.js @@ -147,20 +147,8 @@ browser.webRequest.onBeforeRequest.addListener( ["blocking"] ); -let incognitoList = []; -browser.tabs.onCreated.addListener( - tab => { - if (tab.incognito) { - incognitoList.push(tab.id); - if (incognitoList.length == 1) browser.tabs.create({ url: browser.runtime.getURL("/pages/background/incognito.html"), active: false }); - } - } -); - browser.tabs.onRemoved.addListener( tabId => { - incognitoList.pop(tabId) - const i = BYPASSTABs.indexOf(tabId); if (i > -1) { BYPASSTABs.splice(i, 1); diff --git a/src/pages/options/index.html b/src/pages/options/index.html index 0bb4ecde..9e318512 100644 --- a/src/pages/options/index.html +++ b/src/pages/options/index.html @@ -71,7 +71,7 @@
-

First-party isolation (Enable for Tor)

+

Tor Browser

diff --git a/src/pages/options/widgets/general.pug b/src/pages/options/widgets/general.pug index c8e043b9..fe144a57 100644 --- a/src/pages/options/widgets/general.pug +++ b/src/pages/options/widgets/general.pug @@ -10,8 +10,8 @@ section#general_page.option-block option(value="light" data-localise="__MSG_light__") Light option(value="dark" data-localise="__MSG_dark__") Dark - .some-block.option-block - h4() First-party isolation (Enable for Tor) + //- .some-block.option-block + h4 Tor Browser input#firstPartyIsolate(type="checkbox") .some-block.option-block -- cgit 1.4.1