Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8942)

Unified Diff: chrome/common/extensions/docs/templates/intros/declarativeWebRequest.html

Issue 154473002: Support redirectUrl at onHeadersReceived in WebRequest / DWR API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add more tests Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/docs/templates/intros/declarativeWebRequest.html
diff --git a/chrome/common/extensions/docs/templates/intros/declarativeWebRequest.html b/chrome/common/extensions/docs/templates/intros/declarativeWebRequest.html
index bae8a561240cfa3230e3976981a2af551f77db13..32691d0f168a9fca90e197b5168f1f8d12e5f6d6 100644
--- a/chrome/common/extensions/docs/templates/intros/declarativeWebRequest.html
+++ b/chrome/common/extensions/docs/templates/intros/declarativeWebRequest.html
@@ -180,10 +180,10 @@ request stages that are compatible with conditions and actions.
<tr><td>EditRequestCookie<td><td>✓<td><td>
<tr><td>EditResponseCookie<td><td><td>✓<td>
<tr><td>IgnoreRules<td>✓<td>✓<td>✓<td>✓
- <tr><td>RedirectByRegEx<td>✓<td><td><td>
- <tr><td>RedirectRequest<td>✓<td><td><td>
- <tr><td>RedirectToEmptyDocument<td>✓<td><td><td>
- <tr><td>RedirectToTransparentImage<td>✓<td><td><td>
+ <tr><td>RedirectByRegEx<td>✓<td><td>✓<td>
+ <tr><td>RedirectRequest<td>✓<td><td>✓<td>
+ <tr><td>RedirectToEmptyDocument<td>✓<td><td>✓<td>
+ <tr><td>RedirectToTransparentImage<td>✓<td><td>✓<td>
<tr><td>RemoveRequestCookie<td><td>✓<td><td>
<tr><td>RemoveRequestHeader<td><td>✓<td><td>
<tr><td>RemoveResponseCookie<td><td><td>✓<td>
@@ -203,9 +203,8 @@ request stages that are compatible with conditions and actions.
condition with a <code>new chrome.declarativeWebRequest.CancelRequest()</code>
action because both of them can be evaluated in the onHeadersReceived stage.
It is, however, impossible to combine the request matcher with a
-<code>new chrome.declarativeWebRequest.RedirectToTransparentImage()</code>
-because redirects cannot be executed any more by the time the content
-type has been determined.
+<code>new chrome.declarativeWebRequest.SetRequestHeader()</code>
+because request headers cannot be set any more by the time the content type has been terminated.
</p>
<h2 id="precedences">Using priorities to override rules</h2>

Powered by Google App Engine
This is Rietveld 408576698