From 9c003ec233136690c4efcee15341352400ce145d Mon Sep 17 00:00:00 2001 From: praschke Date: Sun, 29 Oct 2023 16:08:53 +0000 Subject: remove webRequest from chrome for real --- ext/js/background/request-builder.js | 2 +- ext/permissions.html | 16 ++-------------- 2 files changed, 3 insertions(+), 15 deletions(-) (limited to 'ext') diff --git a/ext/js/background/request-builder.js b/ext/js/background/request-builder.js index 663e242b..bf770964 100644 --- a/ext/js/background/request-builder.js +++ b/ext/js/background/request-builder.js @@ -313,7 +313,7 @@ class RequestBuilder { await this._updateDynamicRules({addRules}); try { - return await this._fetchInternal(url, init, null); + return await fetch(url, init); } finally { await this._tryUpdateDynamicRules({removeRuleIds: [id]}); } diff --git a/ext/permissions.html b/ext/permissions.html index 9ede7d27..4aaef3c1 100644 --- a/ext/permissions.html +++ b/ext/permissions.html @@ -47,24 +47,12 @@ -
-
-
webRequest
-
-

- Yomitan uses this permission to collect audio or create Anki notes using - AnkiConnect. - It is also required to surface error information from failed requests. -

-
-
-
-
webRequestBlocking
+
webRequest and webRequestBlocking

- Yomitan uses this permission to ensure certain requests have valid and secure headers. + 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.

-- cgit v1.2.3