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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/inspector-protocol/network/redirect-interception-modified.html

Issue 2739323003: DevTools protocol interception, blocking & modification of requests (Closed)
Patch Set: Add a comment Created 3 years, 6 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 unified diff | Download patch
OLDNEW
(Empty)
1 <html>
2 <head>
3 <script type="text/javascript" src="../inspector-protocol-test.js"></script>
4 <script type="text/javascript" src="interception-test.js"></script>
5
6 <script>
7 function appendIframe()
8 {
9 var iframe = document.createElement("iframe");
10 iframe.src = "resources/redirect-iframe.html";
11 document.body.appendChild(iframe);
12 }
13
14 function test()
15 {
16 var requestInterceptedDict = {
17 "redirect-iframe.html": InspectorTest.allowRequest,
18 "redirect1.pl": InspectorTest.allowRequest,
19 "redirect2.pl": InspectorTest.allowRequest,
20 "redirect3.pl": function(event) {
21 InspectorTest.modifyRequest(event, {"url": "alternative.js"});
22 },
23 };
24
25 InspectorTest.startInterceptionTest(requestInterceptedDict, 1);
26 }
27 </script>
28 </head>
29 <body onload="runTest();">
30 <p>Tests interception of redirects.</a>
31 </p>
32 </body>
33 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698