| 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..3c9ddd480fadea3963de0628cb92697e2bfe053c 100644
|
| --- a/third_party/WebKit/Source/modules/fetch/Headers.idl
|
| +++ b/third_party/WebKit/Source/modules/fetch/Headers.idl
|
| @@ -2,14 +2,20 @@
|
| // 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.
|
| +// Blink's WebIDL code does not support record<K,V> yet, so we have to make do
|
| +// with the (Dictionary or Headers) part instead.
|
| +// See http://crbug.com/685754 and http://crbug.com/690428.
|
| +typedef (sequence<sequence<ByteString>> or Dictionary 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 {
|
|
|