Commit graph

39956 commits

Author SHA1 Message Date
Manish Goregaokar
9460b43f90 Use IndexSet for storing descendants
Fixes intermittent failures in `/html/semantics/scripting-1/the-script-element/module/choice-of-error-1.html`
2020-01-06 12:24:58 +05:30
CYBAI
e7bc0fae4c Update test expectation 2020-01-05 17:07:40 +08:00
CYBAI
1cc6435cfc Implement nomodule attribute 2020-01-03 13:04:21 +09:00
CYBAI
5c9536acdc Support module script credentials mode 2020-01-03 13:04:19 +09:00
CYBAI
cfad32cffd Support integrity for module script 2020-01-03 13:03:18 +09:00
CYBAI
f2007751dd Scaffold module script 2020-01-03 13:02:31 +09: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
bors-servo
1e0f2e59b7
Auto merge of #25418 - servo:rustup, r=jdm
Fix some warnings in future Rust nightlies
2020-01-02 17:42:43 -05:00
Simon Sapin
fdcc7653f2 Fix some warnings in future Rust nightlies 2020-01-02 19:22:03 +01:00
bors-servo
7281336116
Auto merge of #25343 - Manishearth:autoraf, r=jdm
Do not wait for rAF to be requested in render loop

Servo-side of https://github.com/servo/webxr/pull/114

r? @jdm
2020-01-02 03:30:56 -05:00
Manish Goregaokar
666ee5ceff Kick the raf loop in inline sessions 2020-01-02 13:56:16 +05:30
bors-servo
106a0185f4
Auto merge of #25411 - servo-wpt-sync:wpt_update_01-01-2020, r=servo-wpt-sync
Sync WPT with upstream (01-01-2020)

Automated downstream sync of changes from upstream as of 01-01-2020.
[no-wpt-sync]
r? @servo-wpt-sync
2020-01-01 22:40:42 -05:00
WPT Sync Bot
c2ea949ad5 Update web-platform-tests to revision fda9fa30b9c18f3689f09384c0d4f104c6e6fd4d 2020-01-01 11:08:11 +00:00
bors-servo
45cc558297
Auto merge of #25408 - pshaughn:wasmcase, r=jdm
Now using eq_ignore_case on WASM mimetype, per #25317

I have no idea how this would be tested.

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

<!-- 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. -->
2019-12-31 23:58:59 -05:00
Patrick Shaughnessy
1506643f9a Now using eq_ignore_case on WASM mimetype, per #25317 2019-12-31 18:26:45 -05:00
bors-servo
90acd1adc3
Auto merge of #25406 - servo-wpt-sync:wpt_update_31-12-2019, r=servo-wpt-sync
Sync WPT with upstream (31-12-2019)

Automated downstream sync of changes from upstream as of 31-12-2019.
[no-wpt-sync]
r? @servo-wpt-sync
2019-12-31 07:36:37 -05:00
WPT Sync Bot
dacb7e9002 Update web-platform-tests to revision 74efe51f1faaa2bf3ff91c10f05a4ad9615a1553 2019-12-31 10:57:09 +00:00
Manish Goregaokar
01f27e9c69 Do not wait for rAF to be requested in render loop 2019-12-29 00:01:35 -08:00
bors-servo
267ce462d8
Auto merge of #25400 - servo-wpt-sync:wpt_update_28-12-2019, r=servo-wpt-sync
Sync WPT with upstream (28-12-2019)

Automated downstream sync of changes from upstream as of 28-12-2019.
[no-wpt-sync]
r? @servo-wpt-sync
2019-12-28 08:06:22 -05:00
WPT Sync Bot
53226b4df1 Update web-platform-tests to revision 070df683f5a7999245622eec274974903c3560c2 2019-12-28 11:03:15 +00:00
bors-servo
a0c99d2327
Auto merge of #25398 - servo-wpt-sync:wpt_update_27-12-2019, r=servo-wpt-sync
Sync WPT with upstream (27-12-2019)

Automated downstream sync of changes from upstream as of 27-12-2019.
[no-wpt-sync]
r? @servo-wpt-sync
2019-12-27 08:53:57 -05:00
WPT Sync Bot
4928429030 Update web-platform-tests to revision f8993b242928cab74d1cc2977f07e479664e0ef8 2019-12-27 11:12:09 +00:00
bors-servo
44b3e8bb71
Auto merge of #25396 - servo-wpt-sync:wpt_update_26-12-2019, r=servo-wpt-sync
Sync WPT with upstream (26-12-2019)

Automated downstream sync of changes from upstream as of 26-12-2019.
[no-wpt-sync]
r? @servo-wpt-sync
2019-12-26 07:48:24 -05: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
bors-servo
8002c6bc53
Auto merge of #25375 - servo-wpt-sync:wpt_update_24-12-2019, r=servo-wpt-sync
Sync WPT with upstream (24-12-2019)

Automated downstream sync of changes from upstream as of 24-12-2019.
[no-wpt-sync]
r? @servo-wpt-sync
2019-12-24 07:32:42 -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
8184a25c17 createElement can now take an ignored string for options 2019-12-23 11:35:32 -05:00
bors-servo
85ad53c42b
Auto merge of #25371 - servo:rustup, r=jdm
Upgrade to rustc 1.42.0-nightly (9b98af84c 2019-12-22)
2019-12-23 10:36:54 -05:00
Simon Sapin
1ff5433aef Upgrade to rustc 1.42.0-nightly (9b98af84c 2019-12-22) 2019-12-23 14:07:01 +01: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
bors-servo
3e77a0ae09
Auto merge of #25354 - lberrymage:dom-domroot-lint-check, r=jdm
Add &DomRoot<T> lint check

So far, the lint check code appears to work as intended. However, some trait implementations require modification to pass the lint check and I'm not sure how to fix these. Commit 92cf5d5 attempts to correct one of the implementations, but fails to compile with error:
```
  --> components/script/dom/servoparser/xml.rs:76:36
   |
76 |         tree_builder.trace_handles(&tracer);
   |                                    ^^^^^^^ expected struct `dom::bindings::root::Dom`, found struct `dom::node::Node`
   |
   = note: expected struct `dom::bindings::root::Dom<dom::node::Node>`
              found struct `dom::node::Node`
   = note: required for the cast to the object type `dyn html5ever::tree_builder::Tracer<Handle = dom::bindings::root::Dom<dom::node::Node>>`
```
I've tried to debug further but to no avail. I also don't want to mangle too much existing code unnecessarily. Any help is appreciated.

<!-- 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
- [X] `./mach test-tidy` does not report any errors
`./mach test-tidy --all` does, and some are directly related to this PR
- [ ] These changes fix #25342
The fix is a WIP

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

Note that I will clean up the commit history before the final PR.
<!-- 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-21 18:23:26 -05:00
bors-servo
19ca0b30bd
Auto merge of #25356 - servo-wpt-sync:wpt_update_21-12-2019, r=servo-wpt-sync
Sync WPT with upstream (21-12-2019)

Automated downstream sync of changes from upstream as of 21-12-2019.
[no-wpt-sync]
r? @servo-wpt-sync
2019-12-21 17:56:40 -05:00
lberrymage
cd9195056c Add lint check for &DomRoot<T>
`&DomRoot<T> is strictly less expressive than `&T`, so using it is
pointless.
2019-12-21 12:44:35 -09:00
WPT Sync Bot
865f7c03e9 Update web-platform-tests to revision d55d764f159f5d8dd3e0b30e9d38f75af4feb438 2019-12-21 11:04:19 +00:00
bors-servo
bb5cd02da3
Auto merge of #25350 - jdm:wpt-debug-help, r=asajeffrey
Print OSMesa environment variables when starting debugger under WPT.

This helps with #25231 by making it easy to set the appropriate environment variables inside lldb before running a headless debugging session.
2019-12-20 17:35:18 -05:00
bors-servo
62899c0f52
Auto merge of #25334 - asajeffrey:gstplugins-misc-tidying-up, r=jdm
Gstreamer plugin running in wayland with surfman 0.2

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

Tidying up the gstreamer plugin. The plugin now:

* uses surfman 0.2
* runs in wayland (but can't render WebGL content yet)
* gets its GL configuration from gstreamer
* uses GLsync if needed

---
<!-- 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 #24843
- [X] 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. -->
2019-12-20 16:09:16 -05:00
Alan Jeffrey
b5943f5ab3 Disable the gstreamer plugin build for windows 2019-12-20 13:35:55 -06:00
Alan Jeffrey
14e0c6ad05 Use gstreamer_gl metadata 2019-12-20 12:13:31 -06:00