Bug 1184607 P1 Update webidl for RequestRedirect and 'opaqueredirect' in ResponseType. r=ehsan

This commit is contained in:
Ben Kelly 2015-08-31 14:26:29 -07:00
parent cd54636a36
commit 867558de7a
2 changed files with 4 additions and 1 deletions

View File

@ -23,6 +23,7 @@ interface Request {
readonly attribute RequestMode mode;
readonly attribute RequestCredentials credentials;
readonly attribute RequestCache cache;
readonly attribute RequestRedirect redirect;
[Throws,
NewObject] Request clone();
@ -40,6 +41,7 @@ dictionary RequestInit {
RequestMode mode;
RequestCredentials credentials;
RequestCache cache;
RequestRedirect redirect;
};
// Gecko currently does not ship RequestContext, so please don't use it in IDL
@ -61,3 +63,4 @@ enum RequestContext {
enum RequestMode { "same-origin", "no-cors", "cors", "cors-with-forced-preflight" };
enum RequestCredentials { "omit", "same-origin", "include" };
enum RequestCache { "default", "no-store", "reload", "no-cache", "force-cache", "only-if-cached" };
enum RequestRedirect { "follow", "error", "manual" };

View File

@ -34,4 +34,4 @@ dictionary ResponseInit {
HeadersInit headers;
};
enum ResponseType { "basic", "cors", "default", "error", "opaque" };
enum ResponseType { "basic", "cors", "default", "error", "opaque", "opaqueredirect" };