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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/serviceworker/sync-xhr-doesnt-deadlock.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
Index: third_party/WebKit/LayoutTests/http/tests/serviceworker/sync-xhr-doesnt-deadlock.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/serviceworker/sync-xhr-doesnt-deadlock.html b/third_party/WebKit/LayoutTests/http/tests/serviceworker/sync-xhr-doesnt-deadlock.html
index aa071dd44b3f1df7615e04562dcdd9ce6ccb2527..6fe82d70203e2b4fd8725f59667ea8c0ca407db9 100644
--- a/third_party/WebKit/LayoutTests/http/tests/serviceworker/sync-xhr-doesnt-deadlock.html
+++ b/third_party/WebKit/LayoutTests/http/tests/serviceworker/sync-xhr-doesnt-deadlock.html
@@ -15,8 +15,10 @@ async_test(function(t) {
})
.then(function() { return with_iframe(scope); })
.then(function(frame) {
- frame.contentWindow.performSyncXHR();
- service_worker_unregister_and_done(t, scope);
+ setTimeout(function() {
+ frame.contentWindow.performSyncXHR();
+ service_worker_unregister_and_done(t, scope);
+ }, 0);
})
.catch(unreached_rejection(t));
}, 'Verify SyncXHR does not deadlock');

Powered by Google App Engine
This is Rietveld 408576698