Skip to content

Commit 80ea89f

Browse files
naarcinichromium-wpt-export-bot
authored andcommitted
Allow range requests to pass through a service worker
This change implements the following edit to the Fetch spec: whatwg/fetch#560 Existing web tests cover the new functionality. Bug: 847428 Change-Id: Ie63704769e99d4b8d26d8903edf4cc4e3466c124
1 parent 4b36a44 commit 80ea89f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fetch/range/sw.https.window.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,11 @@ promise_test(async t => {
8686

8787
// Fetching should reject
8888
const fetchPromise = w.fetch('?action=use-stored-ranged-response', { mode: 'no-cors' });
89-
promise_rejects_js(t, TypeError, fetchPromise);
89+
await promise_rejects_js(t, w.TypeError, fetchPromise);
9090

9191
// Script loading should error too
9292
const loadScriptPromise = loadScript('?action=use-stored-ranged-response', { doc: w.document });
93-
promise_rejects_js(t, Error, loadScriptPromise);
93+
await promise_rejects_js(t, Error, loadScriptPromise);
9494

9595
await loadScriptPromise.catch(() => {});
9696

0 commit comments

Comments
 (0)