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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/foreign-fetch-helper-worker.js

Issue 2110163002: Correctly set initiated_in_secure_context on requests from shared/service workers, (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@skip-service-worker-foreign-fetch
Patch Set: wrap layout test at 80 columns 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/foreign-fetch-helper-script.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/foreign-fetch-helper-worker.js
diff --git a/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/foreign-fetch-helper-worker.js b/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/foreign-fetch-helper-worker.js
new file mode 100644
index 0000000000000000000000000000000000000000..9b9a293957d7a236f0b389735b085718a53a580f
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/foreign-fetch-helper-worker.js
@@ -0,0 +1,8 @@
+importScripts('../../resources/get-host-info.js');
+var host_info = get_host_info();
+
+self.onfetch = e => {
+ var remote_url = host_info.HTTPS_REMOTE_ORIGIN +
+ '/serviceworker/resources/simple.txt?basic_sw';
+ e.respondWith(fetch(remote_url));
+};
« no previous file with comments | « third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/foreign-fetch-helper-script.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698