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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/modal-dialogs-during-microtasks.html

Issue 1940253002: Disallow certain blocking DOM calls during microtask execution. (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
1 <!DOCTYPE html>
2 <p>Passes if no alert() is displayed</p>
1 <script> 3 <script>
2 if (window.testRunner) { 4 if (window.testRunner) {
3 testRunner.dumpAsText(); 5 testRunner.dumpAsText();
4 testRunner.dumpChildFramesAsText();
5 testRunner.waitUntilDone(); 6 testRunner.waitUntilDone();
6 } 7 }
7 8
8 function done() { 9 new Promise(function(res, rej) { res(); }).then(function() {
10 alert('this should not be shown');
9 if (window.testRunner) 11 if (window.testRunner)
10 testRunner.notifyDone(); 12 testRunner.notifyDone();
11 } 13 });
12 </script> 14 </script>
13 <iframe src="resources/set-parent-to-javascript-url.html"></iframe>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698