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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/workers/resources/worker-xhr-microtasks.js

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
(Empty)
1 onmessage = function(evt) {
2 new Promise(function(res,rej) { res(); }).then(function() {
3 var xhr = new XMLHttpRequest();
4 xhr.open("GET", "http://example.test", false);
5 try {
6 xhr.send();
7 console.log("FAIL: xhr.send() didn't throw");
8 } catch (e) {
9 console.log("PASS: xhr.send() throws as expected");
10 }
11 postMessage("done");
12 });
13 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698