Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(534)

Unified Diff: third_party/WebKit/Source/modules/fetch/Headers.idl

Issue 2691513002: Fetch: Make Headers' constructor match the current spec IDL. (Closed)
Patch Set: Rebase again Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/fetch/Headers.idl
diff --git a/third_party/WebKit/Source/modules/fetch/Headers.idl b/third_party/WebKit/Source/modules/fetch/Headers.idl
index 6b2b91af438cd0ace5fb54bc2fdcf9cc2635a345..3255e905306f86cb661920e9ef776f982ec04492 100644
--- a/third_party/WebKit/Source/modules/fetch/Headers.idl
+++ b/third_party/WebKit/Source/modules/fetch/Headers.idl
@@ -2,14 +2,18 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+// https://fetch.spec.whatwg.org/#typedefdef-headersinit
+
+// The actual typedef in the spec is
+// (sequence<sequence<ByteString>> or record<ByteString,ByteString>)
+// which also implicitly includes Headers since it is iterable.
+// See http://crbug.com/690428.
+typedef (sequence<sequence<ByteString>> or record<ByteString, ByteString> or Headers) HeadersInit;
+
// https://fetch.spec.whatwg.org/#headers-class
-typedef Dictionary OpenEndedDictionary;
[
- Constructor,
- Constructor(Headers input),
- Constructor(OpenEndedDictionary input),
- Constructor(sequence<sequence<ByteString>> input),
+ Constructor(optional HeadersInit init),
Exposed=(Window,Worker),
RaisesException=Constructor,
] interface Headers {
« no previous file with comments | « third_party/WebKit/Source/modules/fetch/Headers.cpp ('k') | third_party/WebKit/Source/modules/fetch/Request.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698