Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / http / tests / security / dataURL / xss-DENIED-from-data-url-in-foreign-domain-window-open.html
1 <html>
2 <head>
3     <script src="../resources/cross-frame-access.js"></script>
4     <script>
5         var openedWindow;
6         window.onload = function()
7         {
8             if (window.testRunner) {
9                 testRunner.dumpAsText();
10                 testRunner.waitUntilDone();
11                 testRunner.setCanOpenWindows();
12             }
13
14             openedWindow = window.open("http://localhost:8000/security/dataURL/resources/foreign-domain-data-url-accessor-opened-frame.html");
15
16             window.addEventListener('message', function ()
17             {
18                 closeWindowAndNotifyDone(openedWindow);
19             });
20         }
21     </script>
22 </head>
23 <body>
24     <p>Opener Frame</p>
25     <p id='accessMe'>Pass: Cross frame access from a data: URL on a different domain was denied.</p>
26 </body>
27 </html>