Commit graph

7986 commits

Author SHA1 Message Date
bors-servo
77db7ea0ee
Auto merge of #25393 - teapotd:option-constructor, r=jdm
Implement HTMLOptionElement named constructor

This change implements `Option` named constructor for `HTMLOptionElement`.

---
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #25380
- [X] There are tests for these changes
2020-01-03 14:23:21 -05:00
teapotd
155f69ce48 Implement HTMLOptionElement named constructor 2020-01-03 14:45:31 +01:00
bors-servo
ce7b3af906
Auto merge of #25416 - servo-wpt-sync:wpt_update_02-01-2020, r=jdm
Sync WPT with upstream (02-01-2020)

Automated downstream sync of changes from upstream as of 02-01-2020.
[no-wpt-sync]
r? @servo-wpt-sync
2020-01-03 07:02:31 -05:00
bors-servo
171b543a8a
Auto merge of #25410 - pshaughn:ceupgrade, r=jdm
Implement CustomElementRegistry.upgrade

<!-- Please describe your changes on the following line: -->
An additional small change will be needed if whatwg/html#5126 lands, which will pass an infinite recursion test this is currently failing in custom-elements/upgrading.html (right now the test is asking for behavior that isn't in the spec).
The remaining test in custom-elements/custom-element-registry/upgrade.html is because it needs shadow DOM.

---
<!-- 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 #24989

<!-- Either: -->
- [X] There are tests for these changes

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
2020-01-03 02:57:01 -05:00
bors-servo
3892d85fe0
Auto merge of #25407 - pshaughn:radiocase, r=jdm
Radio button grouping is now case-sensitive

Just catching up with a spec update, as explained in #25389

---
<!-- 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 #25389

<!-- Either: -->
- [X] There are tests for these changes
<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
2020-01-02 23:56:36 -05:00
CYBAI
86575bba1b Run module tests 2020-01-03 12:40:15 +09:00
bors-servo
097a91112e
Auto merge of #25358 - pshaughn:looser_header_validation, r=jdm
Header values no longer have to be ASCII or UTF-8

<!-- Please describe your changes on the following line: -->
This passes some failed tests related to header validity when handling ByteStrings outside the printable ASCII range. A few failures remain because the HeaderValue class is stricter than WHATWG/WPT, disallowing various control-code bytes that the spec and tests expect to be allowed.

---
<!-- 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 some of the test cases described in #24903

<!-- Either: -->
- [X] There are tests for these changes OR

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
2020-01-02 21:05:08 -05:00
Josh Matthews
8c7a20ac86
Remove intermittent failure. 2020-01-02 18:08:35 -05:00
Patrick Shaughnessy
3bd30afcf3 Just the code, no metadata for now 2020-01-02 10:23:44 -05:00
WPT Sync Bot
ca3784874c Update web-platform-tests to revision 112ad5ca55d55f6da2ccc7468e6dcc91b4e5d223 2020-01-02 10:57:36 +00:00
Patrick Shaughnessy
065bcee371 CustomElementRegistry.upgrade works by current spec 2020-01-01 22:23:44 -05:00
WPT Sync Bot
c2ea949ad5 Update web-platform-tests to revision fda9fa30b9c18f3689f09384c0d4f104c6e6fd4d 2020-01-01 11:08:11 +00:00
Patrick Shaughnessy
3da1251488 No more menu button 2019-12-31 20:03:30 -05:00
Patrick Shaughnessy
b20881639e Radio button grouping is now case-sensitive 2019-12-31 17:57:59 -05:00
WPT Sync Bot
dacb7e9002 Update web-platform-tests to revision 74efe51f1faaa2bf3ff91c10f05a4ad9615a1553 2019-12-31 10:57:09 +00:00
WPT Sync Bot
53226b4df1 Update web-platform-tests to revision 070df683f5a7999245622eec274974903c3560c2 2019-12-28 11:03:15 +00:00
WPT Sync Bot
4928429030 Update web-platform-tests to revision f8993b242928cab74d1cc2977f07e479664e0ef8 2019-12-27 11:12:09 +00:00
teapotd
386dc9fd75 Implement HTMLInputElement cloning steps 2019-12-26 17:53:18 +01:00
WPT Sync Bot
7b95441574 Update web-platform-tests to revision d1e20d6e525ebf9b99876c7f08b14cb268364f79 2019-12-26 10:58:18 +00:00
Patrick Shaughnessy
0c08849d1c Headers no longer have to be ASCII or UTF-8, though there is some disagreement with http::header::HeaderValue 2019-12-24 11:08:15 -05:00
WPT Sync Bot
110ca49f65 Update web-platform-tests to revision 7ed322c3132993bcb5734702b40621448670fc76 2019-12-24 11:12:18 +00:00
bors-servo
10fa5fa68a
Auto merge of #25370 - servo-wpt-sync:wpt_update_23-12-2019, r=servo-wpt-sync
Sync WPT with upstream (23-12-2019)

Automated downstream sync of changes from upstream as of 23-12-2019.
[no-wpt-sync]
r? @servo-wpt-sync
2019-12-24 01:16:39 -05:00
bors-servo
dadbc36f8c
Auto merge of #25373 - pshaughn:ce_options_string, r=jdm
let document.createElement[NS] accept a string for options

The string actually does nothing, but spec and WPT don't want it to do anything. https://dom.spec.whatwg.org/#dom-document-createelement only cares about the options value when it's a dictionary, and the WPT test on the string case is just that it isn't throwing an exception.

---
<!-- 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 #25008

<!-- Either: -->
- [X] There are tests for these changes

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
2019-12-23 22:21:47 -05:00
bors-servo
8791849291
Auto merge of #25367 - pshaughn:ce_undefined_is, r=jdm
apply is: to Document.createElement even when name isn't registered yet

The "is" option to Document.createElement should be respected even when the name hasn't been registered yet, in which case the name gets looked up again at the time the element should be upgraded. This change does that.
I'm now seeing a few test timeouts that aren't in the metadata, but I suspect they're slowness on my local configuration and not actual breakage.

---
<!-- 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 #25009 fix #24997 and fix #24998

<!-- Either: -->
- [X] There are tests for these changes OR

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
2019-12-23 19:44:15 -05:00
Patrick Shaughnessy
67e9fc8c0a Attr is a Node, with consequences for many Node methods 2019-12-23 19:10:16 -05:00
Patrick Shaughnessy
8184a25c17 createElement can now take an ignored string for options 2019-12-23 11:35:32 -05:00
WPT Sync Bot
7c7a4975eb Update web-platform-tests to revision 44e3f8a64aacebd5123aac7456cb81f423c38860 2019-12-23 11:02:48 +00:00
bors-servo
7e8a305394
Auto merge of #25366 - pshaughn:hasinstance, r=jdm
Remove obsolete HasInstance behavior per heycam/webidl #356

This turns one WPT test from fail to pass and it leaves Servo with a little less platform object special-case code to worry about.

---
<!-- 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 #25039

<!-- Either: -->
- [X] There are tests for these changes

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
2019-12-23 02:20:36 -05:00
bors-servo
7369b9e3c0
Auto merge of #25361 - servo-wpt-sync:wpt_update_22-12-2019, r=servo-wpt-sync
Sync WPT with upstream (22-12-2019)

Automated downstream sync of changes from upstream as of 22-12-2019.
[no-wpt-sync]
r? @servo-wpt-sync
2019-12-22 23:11:30 -05:00
Patrick Shaughnessy
14d278ff1c apply is: to Document.createElement even when name isn't registered yet 2019-12-22 20:46:31 -05:00
Patrick Shaughnessy
c99e0d1b98 Remove obsolete behavior per heycam/webidl #356 2019-12-22 17:58:26 -05:00
bors-servo
43a5f65940
Auto merge of #25359 - pshaughn:auto_ct_header, r=jdm
Autocomputed content-type header now reaches net request

The spec expects that for a DOM Request r, r.headers and r.request can actually refer to the same header list in RAM, with changes to one affecting the other. This is mostly unobservable, but it happens to come up at the point in the Request constructor that auto-infers a content type from the body, so now after inferring the content type it injects it into both header lists instead of one.
Remaining test failures are due to the way Hyper crates normalize semicolons in MIME types, and an actually separate problem about content-lengths that I haven't sniffed out yet.

---
<!-- 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 some WPT results from #24904

<!-- Either: -->
- [X] There are tests for these changes

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
2019-12-22 11:12:56 -05:00
WPT Sync Bot
5bdea9564b Update web-platform-tests to revision b048002b012a8290b7dbdb0f0d685454e8837b6f 2019-12-22 11:03:50 +00:00
Patrick Shaughnessy
b9c4b64978 Autocomputed content-type header now reaches net request 2019-12-21 19:37:38 -05:00
WPT Sync Bot
865f7c03e9 Update web-platform-tests to revision d55d764f159f5d8dd3e0b30e9d38f75af4feb438 2019-12-21 11:04:19 +00:00
Josh Matthews
4c2f9d0986
Remove ini file from wrong directory. 2019-12-20 10:48:11 -05:00
Josh Matthews
c32c60206a
Add expected linux failure. 2019-12-20 10:47:55 -05:00
Josh Matthews
f6ccf33c60
Mark linux-only failure. 2019-12-20 10:21:03 -05:00
Josh Matthews
c0bafe3f7c
Remove intermittent failure. 2019-12-20 09:33:35 -05:00
Josh Matthews
e938a23844
Remove intermittent failure. 2019-12-20 09:33:12 -05:00
WPT Sync Bot
45c91aa0cb Update web-platform-tests to revision 256b4685b8e702c14ed854347f23f4979edbfc8e 2019-12-20 11:10:50 +00:00
bors-servo
bac9903fbe
Auto merge of #24123 - gterzian:redo_blob, r=jdm
Restructure Blob, structured serialization

<!-- Please describe your changes on the following line: -->
FIX #24052 and also address the "cloning" half of FIX #23917

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

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

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- 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/24123)
<!-- Reviewable:end -->
2019-12-19 16:16:56 -05:00
WPT Sync Bot
292a12e545 Update web-platform-tests to revision 1268bd5901289acc95b1a576f108bdf382d82e44 2019-12-19 10:58:13 +00:00
Kunal Mohan
b4090cce6e
Update tests
Run `update-wpt` for tests/wpt/web-platform-tests/html/dom/idlharness.https.html
and tests/wpt/web-platform-tests/html/dom/idlharness.worker.js
2019-12-18 23:01:56 +05:30
Kunal Mohan
460f4fdefc
Update tests for MessageEvent 2019-12-18 23:01:54 +05:30
pylbrecht
4f4c32fa6f Revert two test expectation updates 2019-12-18 06:18:19 +01:00
pylbrecht
cdd4dc41b3 Update wpt test expectations 2019-12-17 19:53:56 +01:00
pylbrecht
b99b92d4c2 Update wpt test expectation for image-smoothing 2019-12-17 19:52:03 +01:00
bors-servo
4458bc762c
Auto merge of #25303 - servo-wpt-sync:wpt_update_16-12-2019, r=servo-wpt-sync
Sync WPT with upstream (16-12-2019)

Automated downstream sync of changes from upstream as of 16-12-2019.
[no-wpt-sync]
r? @servo-wpt-sync
2019-12-17 04:52:30 -05:00
bors-servo
6ccad53937
Auto merge of #25254 - pshaughn:stop_creating_outofspec_events, r=jdm
Removed createEvent cases, removed now-unused new_uninitializeds

<!-- Please describe your changes on the following line: -->
document.createEvent was creating some event types WHATWG now says shouldn't be created that way. This was the only caller of a few new_uninitialized methods, so those are removed too.

---
<!-- 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 #25137

<!-- Either: -->
- [X] There are tests for these changes

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
2019-12-17 02:13:13 -05:00