OLD | NEW |
(Empty) | |
| 1 <html> |
| 2 <head> |
| 3 <script src="../inspector-test.js"></script> |
| 4 <script src="../console-test.js"></script> |
| 5 <script src="../network-test.js"></script> |
| 6 <script> |
| 7 |
| 8 function test() |
| 9 { |
| 10 // This is an HTTPS URL, so it shouldn't show the warning. |
| 11 InspectorTest.makeFetch('https://127.0.0.1:8443/inspector/network/resources/
set-cookie.php?secure=true', {}, step1); |
| 12 |
| 13 function step1() { |
| 14 // This is an HTTP URL, so it should show the warning. |
| 15 InspectorTest.makeFetch('http://127.0.0.1:8000/inspector/network/resourc
es/set-cookie.php?secure=true', {}, dumpMessages); |
| 16 } |
| 17 |
| 18 function dumpMessages() |
| 19 { |
| 20 InspectorTest.dumpConsoleMessages(); |
| 21 InspectorTest.completeTest(); |
| 22 } |
| 23 } |
| 24 </script> |
| 25 </head> |
| 26 <body onload="runTest()"> |
| 27 Checks that we show warning message for an attempt to set a secure cookie on an |
| 28 insecure URL. |
| 29 </body> |
| 30 </html> |
OLD | NEW |