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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/security/cookies/resources/first-party-cookie-allow.xsl

Issue 2125523003: Rename setAlwaysAcceptCookies to setBlockThirdPartyCookies (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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 <?xml version="1.0" encoding="ISO-8859-1"?> 1 <?xml version="1.0" encoding="ISO-8859-1"?>
2 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> 2 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
3 <xsl:template match="/"> 3 <xsl:template match="/">
4 <html> 4 <html>
5 <title>Checks that an XSLT-generated HTML doc allows first-party cookies</ title> 5 <title>Checks that an XSLT-generated HTML doc allows first-party cookies</ title>
6 <script> 6 <script>
7 if (window.testRunner) { 7 if (window.testRunner) {
8 testRunner.waitUntilDone(); 8 testRunner.waitUntilDone();
9 testRunner.dumpAsText(); 9 testRunner.dumpAsText();
10 testRunner.dumpChildFramesAsText(); 10 testRunner.dumpChildFramesAsText();
11 11
12 // Start with a clean state, as otherwise an expired cookie for this domain could affect behavior with CFNetwork. 12 // Start with a clean state, as otherwise an expired cookie for this domain could affect behavior with CFNetwork.
13 // Can be removed once rdar://problem/10080130 is fixed. 13 // Can be removed once rdar://problem/10080130 is fixed.
14 if (testRunner.setPrivateBrowsingEnabled) 14 if (testRunner.setPrivateBrowsingEnabled)
15 testRunner.setPrivateBrowsingEnabled(true); 15 testRunner.setPrivateBrowsingEnabled(true);
16 16
17 testRunner.setAlwaysAcceptCookies(false); 17 testRunner.setBlockThirdPartyCookies(true);
18 } 18 }
19 </script> 19 </script>
20 <body> 20 <body>
21 <iframe src="http://127.0.0.1:8000/security/cookies/resources/set-a-cook ie.php"></iframe> 21 <iframe src="http://127.0.0.1:8000/security/cookies/resources/set-a-cook ie.php"></iframe>
22 </body> 22 </body>
23 </html> 23 </html>
24 </xsl:template> 24 </xsl:template>
25 </xsl:stylesheet> 25 </xsl:stylesheet>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698