Index: third_party/WebKit/LayoutTests/http/tests/cachestorage/resources/ignore-search-with-credentials-worker.js |
diff --git a/third_party/WebKit/LayoutTests/http/tests/cachestorage/resources/ignore-search-with-credentials-worker.js b/third_party/WebKit/LayoutTests/http/tests/cachestorage/resources/ignore-search-with-credentials-worker.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..cb890c3a51a5f8926ad9a2674bde3e59719b64cc |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/http/tests/cachestorage/resources/ignore-search-with-credentials-worker.js |
@@ -0,0 +1,13 @@ |
+self.onfetch = function(e) { |
+ if (!/\.txt.*/.test(e.request.url)) |
+ return; |
+ e.respondWith( |
+ self.caches.open('ignore-search') |
+ .then(function(cache) { |
+ return cache.add(e.request); |
+ }) |
+ .then(function() { |
+ return new Response(e.request.url); |
+ }) |
+ ); |
+}; |