Commit graph

42792 commits

Author SHA1 Message Date
bors-servo
9261cf6ead
Auto merge of #27381 - servo-wpt-sync:wpt_update_23-07-2020, r=servo-wpt-sync
Sync WPT with upstream (23-07-2020)

Automated downstream sync of changes from upstream as of 23-07-2020.
[no-wpt-sync]
r? @servo-wpt-sync
2020-07-23 06:53:35 -04:00
WPT Sync Bot
b64dc1ed97 Update web-platform-tests to revision 59cec4f843d5c86d5d2e99d636e465e09807cafb 2020-07-23 10:53:21 +00:00
bors-servo
e823d1623b
Auto merge of #27362 - servo:jdm-patch-46, r=asajeffrey
Fix nightly smoketest.
2020-07-23 00:57:21 -04:00
bors-servo
7b01d40a64
Auto merge of #27365 - jdm:offthread-fixes, r=cybai
Fixes for off-thread compilation of scripts

Fixes #27355. Fixes #27349.
2020-07-22 22:30:52 -04:00
bors-servo
5f31dbf993
Auto merge of #27368 - jdm:wack-fix, r=Manishearth
Use backtrace fork with UWP-specific fix.

Fixes #27367, which was introduced by 57f4f0a09f. I'd like to do a new release in the store, and I would prefer not to wait for a new version of backtrace to be released before that can happen.
2020-07-22 18:31:55 -04:00
Josh Matthews
22d0117ea3 Use backtrace fork with UWP-specific fix. 2020-07-22 15:47:24 -04:00
bors-servo
0648c1dc9e
Auto merge of #27358 - servo:dependabot/cargo/crossbeam-channel-0.4.3, r=jdm
build(deps): bump crossbeam-channel from 0.4.2 to 0.4.3

Bumps [crossbeam-channel](https://github.com/crossbeam-rs/crossbeam) from 0.4.2 to 0.4.3.
<details>
<summary>Commits</summary>
<ul>
<li><a href="5a68889cbc"><code>5a68889</code></a> Bump crossbeam-channel to v0.4.3</li>
<li><a href="669736b8e5"><code>669736b</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/crossbeam-rs/crossbeam/issues/537">#537</a> from nical/cb-chan-license</li>
<li><a href="ce713a1f8b"><code>ce713a1</code></a> Change crossbeam-channel's license to MIT OR Apache-2.0.</li>
<li><a href="81ab18efc7"><code>81ab18e</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/crossbeam-rs/crossbeam/issues/530">#530</a> from crossbeam-rs/license</li>
<li><a href="81eea47889"><code>81eea47</code></a> Remove parentheses from license field in Cargo.toml</li>
<li><a href="2f1ed42da6"><code>2f1ed42</code></a> Merge <a href="https://github-redirect.dependabot.com/crossbeam-rs/crossbeam/issues/527">#527</a></li>
<li><a href="1ad6b9fdd4"><code>1ad6b9f</code></a> Attempt to fix permission error</li>
<li><a href="af63c6b605"><code>af63c6b</code></a> Propagate nightly feature</li>
<li><a href="cae71e1c62"><code>cae71e1</code></a> Check all feature combinations works properly on CI</li>
<li><a href="bbc8601e4d"><code>bbc8601</code></a> Merge <a href="https://github-redirect.dependabot.com/crossbeam-rs/crossbeam/issues/525">#525</a> <a href="https://github-redirect.dependabot.com/crossbeam-rs/crossbeam/issues/528">#528</a></li>
<li>Additional commits viewable in <a href="https://github.com/crossbeam-rs/crossbeam/compare/v0.4.2...crossbeam-channel-0.4.3">compare view</a></li>
</ul>
</details>
<br />

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

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-07-22 15:31:57 -04:00
Josh Matthews
e3f0989e1c Ensure scripts compiled off-thread can import modules. 2020-07-22 13:10:03 -04:00
Josh Matthews
a271ed9150 Pass C string pointer to CompileOptionsWrapper. 2020-07-22 12:30:27 -04:00
Josh Matthews
88f2942405
Fix nightly smoketest. 2020-07-22 11:12:39 -04:00
bors-servo
6a9aac3e65
Auto merge of #27361 - servo-wpt-sync:wpt_update_22-07-2020, r=servo-wpt-sync
Sync WPT with upstream (22-07-2020)

Automated downstream sync of changes from upstream as of 22-07-2020.
[no-wpt-sync]
r? @servo-wpt-sync
2020-07-22 06:22:21 -04:00
WPT Sync Bot
4c80634acb Update web-platform-tests to revision aa86bfbb569fee92a3176bae68e3b7ec54140a6d 2020-07-22 10:22:06 +00:00
dependabot-preview[bot]
6d064275e0
build(deps): bump crossbeam-channel from 0.4.2 to 0.4.3
Bumps [crossbeam-channel](https://github.com/crossbeam-rs/crossbeam) from 0.4.2 to 0.4.3.
- [Release notes](https://github.com/crossbeam-rs/crossbeam/releases)
- [Changelog](https://github.com/crossbeam-rs/crossbeam/blob/master/CHANGELOG.md)
- [Commits](https://github.com/crossbeam-rs/crossbeam/compare/v0.4.2...crossbeam-channel-0.4.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-07-22 07:58:38 +00:00
bors-servo
a242913629
Auto merge of #26710 - AbhishekSharma102:issue_26571, r=jdm,gterzian
Compile external scripts off the main thread

<!-- 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
- [ ] These changes fix #26571  (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-07-21 18:29:47 -04:00
AbhishekSharma102
1119dd119e Added off thread compilation
Co-authored-by: Gregory Terzian <2792687+gterzian@users.noreply.github.com>
Co-authored-by: Abhishek Sharma <20724848+AbhishekSharma102@users.noreply.github.com>
2020-07-21 16:20:51 -04:00
bors-servo
863a7ee08b
Auto merge of #27333 - jdm:package-macos, r=asajeffrey
Include gstreamer plugins in macOS nightly package.

Fixes #27318. Fixes #27332.
2020-07-21 16:13:22 -04:00
bors-servo
ac37078af8
Auto merge of #27348 - kunalmohan:gpu-copy, r=kvark
Implement GPUCommandEncoder.copy commands

<!-- Please describe your changes on the following line: -->
r?@kvark

---
<!-- 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
- [ ] 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-07-21 15:13:08 -04:00
Josh Matthews
03dcf32df3 Verify the macOS package can load basic pages. 2020-07-21 13:12:03 -04:00
Kunal Mohan
5285c07f1f Implement GPUCommandEncoder.copy commands 2020-07-21 21:00:23 +05:30
bors-servo
fdbecc68cf
Auto merge of #27347 - servo-wpt-sync:wpt_update_21-07-2020, r=servo-wpt-sync
Sync WPT with upstream (21-07-2020)

Automated downstream sync of changes from upstream as of 21-07-2020.
[no-wpt-sync]
r? @servo-wpt-sync
2020-07-21 06:58:06 -04:00
WPT Sync Bot
757411a74c Update web-platform-tests to revision d62995e62ca8653b4cf565e61c309471b544fab8 2020-07-21 10:51:44 +00:00
bors-servo
f844ca5eba
Auto merge of #27343 - utsavoza:ugo/update-mozjs/21-07-2020, r=jdm
Update mozjs

Pick up [servo/rust-mozjs#517](https://github.com/servo/rust-mozjs/pull/517) and [servo/mozjs#256](https://github.com/servo/mozjs/pull/256)
2020-07-21 06:46:21 -04:00
bors-servo
774673d186
Auto merge of #27304 - paulrouget:staticdevtoolsport, r=jdm
UWP: non random port for devtools, and support for custom UWP prefs

packages-prefs.json is now taken into account for libsimpleservo. Making it possible to have custom pref for the UWP builds, removing some weirdness in the way we handle preferences in the hololens code.

This also adds a new set of preferences to control the devtools server startup state, and make the port choice constant across sessions.

Fix #27267
Fix #22970
2020-07-21 03:38:10 -04:00
bors-servo
c02da14847
Auto merge of #27339 - Manishearth:flex-align-items, r=pcwalton
flexbox 2020: Implement `align-items` and `align-self`, excluding `baseline`

This PR is based on https://github.com/servo/servo/pull/27334 for ease of testing

`baseline` is tricky and involves keeping track of a "baseline set"

https://drafts.csswg.org/css-flexbox/#flex-baselines

Part of https://github.com/servo/servo/issues/26639
2020-07-21 02:36:48 -04:00
Utsav Oza
0c0d8ec686 Update mozjs 2020-07-21 11:45:44 +05:30
bors-servo
c0778ff3c5
Auto merge of #27313 - jdm:layer-idl, r=asajeffrey
Update XRWebGLLayer to match specification.

This unbreaks most of the webxr WPT tests.

---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #27312
- [x] There are tests for these changes
2020-07-21 01:38:08 -04:00
Paul Rouget
1b0de562ed Remove simpleservo antialiasing option, rely on pref 2020-07-21 06:30:06 +02:00
bors-servo
132d8b4601
Auto merge of #27216 - pcwalton:floats-2020, r=Manishearth
Implement core float layout for layout 2020

<!-- Please describe your changes on the following line: -->
Add an implementation of the core float and clear placement logic in layout 2020, not yet wired to the rest of layout.

This commit implements an object that handles the 10 rules in CSS 2.1:

https://www.w3.org/TR/CSS2/visuren.html#float-position

The implementation strategy is that of a persistent balanced binary search tree
of float bands. Binary search trees are commonly used for implementing float
positioning; e.g. by WebKit.  Persistence enables each object that interacts
with floats to efficiently contain a snapshot of the float list at the time
that object was laid out. That way, incremental layout can invalidate and start
reflow at any point in a containing block.

This commit features extensive use of
[QuickCheck](https://github.com/BurntSushi/quickcheck) to ensure that the rules
of the CSS specification are followed.

Because this is not yet connected to layout, floats will not actually be laid
out in Web pages yet.

Note that unit tests as set up in Servo currently require types that they
access to be public. Therefore, some internal layout 2020 types that were
previously private have been made public. This is somewhat unfortunate.

---
<!-- 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
- [ ] 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-07-21 00:09:00 -04:00
Manish Goregaokar
f2bfa08a85 Add manual test for align-self 2020-07-20 20:16:23 -07:00
Manish Goregaokar
1cedf40376 Update wpt expectations 2020-07-20 20:16:23 -07:00
Manish Goregaokar
ba9448e682 flex 2020: Handle positioning flex item based on align-self 2020-07-20 20:16:23 -07:00
bors-servo
59841377c2
Auto merge of #27329 - kunalmohan:gpu-label, r=kvark
Update GPUObjectBase webidl and cleanup valid flags

<!-- Please describe your changes on the following line: -->
Update labels to be `USVString`
Remove `valid` flags in WebGPU resources. The only place where we still have that is `GPUCommandEncoder` (Only to validate the GPUCommandEncoder state. Not sure how errors would be handled/reported by server for copy commands).

r?@kvark

---
<!-- 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
- [ ] 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-07-20 20:43:56 -04:00
Manish Goregaokar
d1b92b68c7 flexbox 2020: Respect the stretchiness of align-self 2020-07-20 14:26:14 -07:00
Manish Goregaokar
1af5efc542 flexbox 2020: Enable align-self and align-items in CSS 2020-07-20 14:26:14 -07:00
Manish Goregaokar
63ac4d165c flexbox 2020: Store align_items on FlexContext 2020-07-20 14:26:14 -07:00
bors-servo
1ded1ba992
Auto merge of #27338 - jdm:exit-fix, r=Manishearth
Update webxr.

Fixes #27270.
2020-07-20 17:11:58 -04:00
Josh Matthews
5e7d025106 Update webxr. 2020-07-20 16:24:18 -04:00
Josh Matthews
c34e587140 Update XRWebGLLayer to match specification. 2020-07-20 15:52:16 -04:00
Patrick Walton
5b36d211b4 Add an implementation of the core float and clear placement logic in layout
2020, not yet wired to the rest of layout.

This commit implements an object that handles the 10 rules in CSS 2.1:

https://www.w3.org/TR/CSS2/visuren.html#float-position

The implementation strategy is that of a persistent balanced binary search tree
of float bands. Binary search trees are commonly used for implementing float
positioning; e.g. by WebKit.  Persistence enables each object that interacts
with floats to efficiently contain a snapshot of the float list at the time
that object was laid out. That way, incremental layout can invalidate and start
reflow at any point in a containing block.

This commit features extensive use of
[QuickCheck](https://github.com/BurntSushi/quickcheck) to ensure that the rules
of the CSS specification are followed.

Because this is not yet connected to layout, floats will not actually be laid
out in Web pages yet.

Note that unit tests as set up in Servo currently require types that they
access to be public. Therefore, some internal layout 2020 types that were
previously private have been made public. This is somewhat unfortunate.

Part of #25167.
2020-07-20 12:42:34 -07:00
Manish Goregaokar
6914c51195 Handle flex item box sizing and minmax for flexbox in 2020 2020-07-20 12:22:06 -07:00
Josh Matthews
919e9e39f6 Add gstreamer plugins to nightly package. 2020-07-20 14:27:35 -04:00
Kunal Mohan
cdc0a75fe4 Update GPUObjectBase webidl and cleanup valid flags 2020-07-20 23:03:53 +05:30
bors-servo
48bf169101
Auto merge of #27316 - asajeffrey:webxr-save-restore-gl-state, r=Manishearth
Save / restore state when updating opaque framebuffer bindings

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

This saves and restores the WebGL bindings for texture and framebuffer when beginning a webxr frame.

---
<!-- 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 #27286
- [x] These changes do not require tests because we don't reftest hololens (it would be nice if we did!)

<!-- 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-07-20 12:20:40 -04:00
bors-servo
06cc355a54
Auto merge of #27326 - servo-wpt-sync:wpt_update_20-07-2020, r=jdm
Sync WPT with upstream (20-07-2020)

Automated downstream sync of changes from upstream as of 20-07-2020.
[no-wpt-sync]
r? @servo-wpt-sync
2020-07-20 12:03:01 -04:00
Alan Jeffrey
f01527503e Updated webxr 2020-07-20 10:10:38 -05:00
Alan Jeffrey
a708b5f7ce Save / restore state when updating opaque framebuffer bindings 2020-07-20 10:10:38 -05:00
bors-servo
d40af67eff
Auto merge of #27322 - servo:dependabot/cargo/indexmap-1.5.0, r=jdm
build(deps): bump indexmap from 1.4.0 to 1.5.0

Bumps [indexmap](https://github.com/bluss/indexmap) from 1.4.0 to 1.5.0.
<details>
<summary>Commits</summary>
<ul>
<li><a href="d293267167"><code>d293267</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/bluss/indexmap/issues/131">#131</a> from cuviper/shredded-potatoes</li>
<li><a href="1999fa2534"><code>1999fa2</code></a> Use new methods in hashbrown 0.8.1</li>
<li><a href="603c326aa8"><code>603c326</code></a> Release 1.5.0</li>
<li><a href="604a2b68a5"><code>604a2b6</code></a> Use plain clear instead of clear_no_drop</li>
<li><a href="b0c9577ad2"><code>b0c9577</code></a> Encapsulate unsafe code in a raw module</li>
<li><a href="66cb0af437"><code>66cb0af</code></a> Make methods that get RawBucket parameters unsafe; add safety comments</li>
<li><a href="379a07ae2a"><code>379a07a</code></a> Don't enable hashbrown/inline-more</li>
<li><a href="39618a2b68"><code>39618a2</code></a> Don't shadow raw_bucket variables</li>
<li><a href="89eefd64b0"><code>89eefd6</code></a> Document the return value of IndexMapCore::push</li>
<li><a href="8771a6c79f"><code>8771a6c</code></a> Upgrade to hashbrown 0.8</li>
<li>Additional commits viewable in <a href="https://github.com/bluss/indexmap/compare/1.4.0...1.5.0">compare view</a></li>
</ul>
</details>
<br />

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

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-07-20 09:52:51 -04:00
Josh Matthews
08b4ed752b
Add 2020 flexbox failure. 2020-07-20 09:03:18 -04:00
WPT Sync Bot
dcfcbcf2ad Update web-platform-tests to revision 8ef40c4007d5da834b25e79197cb8cb4c0a86a42 2020-07-20 10:26:50 +00:00
dependabot-preview[bot]
6189822acf
build(deps): bump indexmap from 1.4.0 to 1.5.0
Bumps [indexmap](https://github.com/bluss/indexmap) from 1.4.0 to 1.5.0.
- [Release notes](https://github.com/bluss/indexmap/releases)
- [Commits](https://github.com/bluss/indexmap/compare/1.4.0...1.5.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-07-20 08:23:50 +00:00