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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium/resources/fetch-request-with-gc-iframe.html

Issue 2025143003: [Fetch API] Request's JS wrapper should be kept alive in FetchEvent (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/chromium/resources/fetch-request-with-gc-iframe.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium/resources/fetch-request-with-gc-iframe.html b/third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium/resources/fetch-request-with-gc-iframe.html
new file mode 100644
index 0000000000000000000000000000000000000000..518a59b05e8d23f4b145959bd4d6d7881c1c1c04
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium/resources/fetch-request-with-gc-iframe.html
@@ -0,0 +1,11 @@
+<!doctype html>
+<script src="../../resources/test-helpers.js"></script>
+<script>
+window.addEventListener('message', event => {
+ const port = event.ports[0];
+ const url = base_path();
+ fetch(url, {method: 'POST', body: 'hello'})
+ .then(() => port.postMessage({results: 'finish'}))
+ .catch(e => port.postMessage({results: 'failure:' + e}));
+ });
+</script>

Powered by Google App Engine
This is Rietveld 408576698