From e61a69fb9ed8ad1dc94b4695d9b9052f4a533a52 Mon Sep 17 00:00:00 2001 From: praschke Date: Sun, 29 Oct 2023 21:20:29 +0000 Subject: remove webRequest and webRequestBlocking firefox was previously unable to use declarativeNetRequest, as some browser state (ExtensionDNRStore) wasn't correctly initialized wrt yomitan's use of the DNR API. this bug manifested as an unexpected error on calls to updateDynamicRules(), specifically after the browser has been restarted. switching to the use of session rules instead of dynamic rules fixes this bug. i have tested audio info requests (custom JSON, JPod Alternate, Jisho) that exhibited the bug after browser restart on version 115 and 118, and the audio plays instead of the request failing. webRequest can now be entirely removed. --- ext/permissions.html | 33 +++------------------------------ 1 file changed, 3 insertions(+), 30 deletions(-) (limited to 'ext/permissions.html') diff --git a/ext/permissions.html b/ext/permissions.html index 4aaef3c1..f6956cd7 100644 --- a/ext/permissions.html +++ b/ext/permissions.html @@ -47,22 +47,7 @@ -
-
-
webRequest and webRequestBlocking
-
-

- Yomitan 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. -

-

- Example: Origin: -

-
-
-
-
+
declarativeNetRequest
@@ -77,11 +62,11 @@
-
+
scripting
- Yomitan will sometimes need to inject stylesheets into webpages in order to + Yomitan needs to inject content scripts and stylesheets into webpages in order to properly display the search popup.
@@ -123,18 +108,6 @@
-
-
-
webNavigation (optional)
-
- Yomitan may require this permission to inject content scripts for certain browsers - if Google Docs accessibility mode is enabled. -
-
-
- -
-
Allow in private windows (optional)
-- cgit v1.2.3