| Index: Source/modules/serviceworkers/Request.idl
|
| diff --git a/Source/modules/serviceworkers/Response.idl b/Source/modules/serviceworkers/Request.idl
|
| similarity index 46%
|
| copy from Source/modules/serviceworkers/Response.idl
|
| copy to Source/modules/serviceworkers/Request.idl
|
| index 67617a6bfa678fda754da02bec1b90f186a1e75b..96131c5c1350a8d6c9ac6e21b499056f077b4c5d 100644
|
| --- a/Source/modules/serviceworkers/Response.idl
|
| +++ b/Source/modules/serviceworkers/Request.idl
|
| @@ -2,21 +2,27 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -// https://slightlyoff.github.io/ServiceWorker/spec/service_worker/index.html#response-objects
|
| -// FIXME: Split this idl/impl into AbstractResponse and Response.
|
| +// https://slightlyoff.github.io/ServiceWorker/spec/service_worker/index.html#request-objects
|
| +
|
| [
|
| - Constructor(optional Dictionary responseInitDict),
|
| + Constructor(optional Dictionary requestInitDict),
|
| RuntimeEnabled=ServiceWorker,
|
| Exposed=ServiceWorker
|
| -] interface Response {
|
| - readonly attribute unsigned short status;
|
| -
|
| +] interface Request {
|
| + attribute DOMString url;
|
| // FIXME: Spec uses ByteString for this. We must perform the DOMString -> ByteString conversion manually (crbug.com/347426).
|
| - readonly attribute DOMString statusText;
|
| -
|
| + attribute DOMString method;
|
| + readonly attribute DOMString origin;
|
| readonly attribute HeaderMap headers;
|
|
|
| // FIXME: Implement the following:
|
| - // attribute DOMString url;
|
| - // Promise<Blob> toBlob();
|
| + // attribute unsigned long timeout;
|
| + // readonly attribute Mode mode;
|
| + // attribute boolean synchronous;
|
| + // readonly attribute unsigned long redirectCount;
|
| + // attribute boolean forcePreflight;
|
| + // attribute boolean forceSameOrigin;
|
| + // attribute boolean omitCredentials;
|
| + // readonly attribute DOMString referrer;
|
| + // attribute any body;
|
| };
|
|
|