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

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

Issue 1060033002: Implement Request.context for Fetch API (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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: LayoutTests/http/tests/serviceworker/resources/fetch-request-resources-worker.js
diff --git a/LayoutTests/http/tests/serviceworker/resources/fetch-request-resources-worker.js b/LayoutTests/http/tests/serviceworker/resources/fetch-request-resources-worker.js
index 9ec1dc62822218cf36d9e9cc6752e21f404d7ade..abff19c28defdaec4e149ac007630fd844a6cdd9 100644
--- a/LayoutTests/http/tests/serviceworker/resources/fetch-request-resources-worker.js
+++ b/LayoutTests/http/tests/serviceworker/resources/fetch-request-resources-worker.js
@@ -16,6 +16,9 @@ self.addEventListener('fetch', function(event) {
}
port.postMessage({
url: url,
+ context: event.request.context,
+ context_clone: event.request.clone().context,
+ context_new: (new Request(event.request)).context,
mode: event.request.mode,
credentials: event.request.credentials
});

Powered by Google App Engine
This is Rietveld 408576698