Files
sousa-gecko/testing/web-platform/tests/fetch/api/idlharness.https.any.js
T
Tim van der Lippe 606c0c728d Bug 1992211 [wpt PR 55123] - Implement fetchLater, a=testonly
Automatic update from web-platform-tests
Implement `fetchLater`

Allows fetches to be deferred, only in a secure context.
It does not yet implement quota computation, since we
don't have a concept of document quota yet.

Signed-off-by: Tim van der Lippe <tvanderlippe@gmail.com>

--

wpt-commits: e36470b4cb2cc46d550d125bcf89f9cc71d3458f
wpt-pr: 55123
2025-10-14 16:10:46 +00:00

22 lines
571 B
JavaScript

// META: global=window,worker
// META: script=/resources/WebIDLParser.js
// META: script=/resources/idlharness.js
// META: timeout=long
idl_test(
['fetch'],
['referrer-policy', 'html', 'dom'],
idl_array => {
idl_array.add_objects({
Headers: ["new Headers()"],
Request: ["new Request('about:blank')"],
Response: ["new Response()"],
});
if (self.GLOBAL.isWindow()) {
idl_array.add_objects({ Window: ['window'] });
} else if (self.GLOBAL.isWorker()) {
idl_array.add_objects({ WorkerGlobalScope: ['self'] });
}
}
);