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

Side by Side Diff: LayoutTests/http/tests/security/isolatedWorld/document-open.html

Issue 13954010: Eliminate "temporary" and "uninitialized" isolated worlds (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 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 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <body> 3 <body>
4 <div id="console"></div> 4 <div id="console"></div>
5 <script> 5 <script>
6 window.open = function () { alert("FAIL: Visible in isolated world."); }; 6 window.open = function () { alert("FAIL: Visible in isolated world."); };
7 if (window.testRunner) { 7 if (window.testRunner) {
8 testRunner.dumpAsText(); 8 testRunner.dumpAsText();
9 testRunner.evaluateScriptInIsolatedWorld( 9 testRunner.evaluateScriptInIsolatedWorld(
10 0, 10 1,
11 "window.open = function () { alert('PASS'); };\n" + 11 "window.open = function () { alert('PASS'); };\n" +
12 "document.open(1, 2, 3);"); 12 "document.open(1, 2, 3);");
13 } 13 }
14 </script> 14 </script>
15 </body> 15 </body>
16 </html> 16 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698