Commit graph

42385 commits

Author SHA1 Message Date
Emilio Cobos Álvarez
3884328ce3
style: Clear last_parsed_property_id right after successfully parsing the value.
Rather than waiting until parsing another id (successfully or
unsuccessfully).

If we error before we even get to PropertyId::parse, we'd incorrectly
associate the error with the wrong property, incorrectly omitting it
sometimes.

Differential Revision: https://phabricator.services.mozilla.com/D78260
2020-06-18 23:51:14 +02:00
Emilio Cobos Álvarez
685e749cfc
style: Switch all callsites of try() to try_parse() in the style crate.
Fully automated via:

  $ rg -l '\.try\(' | xargs sed -i 's/\.try(/.try_parse(/g'
  $ cd servo/components/style && cargo +nightly fmt

Differential Revision: https://phabricator.services.mozilla.com/D80099
2020-06-18 23:51:14 +02:00
Philipp Zech
5af0d7ca7c
style: Remove StyleFontSize enum from nsStyleConsts.h.
Differential Revision: https://phabricator.services.mozilla.com/D77511
2020-06-18 23:51:14 +02: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
Josh Matthews
da3b3e3985
Fix refcell_backtrace feature. 2020-06-18 12:56:33 -04:00
bors-servo
d4d7cae87e
Auto merge of #26565 - ferjm:layout_2020_viewer_fix, r=SimonSapin
Adapt layout 2020 viewer to new BoxTree and FragmentTree structs

- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors

#26414 introduced some changes to how we represent the box and fragment trees, so we need to adapt the layout viewer to support them.
2020-06-18 12:36:21 -04:00
bors-servo
06c948eab3
Auto merge of #26965 - servo:dependabot/cargo/deflate-0.7.20, r=jdm
build(deps): bump deflate from 0.7.19 to 0.7.20

Bumps [deflate](https://github.com/image-rs/deflate-rs) from 0.7.19 to 0.7.20.
<details>
<summary>Commits</summary>
<ul>
<li>See full diff in <a href="https://github.com/image-rs/deflate-rs/commits">compare view</a></li>
</ul>
</details>
<br />

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

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-18 11:45:19 -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
Anthony Ramine
235df94f2e Compute content sizes lazily in layout 2020 2020-06-18 14:11:02 +02:00
WPT Sync Bot
3a95d0503c Update web-platform-tests to revision df2272857e29491bdb6c8ab77a8adec2f11757d2 2020-06-18 10:33:16 +00:00
bors-servo
40db56db4b
Auto merge of #26966 - servo:dependabot/cargo/addr2line-0.12.1, r=jdm
build(deps): bump addr2line from 0.12.0 to 0.12.1

Bumps [addr2line](https://github.com/gimli-rs/addr2line) from 0.12.0 to 0.12.1.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/gimli-rs/addr2line/blob/master/CHANGELOG.md">addr2line's changelog</a>.</em></p>
<blockquote>
<h2>0.12.1 (2020/05/19)</h2>
<h3>Fixed</h3>
<ul>
<li>
<p>Handle units with overlapping address ranges.
<a href="https://github-redirect.dependabot.com/gimli-rs/addr2line/pull/163">#163</a></p>
</li>
<li>
<p>Don't assert for functions with overlapping address ranges.
<a href="https://github-redirect.dependabot.com/gimli-rs/addr2line/pull/168">#168</a></p>
</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="3db6ddbc7b"><code>3db6ddb</code></a> Update changelog</li>
<li><a href="c4fe506dc9"><code>c4fe506</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/gimli-rs/addr2line/issues/172">#172</a> from philipc/release</li>
<li><a href="bf1ef67f40"><code>bf1ef67</code></a> Bump version to 0.12.1</li>
<li><a href="6d499fc2f6"><code>6d499fc</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/gimli-rs/addr2line/issues/168">#168</a> from philipc/issue-167</li>
<li><a href="9a885df05e"><code>9a885df</code></a> Don't assert for functions with overlapping address ranges</li>
<li><a href="6ab9f01c6b"><code>6ab9f01</code></a> Fix code coverage in CI</li>
<li><a href="a153abf075"><code>a153abf</code></a> Don't truncate ranges of units (<a href="https://github-redirect.dependabot.com/gimli-rs/addr2line/issues/163">#163</a>)</li>
<li>See full diff in <a href="https://github.com/gimli-rs/addr2line/compare/0.12.0...0.12.1">compare view</a></li>
</ul>
</details>
<br />

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

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-18 06:26:34 -04:00
dependabot-preview[bot]
e5274ed47b
build(deps): bump addr2line from 0.12.0 to 0.12.1
Bumps [addr2line](https://github.com/gimli-rs/addr2line) from 0.12.0 to 0.12.1.
- [Release notes](https://github.com/gimli-rs/addr2line/releases)
- [Changelog](https://github.com/gimli-rs/addr2line/blob/master/CHANGELOG.md)
- [Commits](https://github.com/gimli-rs/addr2line/compare/0.12.0...0.12.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-18 08:00:52 +00:00
dependabot-preview[bot]
ebf755c94b
build(deps): bump deflate from 0.7.19 to 0.7.20
Bumps [deflate](https://github.com/image-rs/deflate-rs) from 0.7.19 to 0.7.20.
- [Release notes](https://github.com/image-rs/deflate-rs/releases)
- [Changelog](https://github.com/image-rs/deflate-rs/blob/dev/changelog.md)
- [Commits](https://github.com/image-rs/deflate-rs/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-18 08:00:26 +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
57e751658b
Auto merge of #26952 - paulrouget:console, r=jdm
[UWP] Basic console panel

This PR introduces a Devtools client module to the UWP app. And a basic console panel.

There are still bugs and missing features, that I will address in future PRs:

- the output is just some text. No colors or formatting. This will be implemented as a [gridview](https://docs.microsoft.com/en-us/dotnet/framework/wpf/controls/gridview-overview) later.
- When connecting to the devtools server, we get a prompt asking for permission. I see 2 options: we share the socket between Servo and the UWP app (no idea if that's actually possible) or we keep using the TCP transport and share a token between Servo and the UWP app that would allow to bypass the permission prompt
- add a JS input.
- show HTTP errors. For now they are just ignored.
- There are 3 panels now: console, preference and a random "devtool server" panel that shows the devtools port. We could just print the port number in the console instead.
- Servo crashes if we open the devtools too early. This needs investigation.

Also, now that we have the foundation of a devtools client in UWP, we should remove the recently introduced preference API and rely on the preference devtools actor instead.

Fix #26850
2020-06-18 00:13:06 -04:00
Josh Matthews
c7f5d8a266 UWP: clear console when navigating pages. 2020-06-18 00:02:44 -04:00
Paul Rouget
bd8c7d6f4d [UWP] Basic console panel 2020-06-17 23:22:22 -04:00
bors-servo
429bb9e874
Auto merge of #26955 - gterzian:fix_parser_borrow, r=jdm
Do not trace pending parsers

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

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

---
<!-- 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 23:20:45 -04: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
bors-servo
634510cd50
Auto merge of #26951 - servo:dependabot/cargo/backtrace-0.3.49, r=jdm
build(deps): bump backtrace from 0.3.48 to 0.3.49

Bumps [backtrace](https://github.com/rust-lang/backtrace-rs) from 0.3.48 to 0.3.49.
<details>
<summary>Commits</summary>
<ul>
<li><a href="00052cae45"><code>00052ca</code></a> Bump to 0.3.49</li>
<li><a href="5fde985416"><code>5fde985</code></a> Switch object dep to crates.io</li>
<li><a href="05319f46dd"><code>05319f4</code></a> Handle compressed debug sections in ELF files (<a href="https://github-redirect.dependabot.com/rust-lang/backtrace-rs/issues/344">#344</a>)</li>
<li><a href="d471d23ee0"><code>d471d23</code></a> Add support for MinGW dynamic libs (<a href="https://github-redirect.dependabot.com/rust-lang/backtrace-rs/issues/345">#345</a>)</li>
<li><a href="3cf8cbf3f0"><code>3cf8cbf</code></a> Fix some more nightly warnings about lifetimes</li>
<li><a href="d4f24b1397"><code>d4f24b1</code></a> Fix anonymous lifetime warnings for libbacktrace</li>
<li><a href="17493e1162"><code>17493e1</code></a> Update test images (<a href="https://github-redirect.dependabot.com/rust-lang/backtrace-rs/issues/343">#343</a>)</li>
<li><a href="635e159d1f"><code>635e159</code></a> Add the <code>Frame::sp</code> method to get the frame's stack pointer (<a href="https://github-redirect.dependabot.com/rust-lang/backtrace-rs/issues/341">#341</a>)</li>
<li><a href="02bc46fa34"><code>02bc46f</code></a> Add a test that dynamically loaded libraries symbolicate (<a href="https://github-redirect.dependabot.com/rust-lang/backtrace-rs/issues/332">#332</a>)</li>
<li><a href="1ca764ecab"><code>1ca764e</code></a> Warn about 2018 idioms (<a href="https://github-redirect.dependabot.com/rust-lang/backtrace-rs/issues/331">#331</a>)</li>
<li>See full diff in <a href="https://github.com/rust-lang/backtrace-rs/compare/0.3.48...0.3.49">compare view</a></li>
</ul>
</details>
<br />

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

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 16:08:58 -04:00
Matthias Deiml
25080e3fa5 Use global.get_referrer() when appropiate 2020-06-17 22:08:06 +02:00
bors-servo
3624a05bd6
Auto merge of #26950 - servo:dependabot/cargo/dlib-0.4.2, r=jdm
build(deps): bump dlib from 0.4.1 to 0.4.2

Bumps [dlib](https://github.com/vberger/dlib) from 0.4.1 to 0.4.2.
<details>
<summary>Commits</summary>
<ul>
<li>See full diff in <a href="https://github.com/vberger/dlib/commits/v0.4.2">compare view</a></li>
</ul>
</details>
<br />

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

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 14:31:48 -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
Matthias Deiml
fa18cf620f Make url for "client" referrer mandatory 2020-06-17 19:07:14 +02:00
bors-servo
c9c517d45d
Auto merge of #26948 - servo:dependabot/cargo/proc-macro-nested-0.1.6, r=jdm
build(deps): bump proc-macro-nested from 0.1.4 to 0.1.6

Bumps [proc-macro-nested](https://github.com/dtolnay/proc-macro-hack) from 0.1.4 to 0.1.6.
<details>
<summary>Commits</summary>
<ul>
<li>See full diff in <a href="https://github.com/dtolnay/proc-macro-hack/commits">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://api.dependabot.com/badges/compatibility_score?dependency-name=proc-macro-nested&package-manager=cargo&previous-version=0.1.4&new-version=0.1.6)](https://dependabot.com/compatibility-score/?dependency-name=proc-macro-nested&package-manager=cargo&previous-version=0.1.4&new-version=0.1.6)

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 13:02:13 -04:00
Gregory Terzian
558a55c0b2 do not trace pending parsers 2020-06-17 22:49:19 +08:00
bors-servo
37394a892c
Auto merge of #26946 - servo:dependabot/cargo/tokio-uds-0.2.6, r=jdm
build(deps): bump tokio-uds from 0.2.5 to 0.2.6

Bumps [tokio-uds](https://github.com/tokio-rs/tokio) from 0.2.5 to 0.2.6.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/tokio-rs/tokio/releases">tokio-uds's releases</a>.</em></p>
<blockquote>
<h2>Tokio v0.2.6</h2>
<p>This release fixes an API regression introduced as part of v0.2.5.</p>
<h3>Fixes</h3>
<ul>
<li><code>fs::File::seek</code> API regression (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/1991">#1991</a>).</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="248bf2144f"><code>248bf21</code></a> prepare v0.2.6 release (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/1995">#1995</a>)</li>
<li><a href="93ab70a9a0"><code>93ab70a</code></a> fs: add deprecated fs::File::seek fn (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/1991">#1991</a>)</li>
<li><a href="58b5abdb99"><code>58b5abd</code></a> update connect example (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/1787">#1787</a>)</li>
<li><a href="2d78cfe56a"><code>2d78cfe</code></a> chore: prepare v0.2.5 release (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/1984">#1984</a>)</li>
<li><a href="4c645866ef"><code>4c64586</code></a> stream: add <code>next</code> and <code>map</code> utility fn (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/1962">#1962</a>)</li>
<li><a href="b0836ece7a"><code>b0836ec</code></a> sync: encapsulate TryLockError variants (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/1980">#1980</a>)</li>
<li><a href="0c0f682010"><code>0c0f682</code></a> Improve runtime threading options docs</li>
<li><a href="b24ad9fe86"><code>b24ad9f</code></a> rt: add configuration for core threads and max threads (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/1977">#1977</a>)</li>
<li><a href="7c010ed030"><code>7c010ed</code></a> sync: add broadcast channel (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/1943">#1943</a>)</li>
<li><a href="42c942de14"><code>42c942d</code></a> Fix ROADMAP link (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/1981">#1981</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/tokio-rs/tokio/compare/tokio-uds-0.2.5...tokio-0.2.6">compare view</a></li>
</ul>
</details>
<br />

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

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 10:00:41 -04: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
dependabot-preview[bot]
57f4f0a09f
build(deps): bump backtrace from 0.3.48 to 0.3.49
Bumps [backtrace](https://github.com/rust-lang/backtrace-rs) from 0.3.48 to 0.3.49.
- [Release notes](https://github.com/rust-lang/backtrace-rs/releases)
- [Commits](https://github.com/rust-lang/backtrace-rs/compare/0.3.48...0.3.49)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-17 07:54:52 +00:00
dependabot-preview[bot]
687181349b
build(deps): bump dlib from 0.4.1 to 0.4.2
Bumps [dlib](https://github.com/vberger/dlib) from 0.4.1 to 0.4.2.
- [Release notes](https://github.com/vberger/dlib/releases)
- [Commits](https://github.com/vberger/dlib/commits/v0.4.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-17 07:54:21 +00:00
dependabot-preview[bot]
689ae6b3be
build(deps): bump proc-macro-nested from 0.1.4 to 0.1.6
Bumps [proc-macro-nested](https://github.com/dtolnay/proc-macro-hack) from 0.1.4 to 0.1.6.
- [Release notes](https://github.com/dtolnay/proc-macro-hack/releases)
- [Commits](https://github.com/dtolnay/proc-macro-hack/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-17 07:53:27 +00:00
dependabot-preview[bot]
232aeb37a2
build(deps): bump tokio-uds from 0.2.5 to 0.2.6
Bumps [tokio-uds](https://github.com/tokio-rs/tokio) from 0.2.5 to 0.2.6.
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-uds-0.2.5...tokio-0.2.6)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-17 07:51:32 +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
b4c2d3b717
Auto merge of #26942 - mrobinson:combine-declaration-structs, r=emilio
Combine AnimationAndTransitionDeclarations and AnimationRules

These two structs are very similar, so we can combine them.

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

---
<!-- 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 do not require tests because they should not change behavior.

<!-- 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 14:23:28 -04:00
Martin Robinson
36701e0223 Combine AnimationAndTransitionDeclarations and AnimationRules
These two structs are very similar, so we can combine them.
2020-06-16 19:25:52 +02: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