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

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

Issue 1859313002: Save-Data should not be added to CORS Access-Control-Request-Headers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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_pass_through.js
diff --git a/content/test/data/service_worker/fetch_event_pass_through.js b/content/test/data/service_worker/fetch_event_pass_through.js
index fc23dd28b91ee5d63884caed8a73e01946c230e9..df76d0a094fd0d876c78cc9f327df6e213e056c2 100644
--- a/content/test/data/service_worker/fetch_event_pass_through.js
+++ b/content/test/data/service_worker/fetch_event_pass_through.js
@@ -2,4 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-this.onfetch = function(event) { };
+this.onfetch = function(event) {
+ event.respondWith(fetch(event.request));
falken 2016/04/06 04:41:37 We don't call this pass through. Pass through woul
Raj 2016/04/06 05:08:42 Done.
+};

Powered by Google App Engine
This is Rietveld 408576698