From 2efb4a672ee677e8b5e9790ca7a45282f6c7b7f5 Mon Sep 17 00:00:00 2001 From: Matvey Soloviev Date: Fri, 13 Apr 2018 06:55:45 -0400 Subject: [PATCH] Remember that forked tabs are okay with the page's unnatural containment. --- src/js/background/assignManager.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/js/background/assignManager.js b/src/js/background/assignManager.js index be59095..6e8e5d9 100644 --- a/src/js/background/assignManager.js +++ b/src/js/background/assignManager.js @@ -145,8 +145,12 @@ const assignManager = { if(options.originUrl) { const originUrl = new window.URL(options.originUrl); const newUrl = new window.URL(options.url); - if(originUrl.hostname === newUrl.hostname) + if(originUrl.hostname === newUrl.hostname) { + // in fact, set this URL-tab combo exempted so future manual browsing + // within it does also not trigger new prompts + this.storageArea.setExempted(options.url, options.tabId); return {}; + } } const userContextId = this.getUserContextIdFromCookieStore(tab);