servo/components/script
bors-servo 9a7559fd82 Auto merge of #13802 - jeenalee:request-headers, r=jdm
Allow Request's Headers to be created with various objects

<!-- Please describe your changes on the following line: -->

While Headers could be constructed correctly with an array or
object (open ended dictionary/MozMap), Request's Headers failed to be
created with non-Headers object (such as array or open ended
dictionary/MozMap).

Before, Request's Headers could be filled with only a Headers object in
Step 28. This has been expanded to accommodate array and open ended
dictionary.

Step 29 empties the Request's Headers list after it had been filled in
Step 28, thus resulting in an empty Headers object when it shouldn't
be. This step has been removed with a comment in this commit.

If a RequestInit Headers is _not_ given, but a RequestInfo Headers is
given, RequestInfo Headers should be used to construct Request
Headers. That step has been added after Step 31.

Corresponding wpt result is updated in this commit.
---

<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #13758 (github issue number if applicable).

<!-- Either: -->
- [X] There are tests for these changes OR
- [ ] These changes do not require tests because _____

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- Reviewable:start -->
---

This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13802)

<!-- Reviewable:end -->
2016-11-09 15:04:10 -06:00
..
docs
dom Auto merge of #13802 - jeenalee:request-headers, r=jdm 2016-11-09 15:04:10 -06:00
task_source Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
body.rs Rename Reflectable::global_scope to global 2016-10-06 21:36:41 +02:00
build.rs Native MSVC windows build, convert to cmake 2016-08-17 09:50:51 -04:00
Cargo.toml Auto merge of #14044 - servo:bluetooth, r=emilio 2016-11-03 15:04:43 -05:00
clipboard_provider.rs
CMakeLists.txt Fix doc build by resurrecting generation of supported DOM APIs.h 2016-09-24 15:06:06 -04:00
devtools.rs Replace script thread root browsing context by a collection of documents. 2016-11-08 10:48:58 -06:00
document_loader.rs Lookup frames by frame_id, not pipeline_id. 2016-11-03 15:39:51 -05:00
fetch.rs Remove intrinsic Root::r() 2016-10-11 19:44:32 +02:00
layout_wrapper.rs Stop using associated types for the concrete TRestyleDamage implementation. 2016-11-07 11:10:48 -08:00
lib.rs Blacklisted items are removed when calling getServices/Characteristics/Descriptors. 2016-11-04 15:36:55 +01:00
mem.rs
network_listener.rs Webbluetooth Async behaviour 2016-11-08 13:27:56 +01:00
origin.rs Reorder use statements 2016-09-09 04:55:19 +02:00
script_runtime.rs Remove GlobalRoot and GlobalRef 2016-10-06 21:36:00 +02:00
script_thread.rs Script thread lifetime is now managed by the constellation. 2016-11-09 01:29:25 +00:00
serviceworker_manager.rs Remove ScopeThings::pipeline_id 2016-10-04 14:05:28 +02:00
textinput.rs Implement minlength for text inputs 2016-09-21 07:54:39 -05:00
timers.rs Rename Reflectable::global_scope to global 2016-10-06 21:36:41 +02:00
unpremultiplytable.rs
webdriver_handlers.rs Replace script thread root browsing context by a collection of documents. 2016-11-08 10:48:58 -06:00