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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/inspector/network/warning-for-strict-secure-cookies.html

Issue 2623423002: Add console warning and tests for strict secure cookies.
Patch Set: Update comment Created 3 years, 11 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 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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698