aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-01-03 15:29:29 -0500
committerGitHub <noreply@github.com>2021-01-03 15:29:29 -0500
commitd50d7a4a3a5e307838348726de331cf5eb283bff (patch)
tree24b0a67120911c346fbb6deaf3fa2ad5b62f7edd
parent8e304b83c685dde17a00d402877a21303b7c11f2 (diff)
Update permissions pages with info about MV3 permissions (#1200)
-rw-r--r--docs/permissions.md11
-rw-r--r--ext/bg/permissions.html26
2 files changed, 35 insertions, 2 deletions
diff --git a/docs/permissions.md b/docs/permissions.md
index 8156c746..49e201a6 100644
--- a/docs/permissions.md
+++ b/docs/permissions.md
@@ -9,11 +9,20 @@
`unlimitedStorage` is used to help prevent web browsers from unexpectedly
deleting dictionary data.
-* `webRequest` and `webRequestBlocking` <br>
+* `webRequest` and `webRequestBlocking` _(Manifest V2 only)_ <br>
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)_ <br>
+ 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.
+
+* `scripting` _(Manifest V3 only)_ <br>
+ Yomichan will sometimes need to inject stylesheets into webpages in order to
+ properly display the search popup.
+
* `nativeMessaging` <br>
Yomichan has the ability to communicate with an optional native messaging component in order to support
parsing large blocks of Japanese text using
diff --git a/ext/bg/permissions.html b/ext/bg/permissions.html
index 52bc084e..05266b22 100644
--- a/ext/bg/permissions.html
+++ b/ext/bg/permissions.html
@@ -45,7 +45,7 @@
</div>
</div>
</div></div>
- <div class="settings-item"><div class="settings-item-inner">
+ <div class="settings-item" data-hide-for-manifest-version="3"><div class="settings-item-inner">
<div class="settings-item-left">
<div class="settings-item-label"><code>webRequest</code> and <code>webRequestBlocking</code></div>
<div class="settings-item-description">
@@ -60,6 +60,30 @@
</div>
</div>
</div></div>
+ <div class="settings-item" data-show-for-manifest-version="3"><div class="settings-item-inner">
+ <div class="settings-item-left">
+ <div class="settings-item-label"><code>declarativeNetRequest</code></div>
+ <div class="settings-item-description">
+ <p>
+ Yomichan uses this permission to ensure certain requests have valid and secure headers.
+ This sometimes involves removing or changing the <code>Origin</code> request header,
+ as this can be used to fingerprint browser configuration.
+ </p>
+ <p>
+ Example: <code>Origin: <span id="extension-id-example"></span></code>
+ </p>
+ </div>
+ </div>
+ </div></div>
+ <div class="settings-item" data-show-for-manifest-version="3"><div class="settings-item-inner">
+ <div class="settings-item-left">
+ <div class="settings-item-label"><code>scripting</code></div>
+ <div class="settings-item-description">
+ Yomichan will sometimes need to inject stylesheets into webpages in order to
+ properly display the search popup.
+ </div>
+ </div>
+ </div></div>
<div class="settings-item"><div class="settings-item-inner">
<div class="settings-item-left">
<div class="settings-item-label"><code>nativeMessaging</code></div>