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 { |