From 6daa49bb0361fec7d0943df103551839219f7f63 Mon Sep 17 00:00:00 2001 From: Benoit Pierre Date: Wed, 6 Nov 2024 12:36:40 +0100 Subject: [PATCH] partially fix issues with `privacy.firstparty.isolate=true` --- README.md | 2 +- main.mjs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index edc4073..2305534 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ A Firefox [userscript](https://en.wikipedia.org/wiki/Userscript): combine with [ Supported userscript managers: -- [FireMonkey](https://addons.mozilla.org/en-US/firefox/addon/firemonkey) (as of `2.72`): partially broken when using `privacy.firstparty.isolate=true` and containers. +- [FireMonkey](https://addons.mozilla.org/en-US/firefox/addon/firemonkey) (as of `2.72`): yes. - [GreaseMonkey](https://addons.mozilla.org/en-US/firefox/addon/greasemonkey) (as of `4.13`): broken when using `privacy.firstparty.isolate=true`. diff --git a/main.mjs b/main.mjs index 646ab62..6fbba97 100644 --- a/main.mjs +++ b/main.mjs @@ -57,6 +57,7 @@ export async function main(GM, unsafeWindow) { typeof GM.fetch === "function" // FireMonkey. ? href => GM.fetch(href, { + anonymous: true, method: 'GET', cache: 'force-cache', responseType: 'arrayBuffer', @@ -64,6 +65,7 @@ export async function main(GM, unsafeWindow) { // Other script managers. : href => new Promise((resolve, reject) => { GM.xmlHttpRequest({ + anonymous: true, url: href, method: 'GET', responseType: 'arraybuffer',