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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/security/cookies/third-party-cookie-blocking-main-frame.html

Issue 2125523003: Rename setAlwaysAcceptCookies to setBlockThirdPartyCookies (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <title>Checks that a POST resulting in a main frame navigation is not affected b y third-party cookie rules</title> 3 <title>Checks that a POST resulting in a main frame navigation is not affected b y third-party cookie rules</title>
4 <script> 4 <script>
5 if (window.testRunner) { 5 if (window.testRunner) {
6 testRunner.waitUntilDone(); 6 testRunner.waitUntilDone();
7 testRunner.dumpAsText(); 7 testRunner.dumpAsText();
8 testRunner.dumpChildFramesAsText(); 8 testRunner.dumpChildFramesAsText();
9 9
10 // Start with a clean state, as otherwise an expired cookie for this domain could affect behavior with CFNetwork. 10 // Start with a clean state, as otherwise an expired cookie for this domain could affect behavior with CFNetwork.
11 // Can be removed once <rdar://problem/10080130> is fixed. 11 // Can be removed once <rdar://problem/10080130> is fixed.
12 if (testRunner.setPrivateBrowsingEnabled) 12 if (testRunner.setPrivateBrowsingEnabled)
13 testRunner.setPrivateBrowsingEnabled(true); 13 testRunner.setPrivateBrowsingEnabled(true);
14 14
15 testRunner.setAlwaysAcceptCookies(false); 15 testRunner.setBlockThirdPartyCookies(true);
16 } 16 }
17 17
18 function runTest() 18 function runTest()
19 { 19 {
20 document.getElementById('form').submit(); 20 document.getElementById('form').submit();
21 } 21 }
22 </script> 22 </script>
23 <body onload="runTest()"> 23 <body onload="runTest()">
24 <div> 24 <div>
25 <form id="form" action="http://localhost:8000/security/cookies/resources /set-a-cookie.php" method="POST"> 25 <form id="form" action="http://localhost:8000/security/cookies/resources /set-a-cookie.php" method="POST">
26 <input type="submit" /> 26 <input type="submit" />
27 </form> 27 </form>
28 <iframe src="javascript:false" name="iframe"></iframe> 28 <iframe src="javascript:false" name="iframe"></iframe>
29 </div> 29 </div>
30 </body> 30 </body>
31 </html> 31 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698