Skip to content

Commit 2ef9b28

Browse files
committed
restore webRequestBlocking on Firefox
1 parent 367e10d commit 2ef9b28

File tree

2 files changed

+21
-4
lines changed

2 files changed

+21
-4
lines changed

dev/data/manifest-variants.json

+18-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@
8080
"storage",
8181
"clipboardWrite",
8282
"unlimitedStorage",
83-
"webRequest",
8483
"declarativeNetRequest",
8584
"scripting",
8685
"offscreen"
@@ -249,6 +248,24 @@
249248
"nativeMessaging"
250249
]
251250
},
251+
{
252+
"action": "add",
253+
"path": [
254+
"permissions"
255+
],
256+
"items": [
257+
"webRequest"
258+
]
259+
},
260+
{
261+
"action": "add",
262+
"path": [
263+
"permissions"
264+
],
265+
"items": [
266+
"webRequestBlocking"
267+
]
268+
},
252269
{
253270
"action": "remove",
254271
"path": [

docs/permissions.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
`unlimitedStorage` is used to help prevent web browsers from unexpectedly
1010
deleting dictionary data.
1111

12-
* `webRequest` and `webRequestBlocking` _(Manifest V2 only)_ <br>
12+
* `webRequest` and `webRequestBlocking` _(Firefox only)_ <br>
1313
Yomichan uses these permissions to ensure certain requests have valid and secure headers.
1414
This sometimes involves removing or changing the `Origin` request header,
1515
as this can be used to fingerprint browser configuration.
1616

17-
* `declarativeNetRequest` _(Manifest V3 only)_ <br>
17+
* `declarativeNetRequest` _(Chrome only)_ <br>
1818
Yomichan uses this permission to ensure certain requests have valid and secure headers.
1919
This sometimes involves removing or changing the `Origin` request header,
2020
as this can be used to fingerprint browser configuration.
@@ -23,7 +23,7 @@
2323
Yomichan will sometimes need to inject stylesheets into webpages in order to
2424
properly display the search popup.
2525

26-
* `offscreen` __(Manifest v3 only)_ <br>
26+
* `offscreen` __(Chrome only)_ <br>
2727
Yomitan uses this permission to create a secondary backend document that has DOM access, given that Manifest v3
2828
service workers do not. Service workers can then reach out to out to this document in order to complete
2929
actions that require access to DOM APIs, such as any that require clipboard access.

0 commit comments

Comments
 (0)