Commit graph

8771 commits

Author SHA1 Message Date
bors-servo
0b61cfc3ae
Auto merge of #26995 - servo-wpt-sync:wpt_update_19-06-2020, r=jdm
Sync WPT with upstream (19-06-2020)

Automated downstream sync of changes from upstream as of 19-06-2020.
[no-wpt-sync]
r? @servo-wpt-sync
2020-06-19 20:29:05 -04:00
Josh Matthews
ef5c41760f
Fix test expectation. 2020-06-19 18:38:06 -04:00
bors-servo
854cc79386
Auto merge of #26926 - MDeiml:referrer-26570, r=jdm
Make url for "client" referrer mandatory

<!-- Please describe your changes on the following line: -->
I added a url attribute to `Referrer::Client` so that the referrer header can be set accordingly when fetching.

`Referrer::Client` has to be kept separate from `Referrer::ReferrerUrl` as they differ in this method
6b0d9afd6f/components/script/dom/request.rs (L566-L576)

---
<!-- 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 #26570 (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. -->
2020-06-19 11:57:05 -04:00
Matthias Deiml
a0345ee1e6 Update expected wpt results 2020-06-19 17:50:31 +02:00
Josh Matthews
88f1d0bf32
Add 2020 failure 2020-06-19 11:40:13 -04:00
Josh Matthews
c92d15fbca
Add 2020 failure 2020-06-19 11:39:55 -04:00
Josh Matthews
47e384580d
Add 2020 failure 2020-06-19 11:39:28 -04:00
Josh Matthews
9022563df4
Add 2020 failure. 2020-06-19 11:39:09 -04:00
WPT Sync Bot
6f842949ed Update web-platform-tests to revision e75a8342e588e36a6ab387846a50d077621143b4 2020-06-19 10:29:37 +00:00
Simon Sapin
bd013aa7b7 Enable /css/css-flexbox in WPT for Layout 2020 2020-06-19 09:59:25 +02:00
Simon Sapin
36c60cbc07 Reorder include-layout-2020.ini 2020-06-19 09:59:25 +02:00
Josh Matthews
2498808d10 dom: Silently ignore failures to queue websocket tasks. 2020-06-19 01:45:02 -04:00
bors-servo
60f4fedcbf
Auto merge of #26970 - mrobinson:fix-animation-delay, r=jdm
animations: Don't apply animation delay to every iteration

The delay should only be applied to the animation before the first
iteration.

---
<!-- 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] 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-06-18 17:24:18 -04:00
bors-servo
7142512dcf
Auto merge of #26967 - servo-wpt-sync:wpt_update_18-06-2020, r=jdm
Sync WPT with upstream (18-06-2020)

Automated downstream sync of changes from upstream as of 18-06-2020.
[no-wpt-sync]
r? @servo-wpt-sync
2020-06-18 15:06:40 -04:00
Josh Matthews
d3101a4210
Remove non 2020 failure. 2020-06-18 13:03:43 -04:00
Martin Robinson
f92164144e animations: Don't apply animation delay to every iteration
The delay should only be applied to the animation before the first
iteration.
2020-06-18 16:36:14 +02:00
bors-servo
1b55ab5804
Auto merge of #26787 - szeged:texi2d_3, r=jdm
Add support for WebGL2 TexImage2D

Adds initial support for one of the WebGL2 `TexImage2D` call.

I've enabled the `tests/wpt/webgl/tests/deqp/` tests.

---
<!-- 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 part of #26512
- [x] There are tests for these changes

@mmatyas @zakorgy @jdm
<!-- 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-06-18 09:58:55 -04:00
WPT Sync Bot
3a95d0503c Update web-platform-tests to revision df2272857e29491bdb6c8ab77a8adec2f11757d2 2020-06-18 10:33:16 +00:00
Istvan Miklos
6591fa54f9 Add support for WebGL2 TexImage2D
Adds initial support for one of the WebGL2 `TexImage2D` call.
2020-06-18 09:59:04 +02:00
bors-servo
f93c87fb5d
Auto merge of #26954 - servo-wpt-sync:wpt_update_17-06-2020, r=servo-wpt-sync
Sync WPT with upstream (17-06-2020)

Automated downstream sync of changes from upstream as of 17-06-2020.
[no-wpt-sync]
r? @servo-wpt-sync
2020-06-17 19:30:33 -04:00
bors-servo
5b88980973
Auto merge of #26814 - servo:dependabot/cargo/httparse-1.3.4, r=jdm
build(deps): bump httparse from 1.3.2 to 1.3.4

Bumps [httparse](https://github.com/seanmonstar/httparse) from 1.3.2 to 1.3.4.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/seanmonstar/httparse/releases">httparse's releases</a>.</em></p>
<blockquote>
<h2>v1.3.4</h2>
<ul>
<li><strong>FIX</strong>: Allow backslash (<code>\</code>) characters when parsing request-target.</li>
</ul>
<h2>v1.3.3</h2>
<ul>
<li><strong>FIX</strong>: Allow {|}^` characters when parsing request-target.</li>
<li><strong>FIX</strong>: Strip trailing whitespace from header values.</li>
<li><strong>PERF</strong>: Improve selection of AVX2 and SSE4.2 features if both are available.</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="6f696f5d02"><code>6f696f5</code></a> v1.3.4</li>
<li><a href="1a791f4eee"><code>1a791f4</code></a> Fix parsing backslashes in request-targets (<a href="https://github-redirect.dependabot.com/seanmonstar/httparse/issues/57">#57</a>)</li>
<li><a href="84e10de058"><code>84e10de</code></a> Fix deprecation warnings (<a href="https://github-redirect.dependabot.com/seanmonstar/httparse/issues/56">#56</a>)</li>
<li><a href="dfe8a56dd3"><code>dfe8a56</code></a> v1.3.3</li>
<li><a href="cf54dd5de6"><code>cf54dd5</code></a> add changelog link to readme</li>
<li><a href="ebdbfa9237"><code>ebdbfa9</code></a> remove commented out dead cfg</li>
<li><a href="e30e85f0be"><code>e30e85f</code></a> Add tests from whatwg testsuite</li>
<li><a href="d1c7dae5c2"><code>d1c7dae</code></a> Allow {|}^` in request-targets</li>
<li><a href="d92601e680"><code>d92601e</code></a> Exclude trailing whitespace in header value.</li>
<li><a href="79204145cd"><code>7920414</code></a> Allow AVX2 and SSE42 to both be used if available (<a href="https://github-redirect.dependabot.com/seanmonstar/httparse/issues/45">#45</a>)</li>
<li>See full diff in <a href="https://github.com/seanmonstar/httparse/compare/v1.3.2...v1.3.4">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://api.dependabot.com/badges/compatibility_score?dependency-name=httparse&package-manager=cargo&previous-version=1.3.2&new-version=1.3.4)](https://dependabot.com/compatibility-score/?dependency-name=httparse&package-manager=cargo&previous-version=1.3.2&new-version=1.3.4)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language
- `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com):
- Update frequency (including time of day and day of week)
- Pull request limits (per update run and/or open at any time)
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)

</details>
2020-06-17 18:52:34 -04:00
dependabot-preview[bot]
608f8eb936 build(deps): bump httparse from 1.3.2 to 1.3.4
Bumps [httparse](https://github.com/seanmonstar/httparse) from 1.3.2 to 1.3.4.
- [Release notes](https://github.com/seanmonstar/httparse/releases)
- [Commits](https://github.com/seanmonstar/httparse/compare/v1.3.2...v1.3.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-17 13:41:21 -04:00
Matthias Deiml
47355766ed Fix invalid use of ReferrerUrl 2020-06-17 19:07:15 +02:00
Matthias Deiml
23a1b0dfb9 Update expected wpt results 2020-06-17 19:07:15 +02:00
Martin Robinson
e901fa2c39 Cancel animations for nodes which are removed from the DOM
This includes nodes which are being reparented.
2020-06-17 16:35:06 +02:00
bors-servo
d9b2cf53e8
Auto merge of #26922 - gterzian:shutdown_webrender, r=jdm
Blockingly shut-down webrender api

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

FIX https://github.com/servo/servo/issues/26876

---
<!-- 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. -->
2020-06-17 08:55:43 -04:00
WPT Sync Bot
ea69dac266 Update web-platform-tests to revision 84e71a84b79199bc307866bbe0edcbcc7c4752ce 2020-06-17 10:26:55 +00:00
Gregory Terzian
59896748b5 blockingly shut-down webrender when exiting webgl_thread 2020-06-17 13:47:13 +08:00
bors-servo
6d9b2eef29
Auto merge of #26943 - jdm:promise-incumbent, r=Manishearth
Fix panic on vimeo.com

The only time we end up enqueuing a promise reaction job with a null incumbent global argument is when SpiderMonkey does some weird stuff behind the scenes for its JS Debugger support (based on https://searchfox.org/mozilla-central/rev/2c1092dc68c63f7bad6da6a03c5883a5ab5ff2ca/js/src/builtin/Promise.cpp#3168). This commit works around that case and adds a regression test so we don't forget about that in the future.

---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #26930
- [x] There are tests for these changes
2020-06-16 20:03:28 -04:00
bors-servo
0ce03d4dc0
Auto merge of #26929 - jdm:dict-jsval, r=nox
Convert parent dictionary values when converting dictionaries to JS

- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #26928
- [x] There are tests for these changes OR
2020-06-16 19:27:53 -04:00
Josh Matthews
edf86d1bdc dom: Convert parent dictionary values when converting dictionaries to JS. 2020-06-16 17:34:30 -04:00
bors-servo
596e9105c5
Auto merge of #26875 - servo:jdm-patch-44, r=gterzian
Don't pretend we support SharedArrayBuffer.

Fixes #26874.
2020-06-16 17:27:07 -04:00
Josh Matthews
2e4cee9971 dom: Avoid panic when SpiderMonkey enqueues dummy promise jobs. 2020-06-16 17:21:18 -04:00
Josh Matthews
83578265b4 Don't pretend we support SharedArrayBuffer. 2020-06-16 14:39:20 -04:00
bors-servo
16a99daa22
Auto merge of #26906 - gterzian:fix_streams_and_re-direct, r=Manishearth
Fix streaming request bodies

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

FIX #26904

At this point I'm not sure if the hyper `Body::wrap_stream` integration by way of the IPC route is broken, or if perhaps there is a problem with the WPT server not handling the requests properly, as I am getting a bunch of:

```
 0:04.54 INFO STDERR: 127.0.0.1 - - [13/Jun/2020 18:22:08] code 400, message Bad request syntax ('4')
 0:04.54 INFO STDERR: 127.0.0.1 - - [13/Jun/2020 18:22:08] "4" 400 -
```

In any case, the `start_reading` call in `body.rs` had to be put into the other function, since it should not be called for each chunk(this was actually failing before).

I've also added the chunked header in case the source is a stream.

Last thing to figure out, why is the request data not actually reaching the server, or not being handled properly by it.

---
<!-- 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. -->
2020-06-16 13:01:20 -04:00
bors-servo
a84b06065b
Auto merge of #26923 - mrobinson:pseudo-animations-2, r=emilio
Add animation and transition support for pseudo-elements

This change extends the DocumentAnimationSet to hold animations for
pseudo-elements. Since pseudo-elements in Servo are not in the DOM like
in Gecko, they need to be handled a bit carefully in stylo.  When a
pseudo-element has an animation, recascade the style. Finally, this
change passes the pseudo-element string properly to animation events.

---
<!-- 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 #10316
- [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-06-16 12:05:05 -04:00
Martin Robinson
f3e373bc62 Add animation and transition support for pseudo-elements
This change extends the DocumentAnimationSet to hold animations for
pseudo-elements. Since pseudo-elements in Servo are not in the DOM like
in Gecko, they need to be handled a bit carefully in stylo.  When a
pseudo-element has an animation, recascade the style. Finally, this
change passes the pseudo-element string properly to animation events.

Fixes: #10316
2020-06-16 16:33:55 +02:00
WPT Sync Bot
1a24e35f18 Update web-platform-tests to revision 4af6af604800559d2c58cf3561621ae43e28aaa8 2020-06-16 10:58:22 +00:00
Gregory Terzian
719b395c40 fix streaming request bodies, terminate fetch if the body stream errors 2020-06-16 13:14:38 +08:00
bors-servo
f31d345c81
Auto merge of #26902 - jdm:focus-fixes, r=nox
Focus correctness improvements

These changes improve the behaviour of focus in Hubs rooms, and are expected to improve web compat around other dynamic pages that receive keyboard events as well.

---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #26901 and fix #26900.
- [x] There are tests for these changes
2020-06-15 11:49:30 -04:00
Josh Matthews
d55424e88f Update document focus when element focusability changes. 2020-06-15 11:22:28 -04:00
bors-servo
74cd81b8ce
Auto merge of #26909 - MDeiml:layout2020-visibility, r=SimonSapin
Implement visibility for layout_2020

<!-- Please describe your changes on the following line: -->
Implement the 'visibility: hidden' (and 'visibility: collapse') css properties.

---
<!-- 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 #26841 (GitHub issue number if applicable)

<!-- Either: -->
- [X] 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. -->
2020-06-14 13:35:56 -04:00
Josh Matthews
00ef7b1e2a
Remove intermittent crash. 2020-06-14 10:33:56 -04:00
Josh Matthews
9c3cdb39c1
Remove intermittent crash. 2020-06-14 10:33:40 -04:00
Matthias Deiml
6701ded991 Update expected wpt results 2020-06-14 13:19:55 +02:00
WPT Sync Bot
eea93fa4b1 Update web-platform-tests to revision ef14c5bc0da3d3c0f642a3195a9e41433d36a5ba 2020-06-14 10:25:42 +00:00
WPT Sync Bot
1d538279c7 Update web-platform-tests to revision 04caec1f4f239a2f1b36b6eaa5017f421b242694 2020-06-13 10:50:59 +00:00
bors-servo
721271dcd3
Auto merge of #26697 - utsavoza:ugo/issue-11681/22-05-2020, r=jdm
Implement CanvasRenderingContext2d.fillText

The PR consists of broadly two main changes:
- Implementation of Canvas2dRenderingContext.font
- Basic implementation of Canvas2dRenderingContext.fillText

Although I am not fully sure about the long term goals for the canvas backend in Servo, I assumed limited scope for font and text handling (should support simple text drawing with font selection) in the current implementation as I believe a more complete implementation would eventually be brought in as a part of #22957.

---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #11681
- [x] There are tests for these changes
2020-06-12 13:43:51 -04:00
Josh Matthews
502f34a9db Add canvas font test failure. 2020-06-12 13:00:36 -04:00
bors-servo
15e75254d4
Auto merge of #26873 - jdm:updatewr2, r=ferjm
Update webrender.
2020-06-12 11:19:13 -04:00