| OLD | NEW |
| 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 does not circumvent third-pa
rty cookie rules</title> | 5 <title>Checks that an XSLT-generated HTML doc does not circumvent third-pa
rty cookie rules</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://localhost:8000/security/cookies/resources/set-a-cook
ie.php"></iframe> | 21 <iframe src="http://localhost: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> |
| OLD | NEW |