Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(475)

Side by Side Diff: LayoutTests/http/tests/security/dataURL/xss-DENIED-from-data-url-in-foreign-domain-window-open.html

Issue 494343003: Eliminate globalFlag usage from http security layout tests. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: consistify Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../resources/cross-frame-access.js"></script> 3 <script src="../resources/cross-frame-access.js"></script>
4 <script> 4 <script>
5 var openedWindow; 5 var openedWindow;
6 window.onload = function() 6 window.onload = function()
7 { 7 {
8 if (window.testRunner) { 8 if (window.testRunner) {
9 testRunner.dumpAsText(); 9 testRunner.dumpAsText();
10 testRunner.waitUntilDone(); 10 testRunner.waitUntilDone();
11 testRunner.setCanOpenWindows(); 11 testRunner.setCanOpenWindows();
12 } 12 }
13 13
14 openedWindow = window.open("http://localhost:8000/security/dataURL/r esources/foreign-domain-data-url-accessor-opened-frame.html"); 14 openedWindow = window.open("http://localhost:8000/security/dataURL/r esources/foreign-domain-data-url-accessor-opened-frame.html");
15 15
16 if (window.testRunner) 16 window.addEventListener('message', function ()
17 setTimeout(pollUntilDone, 1); 17 {
18 } 18 closeWindowAndNotifyDone(openedWindow);
19 19 });
20 pollUntilDone = function()
21 {
22 if (!testRunner.globalFlag) {
23 setTimeout(pollUntilDone, 1);
24 return;
25 }
26 closeWindowAndNotifyDone(openedWindow);
27 } 20 }
28 </script> 21 </script>
29 </head> 22 </head>
30 <body> 23 <body>
31 <p>Opener Frame</p> 24 <p>Opener Frame</p>
32 <p id='accessMe'>Pass: Cross frame access from a data: URL on a different do main was denied.</p> 25 <p id='accessMe'>Pass: Cross frame access from a data: URL on a different do main was denied.</p>
33 </body> 26 </body>
34 </html> 27 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698