blob: 8555903d3cc1acfe3500c43094a84f090e9ce000 [file] [log] [blame]
<!DOCTYPE html>
<title>Service Workers: FetchEvent</title>
<link rel="help" href="">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src=/resources/WebIDLParser.js></script>
<script src=/resources/idlharness.js></script>
<script type=text/plain id="idl_0">
interface FetchEvent : Event {
readonly attribute Request request;
readonly attribute Client client; // The window issuing the request.
readonly attribute Context context;
readonly attribute boolean isReload;
void respondWith(Promise<AbstractResponse> r);
Promise<any> forwardTo(ScalarValueString url);
Promise<any> default();
enum Context {
Service Workers use the `[FetchEvent][1]` interface for `[fetch][2]` event.
[1]: #fetch-event-interface
[2]: #fetch-event
<script type=text/plain id="untested_idls">
interface Request {};
interface Client {};
interface AbstractResponse {};
interface ScalarValueString {};
interface Event {};
var idl_array = new IdlArray();
FetchEvent: ["throw new Error ('No object defined for the FetchEvent interface')"],
Context: ["throw new Error ('No object defined for the Context enum')"]