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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/events/events-in-isolated-world.html

Issue 1939713003: Dispatch events in isolated worlds, even if script execution is forbidden (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updates Created 4 years, 7 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
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <button id="button"></button>
3 <script>
4
5 if (window.testRunner) {
6 testRunner.dumpAsText();
7 testRunner.setScriptsAllowed(false);
8
9 document.getElementById('button').addEventListener('keydown', function() { c onsole.log('keydown event in main world') });
10 testRunner.evaluateScriptInIsolatedWorld(1, "document.getElementById('button ').addEventListener('keydown', function() { console.log('keydown event in isolat ed world') });");
11
12 document.getElementById("button").focus();
13 eventSender.keyDown('e', []);
14 } else {
15 console.log("This test reuqires testRunner.setScriptsAllowed, so it can't ru n in a browser.");
16 }
17 </script>
18
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698