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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/cachestorage/resources/ignore-search-with-credentials-worker.js

Issue 1578363009: CacheStorage: Add ignoreSearch option to cache.matchAll(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 10 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: 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);
+ })
+ );
+};

Powered by Google App Engine
This is Rietveld 408576698