| OLD | NEW | 
| (Empty) |  | 
 |   1 <!DOCTYPE html> | 
 |   2 <html> | 
 |   3 <head> | 
 |   4 <script src="/js-test-resources/js-test.js"></script> | 
 |   5 </head> | 
 |   6 <body> | 
 |   7 <script> | 
 |   8 description("Test that disabling web security permits cross-origin XMLHttpReques
    t requests."); | 
 |   9  | 
 |  10 window.jsTestIsAsync = true; | 
 |  11  | 
 |  12 if (window.testRunner) { | 
 |  13     testRunner.waitUntilDone(); | 
 |  14     testRunner.dumpAsText(); | 
 |  15     testRunner.setCanOpenWindows(); | 
 |  16     testRunner.setCloseRemainingWindowsWhenComplete(true); | 
 |  17     testRunner.overridePreference("WebKitWebSecurityEnabled", false); | 
 |  18 } | 
 |  19  | 
 |  20 window.addEventListener("message", function (e) { | 
 |  21     finishJSTest(); | 
 |  22 }, false); | 
 |  23  | 
 |  24 window.open("resources/frame-with-insecure-xhr.html"); | 
 |  25 </script> | 
 |  26 </body> | 
 |  27 </html> | 
| OLD | NEW |