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

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

Issue 1019773006: use non-masking, string interceptors in generated bindings (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fix test Created 5 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
« no previous file with comments | « no previous file | LayoutTests/http/tests/security/document-all-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <script> 1 <script>
2 if (window.testRunner) { 2 if (window.testRunner) {
3 testRunner.dumpAsText(); 3 testRunner.dumpAsText();
4 testRunner.waitUntilDone(); 4 testRunner.waitUntilDone();
5 } 5 }
6 6
7 window.onload = function() 7 window.onload = function()
8 { 8 {
9 frame = document.body.appendChild(document.createElement("iframe")); 9 frame = document.body.appendChild(document.createElement("iframe"));
10 frame.src = "http://localhost:8080/security/resources/innocent-victim-with-i frame.html"; 10 frame.src = "http://localhost:8080/security/resources/innocent-victim-with-i frame.html";
11 frame.onload = function() { 11 frame.onload = function() {
12 frame.onload = null; 12 frame.onload = null;
13 13
14 frame.contentWindow[0].location = "data:text/html,<script>(" + function( ) { 14 frame.contentWindow[0].location = "data:text/html,<script>(" + function( ) {
15 15
16 setTimeout(function() { 16 setTimeout(function() {
17 if (window.testRunner) 17 if (window.testRunner)
18 testRunner.notifyDone(); 18 testRunner.notifyDone();
19 }, 0); 19 }, 0);
20 20
21 window.name = "alert"; 21 window.name = "alert";
22 obj = document.all; 22 obj = document.all;
23 obj.__proto__ = parent; 23 obj.__proto__ = parent;
24 alert(obj.alert.constructor("return document.body.innerHTML")()); 24 alert(obj.alert === this);
25 } + ")()</scr" + "ipt>"; 25 } + ")()</scr" + "ipt>";
26 } 26 }
27 } 27 }
28 </script> 28 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/http/tests/security/document-all-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698