Chromium Code Reviews| 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..18eab1284c2cc2db3c09323345cc1a8ef1a60e55 |
| --- /dev/null |
| +++ b/third_party/WebKit/LayoutTests/http/tests/cachestorage/resources/ignore-search-with-credentials-worker.js |
| @@ -0,0 +1,15 @@ |
| +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); |
| + }) |
| + ); |
| +}; |
| + |
| + |
|
nhiroki
2016/02/10 07:35:32
nit: please remove trailing blank lines
zino
2016/02/11 03:35:05
Done.
|