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

Unified Diff: content/test/data/service_worker/fetch_event.js

Issue 304153015: ServiceWorker: Read the blob from SW's response to a fetch event (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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: content/test/data/service_worker/fetch_event.js
diff --git a/content/test/data/service_worker/fetch_event.js b/content/test/data/service_worker/fetch_event.js
index 503806b208e88cdc0f311ce6bef50f20f947ad57..6d7da39cfadf21bde4910f4442eabd5b6af31e0f 100644
--- a/content/test/data/service_worker/fetch_event.js
+++ b/content/test/data/service_worker/fetch_event.js
@@ -6,7 +6,8 @@ this.onfetch = function(event) {
var headers = new HeaderMap;
headers.set('Content-Language', 'fi');
headers.set('Content-Type', 'text/html; charset=UTF-8');
- var response = new Response({
+ var blob = new Blob(["This resource is gone. Gone, gone, gone."]);
+ var response = new Response(blob, {
status: 301,
statusText: 'Moved Permanently',
headers: headers

Powered by Google App Engine
This is Rietveld 408576698