Fixed cookies not applying in iframes #319. Added translation support for some strings
This commit is contained in:
parent
b2d44f314b
commit
55d76447d4
@ -298,6 +298,7 @@ function copyCookie(frontend, targetUrl, urls, name) {
|
||||
url: url,
|
||||
name: name,
|
||||
value: value,
|
||||
secure: true,
|
||||
firstPartyDomain: firstPartyIsolate.value ? new URL(url).hostname : '',
|
||||
expirationDate: firstPartyIsolate.value ? null : expirationDate,
|
||||
},
|
||||
@ -333,6 +334,7 @@ function getCookiesFromStorage(frontend, urls, name) {
|
||||
url: url,
|
||||
name: cookie.name,
|
||||
value: cookie.value,
|
||||
secure: true,
|
||||
expirationDate: firstPartyIsolate.value ? null : cookie.expirationDate,
|
||||
firstPartyDomain: firstPartyIsolate.value ? new URL(url).hostname : '',
|
||||
})
|
||||
|
@ -195,14 +195,7 @@ async function redirectOfflineInstance(url, tabId) {
|
||||
let counter = 0;
|
||||
|
||||
function isAutoRedirect() {
|
||||
return new Promise(resolve => {
|
||||
browser.storage.local.get('autoRedirect',
|
||||
r => {
|
||||
if (r.autoRedirect == true) resolve(true)
|
||||
else resolve(false)
|
||||
}
|
||||
)
|
||||
})
|
||||
return new Promise(resolve => browser.storage.local.get('autoRedirect', r => resolve(r.autoRedirect == true)))
|
||||
}
|
||||
|
||||
browser.webRequest.onResponseStarted.addListener(
|
||||
@ -243,13 +236,13 @@ browser.contextMenus.create({
|
||||
|
||||
browser.contextMenus.create({
|
||||
id: "copyRaw",
|
||||
title: "Copy Raw",
|
||||
title: browser.i18n.getMessage("copyRaw"),
|
||||
contexts: ["browser_action"]
|
||||
});
|
||||
|
||||
browser.contextMenus.create({
|
||||
id: "unify",
|
||||
title: "Unify",
|
||||
title: browser.i18n.getMessage("unifySettings"),
|
||||
contexts: ["browser_action"]
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user