Commit graph

7865 commits

Author SHA1 Message Date
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
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
bors-servo
a8b8f46476
Auto merge of #25299 - emilio:gecko-sync, r=emilio,nox
style: Sync changes from mozilla-central.

See individual commits for details.
2019-12-16 23:51:18 -05:00
bors-servo
b274d59875
Auto merge of #25236 - pshaughn:safelistct, r=jdm
De-deplicate is_cors_safelisted_request_header helper functions

<!-- Please describe your changes on the following line: -->
Separate is_cors_safelisted_request_header implementations in script::dom::request and net::fetch::methods have been merged to a single implementation in net_traits::request, with additional logic for spec requirements that weren't previously there. This doesn't pass all the failing tests, but it doesn't fail any passing ones either and it reduces confusion about what's supposed to happen where.

---
<!-- 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 #25235 and some but not all subcases in #25175

<!-- Either: -->
- [X] There are tests for these changes, in that the WPT CORS tests that did already pass still do

<!-- 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-16 20:51:09 -05:00
bors-servo
d205194618
Auto merge of #25070 - cagandhi:named-form-getter, r=jdm
Named form getter

This PR contains changes related to adding named getter in Servo for getting the list of all meaningful property names for a HTMLFormElement object, and getting the value of a specific property name. The following changes have been made:

* uncomment the [named getter](f63b404e0c/components/script/dom/webidls/HTMLFormElement.webidl (L30)) from HTMLFormElement.webidl
* add the missing `NamedGetter` and `SupportedPropertyNames` methods to [HTMLFormElement](f63b404e0c/components/script/dom/htmlformelement.rs (L113))
* implement `SupportedPropertyNames` according to [the specification](https://html.spec.whatwg.org/multipage/forms.html#the-form-element:supported-property-names):
  * create an enum to represent the `id`, `name`, and `past` states for the sourced names
  * create a vector of `(SourcedName, DomRoot<HTMLElement>)` by iterating over `self.controls` and checking the element type and calling methods like `HTMLElement::is_listed_element`
---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #16479 (GitHub issue number if applicable)
2019-12-16 18:10:12 -05:00
Anshul Jethvani
ef8496c7bc updated expected test results in log 2019-12-16 13:07:28 -05:00
Patrick Shaughnessy
67827debd8 Now just one is_cors_safelisted_request_header, with closer spec alignment 2019-12-16 09:07:02 -05:00
Emilio Cobos Álvarez
f7c5df5703 Update WPT expectations. 2019-12-16 14:23:56 +01:00
WPT Sync Bot
bbb2e62331 Update web-platform-tests to revision 47ce6ccdc49acfae697f1e04f90ce7678c78e2db 2019-12-16 11:08:21 +00:00
WPT Sync Bot
7c092deb11 Update web-platform-tests to revision a9e454c8001472320dc3f049f6180427256a44dc 2019-12-15 11:04:52 +00:00
bors-servo
2a54d41295
Auto merge of #25291 - servo-wpt-sync:wpt_update_14-12-2019, r=jdm
Sync WPT with upstream (14-12-2019)

Automated downstream sync of changes from upstream as of 14-12-2019.
[no-wpt-sync]
r? @servo-wpt-sync
2019-12-14 18:07:34 -05:00
Josh Matthews
a4c7e9b00a
Remove intermittent failure. 2019-12-14 09:31:22 -05:00
Josh Matthews
95491bcf4a
Remove intermittent error. 2019-12-14 09:26:25 -05:00
WPT Sync Bot
0dae9ef764 Update web-platform-tests to revision 6fbd872e9ac5fe60e32946bc9b318be6eeada123 2019-12-14 10:59:49 +00:00
Shinichi Morimoto
9b153ac18a update test 2019-12-13 15:34:44 -05:00
bors-servo
7d4996f57d
Auto merge of #25277 - servo-wpt-sync:wpt_update_13-12-2019, r=jdm
Sync WPT with upstream (13-12-2019)

Automated downstream sync of changes from upstream as of 13-12-2019.
[no-wpt-sync]
r? @servo-wpt-sync
2019-12-13 13:13:19 -05:00
bors-servo
762e67f486
Auto merge of #25273 - servo:fixedpos, r=nox
Layout `position: fixed` in the initial containing block
2019-12-13 10:50:58 -05:00
Josh Matthews
2f5b4ce1d6
Undo linux-only change. 2019-12-13 10:27:03 -05:00
Josh Matthews
17becf270f
Delete width-047.xht.ini
Remove intermittent failure.
2019-12-13 09:41:08 -05:00
Simon Sapin
58b7005a9b Make for_maybe_position_relative take care of relative adjustment. 2019-12-13 13:13:50 +01:00
WPT Sync Bot
e613cfd108 Update web-platform-tests to revision 0ed072539aa45d3a5a67c9164b243d27873f257c 2019-12-13 11:03:54 +00:00
bors-servo
e8d6ed09c4
Auto merge of #25272 - pshaughn:domexception_inherits_tostring, r=Manishearth
DOMException now inherits its Javascript toString from Error

<!-- Please describe your changes on the following line: -->
stringifier is out of the DOMException IDL, and Stringifier(&self) is moved into the main body of DOMException where it can continue to be called internally.

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

<!-- 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-12 22:50:26 -05:00
Patrick Shaughnessy
981d13dcfc Stringifier is sno longer exposed 2019-12-12 20:20:31 -05:00