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

Unified Diff: LayoutTests/http/tests/serviceworker/resources/fetch-event-test-worker.js

Issue 701683005: Service Workers/Fetch: Fix Response constructor for empty/null (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « no previous file | LayoutTests/http/tests/serviceworker/resources/response-content-worker.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/serviceworker/resources/fetch-event-test-worker.js
diff --git a/LayoutTests/http/tests/serviceworker/resources/fetch-event-test-worker.js b/LayoutTests/http/tests/serviceworker/resources/fetch-event-test-worker.js
index c9e28ec9d9a6ef0184d598fa0aaae3aa5e8e7c89..18d40e63a6097a089d04efba3938bef7918ac2c6 100644
--- a/LayoutTests/http/tests/serviceworker/resources/fetch-event-test-worker.js
+++ b/LayoutTests/http/tests/serviceworker/resources/fetch-event-test-worker.js
@@ -12,7 +12,7 @@ function handleReferrer(event) {
}
function handleNullBody(event) {
- event.respondWith(new Response(null));
+ event.respondWith(new Response());
}
function handleFetch(event) {
« no previous file with comments | « no previous file | LayoutTests/http/tests/serviceworker/resources/response-content-worker.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698