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

Side by Side 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, 6 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 <!doctype html>
2 <script src="../../../resources/get-host-info.js?pipe=sub"></script>
3 <script src="../../resources/test-helpers.js"></script>
4 <script>
5 window.addEventListener('message', event => {
6 const port = event.ports[0];
7 const url = get_host_info()['HTTP_ORIGIN'] + base_path();
falken 2016/06/02 08:36:31 do you need the get_host_info stuff? can it just b
yhirano 2016/06/02 10:10:11 Done.
8 fetch(url, {method: 'POST', body: 'hello'})
9 .then(() => port.postMessage({results: 'finish'}))
10 .catch(e => port.postMessage({results: 'failure:' + e}));
11 });
12 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698