OLD | NEW |
1 <iframe src="resources/innocent-victim.html"></iframe> | 1 <iframe src="resources/innocent-victim.html"></iframe> |
2 <div id="console">FAIL</div> | 2 <div id="console">FAIL</div> |
3 <script> | 3 <script> |
4 if (window.testRunner) | 4 if (window.testRunner) |
5 testRunner.dumpAsText(); | 5 testRunner.dumpAsText(); |
6 | 6 |
| 7 if (window.internals) |
| 8 internals.settings.setTreatIPAddressAsDomain(true); |
| 9 |
7 window.onload = function() { | 10 window.onload = function() { |
8 window.f = frames[0].atob; | 11 window.f = frames[0].atob; |
9 document.domain = "0.0.1"; | 12 document.domain = "0.0.1"; |
10 if (btoa(window.f("PASS")) == "PASS") | 13 if (btoa(window.f("PASS")) == "PASS") |
11 document.getElementById("console").innerHTML = "PASS" | 14 document.getElementById("console").innerHTML = "PASS" |
12 } | 15 } |
13 </script> | 16 </script> |
OLD | NEW |