From 2ef9b28e450aa2ba6df309895328fac53aad0543 Mon Sep 17 00:00:00 2001 From: praschke Date: Sun, 22 Oct 2023 19:39:02 +0100 Subject: restore webRequestBlocking on Firefox --- dev/data/manifest-variants.json | 19 ++++++++++++++++++- docs/permissions.md | 6 +++--- 2 files changed, 21 insertions(+), 4 deletions(-) diff --git a/dev/data/manifest-variants.json b/dev/data/manifest-variants.json index c8e2c33b..07c98b91 100644 --- a/dev/data/manifest-variants.json +++ b/dev/data/manifest-variants.json @@ -80,7 +80,6 @@ "storage", "clipboardWrite", "unlimitedStorage", - "webRequest", "declarativeNetRequest", "scripting", "offscreen" @@ -249,6 +248,24 @@ "nativeMessaging" ] }, + { + "action": "add", + "path": [ + "permissions" + ], + "items": [ + "webRequest" + ] + }, + { + "action": "add", + "path": [ + "permissions" + ], + "items": [ + "webRequestBlocking" + ] + }, { "action": "remove", "path": [ diff --git a/docs/permissions.md b/docs/permissions.md index 4fa7ab83..10046210 100644 --- a/docs/permissions.md +++ b/docs/permissions.md @@ -9,12 +9,12 @@ `unlimitedStorage` is used to help prevent web browsers from unexpectedly deleting dictionary data. -* `webRequest` and `webRequestBlocking` _(Manifest V2 only)_
+* `webRequest` and `webRequestBlocking` _(Firefox only)_
Yomichan uses these permissions to ensure certain requests have valid and secure headers. This sometimes involves removing or changing the `Origin` request header, as this can be used to fingerprint browser configuration. -* `declarativeNetRequest` _(Manifest V3 only)_
+* `declarativeNetRequest` _(Chrome only)_
Yomichan uses this permission to ensure certain requests have valid and secure headers. This sometimes involves removing or changing the `Origin` request header, as this can be used to fingerprint browser configuration. @@ -23,7 +23,7 @@ Yomichan will sometimes need to inject stylesheets into webpages in order to properly display the search popup. -* `offscreen` __(Manifest v3 only)_
+* `offscreen` __(Chrome only)_
Yomitan uses this permission to create a secondary backend document that has DOM access, given that Manifest v3 service workers do not. Service workers can then reach out to out to this document in order to complete actions that require access to DOM APIs, such as any that require clipboard access. -- cgit v1.2.3