1 importScripts('../../resources/get-host-info.js');
2 importScripts('test-helpers.js');
6 self.onmessage = function(e) {
8 if ('port' in message) {
10 port.postMessage({ready: true});
14 self.addEventListener('fetch', function(event) {
15 var url = event.request.url;
16 if (url.indexOf('fetch-request-css-base-url-style.css') != -1) {
17 event.respondWith(fetch(
18 get_host_info()['HTTP_REMOTE_ORIGIN'] + base_path() +
19 'fetch-request-css-base-url-style.css',
21 } else if (url.indexOf('dummy.png') != -1) {
23 url: event.request.url,
24 referrer: event.request.referrer