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

Side by Side Diff: LayoutTests/fast/dom/event-attrs-isolated-world.html

Issue 16904002: Avoid leaking objects between isolated worlds via attribute event listeners (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 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
(Empty)
1 <!DOCTYPE html>
2 <body>
3 <div>DOM wrappers should not leak across world boundaries via onevent attributes </div>
4 <script>
5 testRunner.dumpAsText();
6 document.onload = document;
7 testRunner.evaluateScriptInIsolatedWorld(1,
8 'if (document.onload === null) {' +
9 ' console.log("PASS: Main world object not visible in isolated world");' +
10 '} else {' +
11 ' console.log("FAIL: Main world object visible in isolated world!");' +
12 '}' +
13 'document.onload = document;' +
14 'if (document.onload === document) {' +
15 ' console.log("PASS: Got back isolated world wrapper");' +
16 '} else {' +
17 ' console.log("FAIL! Got back:");' +
18 ' console.log(document.onload);' +
19 '}');
20 if (document.onload === document) {
21 console.log("PASS: Got back main world wrapper");
22 } else {
23 console.log("FAIL! Got back:");
24 console.log(document.onload);
25 }
26 </script>
27 </body>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/dom/event-attrs-isolated-world-expected.txt » ('j') | Source/bindings/v8/V8Binding.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698