OK this one might work

This commit is contained in:
idk
2019-11-27 00:58:53 -05:00
parent e903349e4c
commit 56a220136b
2 changed files with 27 additions and 12 deletions

View File

@@ -13,6 +13,7 @@ function checkHistory() {
var getting = browser.storage.local.get("disable_history");
getting.then(got => {
disable_history = got.disable_history;
if (disable_history == undefined) disable_history = false;
console.log("checking history", disable_history);
document.getElementById("disable-history").checked = disable_history;
});

View File

@@ -63,6 +63,8 @@ var contextScrub = async function(requestDetails) {
let tabInfo = await browser.tabs.get(tabId);
return tabInfo;
} catch (error) {
let tabInfo = await browser.tabs.getCurrent();
return tabInfo;
console.log("(scrub)Context Error", error);
}
};
@@ -102,8 +104,10 @@ var contextSetup = async function(requestDetails) {
if (tabId.cookieStoreId != context[0].cookieStoreId) {
function Create(window) {
function onCreated(tab) {
console.log("(isolate) Closing old, un-isolated tab", window);
if (tabId != undefined) browser.tabs.remove(tabId.id);
if (tabId != undefined) {
console.log("(isolate) Closing old, un-isolated tab");
browser.tabs.remove(tabId.id);
}
}
var created = browser.tabs.create({
active: true,
@@ -128,8 +132,10 @@ var contextSetup = async function(requestDetails) {
if (tabId.cookieStoreId != context[0].cookieStoreId) {
function Create(window) {
function onCreated(tab) {
console.log("(isolate) Closing old, un-isolated tab");
if (tabId != undefined) browser.tabs.remove(tabId.id);
if (tabId != undefined) {
console.log("(isolate) Closing old, un-isolated tab");
browser.tabs.remove(tabId.id);
}
}
var created = browser.tabs.create({
active: true,
@@ -154,8 +160,10 @@ var contextSetup = async function(requestDetails) {
if (tabId.cookieStoreId != context[0].cookieStoreId) {
function Create(window) {
function onCreated(tab) {
console.log("(isolate) Closing old, un-isolated tab");
if (tabId != undefined) browser.tabs.remove(tabId.id);
if (tabId != undefined) {
console.log("(isolate) Closing old, un-isolated tab");
browser.tabs.remove(tabId.id);
}
}
var created = browser.tabs.create({
active: true,
@@ -180,8 +188,10 @@ var contextSetup = async function(requestDetails) {
if (tabId.cookieStoreId != context[0].cookieStoreId) {
function Create(window) {
function onCreated(tab) {
console.log("(isolate) Closing old, un-isolated tab");
if (tabId != undefined) browser.tabs.remove(tabId.id);
if (tabId != undefined) {
console.log("(isolate) Closing old, un-isolated tab");
browser.tabs.remove(tabId.id);
}
}
var created = browser.tabs.create({
active: true,
@@ -206,8 +216,10 @@ var contextSetup = async function(requestDetails) {
if (tabId.cookieStoreId != context[0].cookieStoreId) {
function Create(window) {
function onCreated(tab) {
console.log("(isolate) Closing old, un-isolated tab");
if (tabId != undefined) browser.tabs.remove(tabId.id);
if (tabId != undefined) {
console.log("(isolate) Closing old, un-isolated tab");
browser.tabs.remove(tabId.id);
}
}
var created = browser.tabs.create({
active: true,
@@ -237,8 +249,10 @@ var contextSetup = async function(requestDetails) {
if (tabId.cookieStoreId != context[0].cookieStoreId) {
function Create(window) {
function onCreated(tab) {
console.log("(isolate) Closing old, un-isolated tab");
if (tabId != undefined) browser.tabs.remove(tabId.id);
if (tabId != undefined) {
console.log("(isolate) Closing old, un-isolated tab");
browser.tabs.remove(tabId.id);
}
}
var created = browser.tabs.create({
active: true,