Index: Source/modules/fetch/Request.idl |
diff --git a/Source/modules/fetch/Request.idl b/Source/modules/fetch/Request.idl |
index 34332105e07fdc3586e36fada6ece6982da89f26..87491b90d227a3e084bfb5fdf3eb726f9650094c 100644 |
--- a/Source/modules/fetch/Request.idl |
+++ b/Source/modules/fetch/Request.idl |
@@ -6,6 +6,13 @@ |
typedef (Request or USVString) RequestInfo; |
+enum RequestContext { |
+ "", "audio", "beacon", "cspreport", "download", "embed", "eventsource", "favicon", |
+ "fetch", "font", "form", "frame", "hyperlink", "iframe", "image", "imageset", "import", |
+ "internal", "location", "manifest", "metarefresh", "object", "ping", "plugin", |
+ "prefetch", "script", "serviceworker", "sharedworker", |
+ "subresource", "style", "track", "video", "worker", "xmlhttprequest", "xslt" |
+}; |
enum RequestMode { "same-origin", "no-cors", "cors" }; |
enum RequestCredentials { "omit", "same-origin", "include" }; |
@@ -21,15 +28,12 @@ enum RequestCredentials { "omit", "same-origin", "include" }; |
readonly attribute ByteString method; |
readonly attribute USVString url; |
readonly attribute Headers headers; |
- |
+ readonly attribute RequestContext context; |
readonly attribute DOMString referrer; |
readonly attribute RequestMode mode; |
readonly attribute RequestCredentials credentials; |
[RaisesException] Request clone(); |
- |
- // FIXME: Implement the following: |
- // readonly attribute RequestContext context; |
}; |
Request implements Body; |