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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/inspector/network/x-frame-options-deny.html

Issue 1988933003: Revert "Introduce AncestorThrottle, which will process 'X-Frame-Options' headers." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 7 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
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../inspector-test.js"></script> 3 <script src="../inspector-test.js"></script>
4 <script> 4 <script>
5 function loadIFrameWithDownload() 5 function loadIFrameWithDownload()
6 { 6 {
7 var iframe = document.createElement("iframe"); 7 var iframe = document.createElement("iframe");
8 iframe.setAttribute("src", "http://127.0.0.1:8000/security/XFrameOptions/res ources/x-frame-options-deny.cgi"); 8 iframe.setAttribute("src", "http://127.0.0.1:8000/security/XFrameOptions/res ources/x-frame-options-deny.cgi");
9 document.body.appendChild(iframe); 9 document.body.appendChild(iframe);
10 } 10 }
(...skipping 18 matching lines...) Expand all
29 function loadingFinished(requestId, finishTime) 29 function loadingFinished(requestId, finishTime)
30 { 30 {
31 var request = InspectorTest.networkLog.requestForId(requestId); 31 var request = InspectorTest.networkLog.requestForId(requestId);
32 if (/x-frame-options-deny\.cgi/.exec(request.url)) 32 if (/x-frame-options-deny\.cgi/.exec(request.url))
33 InspectorTest.completeTest(); 33 InspectorTest.completeTest();
34 } 34 }
35 35
36 function loadingFailed(requestId, time, localizedDescription, canceled) 36 function loadingFailed(requestId, time, localizedDescription, canceled)
37 { 37 {
38 var request = InspectorTest.networkLog.requestForId(requestId); 38 var request = InspectorTest.networkLog.requestForId(requestId);
39 if (/x-frame-options-deny\.cgi/.exec(request.url)) { 39 if (/x-frame-options-deny\.cgi/.exec(request.url))
40 InspectorTest.addResult("TODO(mkwst): This started failing when we m oved XFO to the browser.");
41 InspectorTest.completeTest(); 40 InspectorTest.completeTest();
42 }
43 } 41 }
44 } 42 }
45 </script> 43 </script>
46 </head> 44 </head>
47 <body onload="runTest()"> 45 <body onload="runTest()">
48 <p>Tests that responseReceived is called on NetworkDispatcher for resource reque sts denied due to X-Frame-Options header.</p> 46 <p>Tests that responseReceived is called on NetworkDispatcher for resource reque sts denied due to X-Frame-Options header.</p>
49 </body> 47 </body>
50 </html> 48 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698