| OLD | NEW | 
|---|
| 1 <!doctype html> | 1 <!doctype html> | 
| 2 <html> | 2 <html> | 
| 3 <head> | 3 <head> | 
| 4     <script> | 4     <script> | 
| 5         if (window.testRunner) { | 5         if (window.testRunner) { | 
| 6             testRunner.dumpAsText(); | 6             testRunner.dumpAsText(); | 
| 7             testRunner.dumpChildFramesAsText(); | 7             testRunner.dumpChildFramesAsText(); | 
| 8         } | 8         } | 
| 9 | 9 | 
| 10         function test() { | 10         function test() { | 
| 11             var test = document.getElementById('testframe'); | 11             var testFrameWindow = window.frames['testframe']; | 
| 12             try { | 12             try { | 
| 13                 var location = test.contentWindow.location.href; | 13                 var location = testFrameWindow.location.href; | 
| 14             } catch (e) { | 14             } catch (e) { | 
| 15                 alert("PASS: Cross-origin access to the Location object threw an
     exception."); | 15                 alert("PASS: Cross-origin access to the Location object threw an
     exception."); | 
| 16             } | 16             } | 
| 17         } | 17         } | 
| 18     </script> | 18     </script> | 
| 19 </head> | 19 </head> | 
| 20 | 20 | 
| 21 <body> | 21 <body> | 
| 22     <p>Sandboxing a frame puts it into a unique origin by default, which the | 22     <p>Sandboxing a frame puts it into a unique origin by default, which the | 
| 23     containing document shouldn't have script access to. This test passes if an | 23     containing document shouldn't have script access to. This test passes if an | 
| 24     exception is thrown upon the access violation.</p> | 24     exception is thrown upon the access violation.</p> | 
| 25 | 25 | 
| 26     <iframe src="resources/blank.html" id="testframe" sandbox onload="test();"><
    /iframe> | 26     <iframe src="resources/blank.html" name="testframe" sandbox onload="test();"
    ></iframe> | 
| 27 </body> | 27 </body> | 
| 28 </html> | 28 </html> | 
| OLD | NEW | 
|---|