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

Unified Diff: third_party/WebKit/LayoutTests/fast/workers/resources/worker-xhr-onerror.js

Issue 2665733002: [wrapper-tracing] For a worker, mark relative to its wrapper map. (Closed)
Patch Set: Address comments Created 3 years, 11 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/fast/workers/resources/worker-xhr-onerror.js
diff --git a/third_party/WebKit/LayoutTests/fast/workers/resources/worker-xhr-onerror.js b/third_party/WebKit/LayoutTests/fast/workers/resources/worker-xhr-onerror.js
new file mode 100644
index 0000000000000000000000000000000000000000..ba43eea1e6db43ab0dcc69f213679827b4e47e4c
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/workers/resources/worker-xhr-onerror.js
@@ -0,0 +1,10 @@
+(function () {
+ var xhr = new XMLHttpRequest();
+ xhr.open('GET', 'does-not-exist.js');
+ xhr.onerror = () => { postMessage('done'); };
+ xhr.send();
+})();
+// |xhr| isn't in scope, but it will signal pending activity
+// when the GC runs, hence will be kept alive and allowed to
+// run to completion.
+self.gc();

Powered by Google App Engine
This is Rietveld 408576698