Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DNR] Add support for request method rule conditions
Add support for the 'requestMethods' and 'excludedRequestMethods' rule conditions. These conditions allow declarativeNetRequest rules to target requests based on HTTP request method (e.g. "GET", "POST"). Bug: 1013583 Change-Id: Idfbe5504da6aeab18f8dda86de4c806cc000bfba Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2687540 Commit-Queue: Dave Vandyke <kzar@kzar.co.uk> Reviewed-by: Karan Bhatia <karandeepb@chromium.org> Reviewed-by: Charlie Harrison <csharrison@chromium.org> Reviewed-by: Matt Menke <mmenke@chromium.org> Cr-Commit-Position: refs/heads/master@{#869140}
- Loading branch information
Showing
33 changed files
with
523 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
chrome/test/data/extensions/declarative_net_request/post_to_page_with_two_frames.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<html> | ||
<body> | ||
<form id="form" method="POST" action="./page_with_two_frames.html"></form> | ||
|
||
<script type="text/javascript"> | ||
document.getElementById("form").submit(); | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.