Skip to content

Commit

Permalink
Add declarativeNetRequest (#18403)
Browse files Browse the repository at this point in the history
* Add declarativeNetRequest

* Some deprecation and addition details

* Chrome support details

* Suggestions from review

Co-authored-by: Rob Wu <rob@robwu.nl>

* Correct Safari support in sub-features

* Feedback changes, including:
- requestHeaders note about the "append" operation in Chrome 108
- removed callback from onRuleMatchedDebug
- added options and includeOtherExtensions to testMatchOutcome
- removed options from updateDynamicRules and updateEnabledRulesets
- added extensionId to MatchedRule

* Feedback update:
- removed `request` from `testMatchOutcome`
- moved  `includeOtherExtensions` under `options` in `testMatchOutcome`
- renamed `extensionActionOptions` to `option` under `setExtensionActionOptions`

* Added ResourceType types

* Added onRuleMatchedDebug request properties

* Removed xbl from ResourceType in webRequest & declarativeNetRequest

* declarativeNetRequest.ResourceType Chrome support update

* Apply updates from Apple review

* Further Safari updates

Co-authored-by: Rob Wu <rob@robwu.nl>

* Added Safari preview details

* Revert ModifyHeaderInfo support to Safari 15 (as RuleAction.requestHeaders supported from 15)

* Removed ModifyHeaderInfo and expanded RuleAction.responseHeaders

* MatchedRule not supported by Safari

---------

Co-authored-by: Rob Wu <rob@robwu.nl>
  • Loading branch information
rebloor and Rob--W authored Feb 14, 2023
1 parent 4fcfe14 commit e3eb956
Show file tree
Hide file tree
Showing 4 changed files with 1,857 additions and 22 deletions.
Loading

0 comments on commit e3eb956

Please sign in to comment.