Skip to content

Commit

Permalink
Emphasize that dnr-dynamic-with-options does not use BG
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob--W committed May 17, 2023
1 parent ba07083 commit e72a98d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion dnr-dynamic-with-options/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Demonstrates a generic way to request host permissions and register
declarativeNetRequest rules to modify network requests, without any
install-time permission warnings. The options_ui page offers a way to request
install-time permission warnings. The `options_ui` page offers a way to request
permissions and register declarative net request (DNR) rules.

## What it does
Expand Down Expand Up @@ -72,6 +72,10 @@ How to retrieve and dynamically register declarativeNetRequest rules, using:
`declarativeNetRequest.updateSessionRules` to manage DNR rules that are
session-scoped, that is, cleared when an extension unloads or the browser quits.

How these registered DNR rules can modify network requests without requiring an
active extension script in the background, in a cross-browser way (at least in
Firefox, Chrome, and Safari).

## Note on `optional_host_permissions` and `optional_permissions`

Firefox does not support `optional_host_permissions` permissions, it
Expand Down

0 comments on commit e72a98d

Please sign in to comment.