diff --git a/fetch/compression-dictionary/fetch-destination.tentative.https.html b/fetch/compression-dictionary/fetch-destination.tentative.https.html new file mode 100644 index 00000000000000..41168cd4d10833 --- /dev/null +++ b/fetch/compression-dictionary/fetch-destination.tentative.https.html @@ -0,0 +1,45 @@ + +Fetch destination test for compression-dictionary + + + + + + diff --git a/fetch/compression-dictionary/resources/fetch-options-worker.js b/fetch/compression-dictionary/resources/fetch-options-worker.js index 1fff3e11afc020..8782e2c01e91d9 100644 --- a/fetch/compression-dictionary/resources/fetch-options-worker.js +++ b/fetch/compression-dictionary/resources/fetch-options-worker.js @@ -2,11 +2,13 @@ self.addEventListener('fetch', function(event) { if (event.request.url.includes('dummy')) { const params = new URL(event.request.url).searchParams; const credentials = params.get("credentials"); + const destination = params.get('destination'); const mode = params.get("mode"); const integrity = params.get('integrity'); const referrer = params.get('referrer'); const referrerPolicy = params.get('referrerPolicy'); if ((credentials === null || credentials == event.request.credentials) && + (destination === null || destination == event.request.destination) && (mode === null || mode == event.request.mode) && (integrity === null || integrity == event.request.integrity) && (referrer === null || referrer == event.request.referrer) &&