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
22 lines
571 B
JavaScript
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'] });
|
|
}
|
|
}
|
|
);
|