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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/dom/modal-dialogs-during-microtasks-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/dom/modal-dialogs-during-microtasks.html
diff --git a/third_party/WebKit/LayoutTests/fast/parser/iframe-sets-parent-to-javascript-url.html b/third_party/WebKit/LayoutTests/fast/dom/modal-dialogs-during-microtasks.html
similarity index 51%
copy from third_party/WebKit/LayoutTests/fast/parser/iframe-sets-parent-to-javascript-url.html
copy to third_party/WebKit/LayoutTests/fast/dom/modal-dialogs-during-microtasks.html
index 6846e28356879ab23aef32faa01f5941c65ef449..64c554500d5d8692b393f63390b3b97b2188080b 100644
--- a/third_party/WebKit/LayoutTests/fast/parser/iframe-sets-parent-to-javascript-url.html
+++ b/third_party/WebKit/LayoutTests/fast/dom/modal-dialogs-during-microtasks.html
@@ -1,13 +1,14 @@
+<!DOCTYPE html>
+<p>Passes if no alert() is displayed</p>
<script>
if (window.testRunner) {
testRunner.dumpAsText();
- testRunner.dumpChildFramesAsText();
testRunner.waitUntilDone();
}
-function done() {
+new Promise(function(res, rej) { res(); }).then(function() {
+ alert('this should not be shown');
if (window.testRunner)
testRunner.notifyDone();
-}
+});
</script>
-<iframe src="resources/set-parent-to-javascript-url.html"></iframe>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/dom/modal-dialogs-during-microtasks-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698