Commit graph

44679 commits

Author SHA1 Message Date
Teymour Aldridge
c25822d886 Add vscode/rust-analyzer info. 2022-01-20 18:46:37 +00:00
WPT Sync Bot
b77ad115f6 Update web-platform-tests to revision b'ee6da9d71d0268d7fdb04e8e5b26858f46ee0cc4' 2022-01-20 20:57:54 +09:00
bors-servo
4401622eb1
Auto merge of #28592 - CYBAI:wpt_update_07-09-2021, r=jdm
Sync WPT with upstream manually (07-09-2021)

I haven't successfully used GitHub Actions to send a PR though, I think it might be good to send this PR first because we haven't updated our WPT tests for quite a long time.

This branch is generated by the job in https://github.com/CYBAI/servo/pull/39 but it failed to create a PR (maybe I failed to setup the scope of my GitHub token).
2022-01-19 11:40:10 -05:00
bors-servo
bc83e1158b
Auto merge of #28696 - teymour-aldridge:patch-1, r=jdm
Remove now resolved debugging bug.

The bug (https://github.com/rr-debugger/rr/issues/1883) has been resolved.
2022-01-19 09:32:20 -05:00
Teymour Aldridge
43ee7c6076
Remove now resolved debugging bug.
The bug (https://github.com/rr-debugger/rr/issues/1883) has been resolved.
2022-01-19 10:42:24 +00:00
cybai
458dfbefca Mark more tests to a proper status 2022-01-17 21:50:41 +09:00
cybai
a9c9e27de6 Fix some intermittent results 2022-01-17 16:30:36 +09:00
cybai
4cb2216b26 Fix renamed webidl name in ini config 2022-01-17 16:30:36 +09:00
WPT Sync Bot
58e8ee674b Update web-platform-tests to revision b'468d01bbd84da2babf265c6af46947be68713440' 2022-01-17 16:30:29 +09:00
bors-servo
35e95f55a1
Auto merge of #28663 - saschanaz:void-undefined, r=jdm
Convert Web IDL void to undefined

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

Thanks to my tool https://github.com/saschanaz/gecko-webidl 🙌

Build is failing on my current VS2022+Python 3.10 environment, but the IDL tests are passing anyway, so...

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

<!-- 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. -->
2022-01-16 23:06:45 -05:00
dependabot[bot]
660bc93515
Bump getrandom from 0.1.14 to 0.1.16
Bumps [getrandom](https://github.com/rust-random/getrandom) from 0.1.14 to 0.1.16.
- [Release notes](https://github.com/rust-random/getrandom/releases)
- [Changelog](https://github.com/rust-random/getrandom/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-random/getrandom/compare/v0.1.14...v0.1.16)

---
updated-dependencies:
- dependency-name: getrandom
  dependency-type: indirect
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-17 03:08:47 +00:00
bors-servo
3391772551
Auto merge of #28660 - negator:negator/upgrade-hyper-tokio, r=jdm
Upgrade to hyper:0.14.16 and tokio:1.15.0

Upgrades hyper and tokio to the latest compatible versions.

---
<!-- 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 #26933 (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. -->
2022-01-16 19:46:22 -05:00
Naveen Gattu
a48a111cee Upgrade Hyper 2022-01-16 09:34:17 -08:00
bors-servo
a19b916b56
Auto merge of #28670 - myersg86:master, r=jdm
Fix typos in markdown files

Fixes a number of typographical errors across markdown documentation files.

<!-- 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: -->
- [ ] `./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. -->
2022-01-16 03:20:05 -05:00
bors-servo
7c17c8b72b
Auto merge of #28674 - servo:regen-certs, r=jdm
Regenerate WPT certs.

The certs expired on Jan 12; this regenerates them for another year. Usually this wouldn't be an issue since upstream WPT regenerates them every month, but we have not had a successful sync since January 2021. Fixes #28672.
2022-01-15 22:37:49 -05:00
Josh Matthews
67e7e689ee Regenerate WPT certs. 2022-01-15 18:13:33 -05:00
Greg Myers
829a736f96
Fix typos in markdown files
Fixes a number of typographical errors across
markdown documentation files.
2022-01-14 16:46:10 -07:00
Kagami Sascha Rosylight
5b38981b5b tidy 2022-01-05 15:07:09 +01:00
Kagami Sascha Rosylight
4bd814a078 Update CodegenRust.py 2022-01-05 13:54:56 +01:00
Kagami Sascha Rosylight
87fad61851 Try rolling back python fix 2022-01-05 04:44:19 +01:00
Kagami Sascha Rosylight
52ea5204a2 Convert Web IDL void to undefined
Fixes #27660
2022-01-05 03:39:33 +01:00
bors-servo
5df705a41f
Auto merge of #28662 - jdm:tungestenite-upgrade, r=jdm
Tungestenite upgrade

This updates our async-tungstenite/tungstenite dependencies to slightly newer versions that still rely on tokio 0.2 and should make #28661 easier.
2022-01-03 15:55:37 -05:00
Josh Matthews
49b3392377 Dedup pin projection crates. 2022-01-03 15:54:15 -05:00
Josh Matthews
08ff81b09a Fix warnings. 2022-01-03 13:05:19 -05:00
Josh Matthews
e87bbb093a Update async-tungestenite. 2022-01-03 13:05:10 -05:00
bors-servo
8d217ba6cc
Auto merge of #28658 - mrl5:issue-28657, r=jdm
docs(linux): added runtime dependencies

Closes #28657

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

added info about runtime dependencies needed for linux

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

<!-- Either: -->
- [ ] There are tests for these changes OR
- [X] These changes do not require tests because it's a README change

<!-- 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. -->
2022-01-01 15:39:21 -05:00
mrl5
83824f599d
docs(linux): added runtime dependencies
Closes #28657
2022-01-01 19:26:38 +01:00
bors-servo
b06eb38f56
Auto merge of #28639 - negator:negator/async, r=jdm
Non-blocking network IO

The current networking strategy uses a fixed sized thread pool to perform blocking requests on a per call basis. This is inefficient, but can be ~easily~ improved by utilizing the existing tokio runtime instead to submit async networking tasks to its executor. However, since servo is currently using an outdated version of the `hyper` http library (`0.12`) we must use the [`tokio_compat`](https://github.com/tokio-rs/tokio-compat) and [`futures_compat`](https://docs.rs/futures/0.3.1/futures/compat/index.html) libraries to integrate with the older version of [`Future` used in `hyper`](https://docs.rs/hyper/0.12.1/hyper/rt/trait.Future.html).

~**NOTE**: This PR is just proof of concept at the moment. In addition to test failures, it appears that large javascript downloads are silently failing to stream entire payloads, and occasionally getting cutoff.~

Tests are passing.

---
<!-- 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 [#22813](https://github.com/servo/servo/issues/22813) (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. -->
2022-01-01 13:14:08 -05:00
bors-servo
d1086be748
Auto merge of #28655 - joeljose350:master, r=jdm
Fixed a few incorrect names in README

None
2021-12-31 10:46:11 -05:00
Joel Jose
5e97e6c07c Fixed a few incorrect names 2021-12-31 17:24:21 +05:30
bors-servo
21bbca4609
Auto merge of #28654 - wusyong:bootstrap, r=jdm
Allow bootstrap on Pop!_OS 21.10

<!-- Please describe your changes on the following line: -->
bootstrap.py doesn't support Pop!_OS 21.x yet. Adding these lines should make the script works again.

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

<!-- Either: -->
- [x] These changes do not require tests because it seems there no test requires certain version check and test-tidy has passed.

<!-- 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. -->
2021-12-30 10:21:44 -05:00
Wu Yu Wei
edd082cdbc Allow bootstrap on Pop!_OS 21.10 2021-12-30 15:40:20 +08:00
bors-servo
4f1ca4d1bc
Auto merge of #28651 - mvforell:master, r=jdm
Update more deprecated python imports.

`mach` still uses some deprecated imports that were removed in Python 3.10, and currently fails when using Python 3.10.

This is in the same line as #28649.
2021-12-27 18:39:40 -05:00
bors-servo
2353902ebb
Auto merge of #28652 - jdm:mozjsup, r=jdm
Update mozjs.

Incorporates fixes for python 3.10.
2021-12-27 16:18:06 -05:00
Josh Matthews
6ef413ba8d Update mozjs. 2021-12-26 22:37:40 -05:00
Max von Forell
127463a2c5 Update more deprecated python imports.
Signed-off-by: Max von Forell <max@vonforell.de>
2021-12-26 15:43:40 +01:00
Naveen Gattu
903e0cd857 Non-blocking network IO 2021-12-23 11:16:24 -08:00
bors-servo
38b853b66a
Auto merge of #28650 - servo:mozjsup, r=jdm
Update mozjs.

Fixes #28244.
2021-12-22 19:07:16 -05:00
Josh Matthews
23f7ce6553 Update mozjs. 2021-12-22 19:05:33 -05:00
bors-servo
10fa3085d9
Auto merge of #28649 - jdm:python-310, r=jdm
Address python 3.10 issue in mach

Fixes #28631.
2021-12-21 23:54:10 -05:00
Josh Matthews
c709f36691 Ignore mach when tidying. 2021-12-21 23:53:09 -05:00
Josh Matthews
ba9305438e Update deprecated python import. 2021-12-21 14:24:00 -05:00
bors-servo
708bf2f637
Auto merge of #28648 - jdm:mach-vendor, r=jdm
Vendor mach-1.0.0.

This will allow us to fork the package and make the changes necessary to solve #28631.
2021-12-21 10:58:35 -05:00
Josh Matthews
f4de057784 Vendor mach-1.0.0. 2021-12-21 10:57:18 -05:00
bors-servo
8dc59c6985
Auto merge of #28645 - negator:patch-4, r=jdm
concept-response-clone: Ensure header guard is cloned after headers

https://fetch.spec.whatwg.org/#concept-response-clone

If the header guard of the response to clone is `immutable`, then copying the headers to the new response will fail with `Guard is immutable` unless we ensure the guard is copied _after_ the headers.

8650794391/components/script/dom/response.rs (L331-L334)

8650794391/components/script/dom/headers.rs (L202-L210)

8650794391/components/script/dom/headers.rs (L73)

<!-- 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 #___ (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. -->
2021-12-17 22:00:19 -05:00
Naveen Gattu
a744ac26da concept-response-clone: Ensure header guard is cloned after headers
https://fetch.spec.whatwg.org/#concept-response-clone

If the header guard of the response to clone is `immutable`, then copying the headers to the new response will fail with `Guard is immutable` unless we ensure the guard is copied _after_ the headers.

8650794391/components/script/dom/response.rs (L331-L334)

    fn Append(&self, name: ByteString, value: ByteString) -> ErrorResult {
        // Step 1
        let value = normalize_value(value);
        // Step 2
        let (mut valid_name, valid_value) = validate_name_and_value(name, value)?;
        valid_name = valid_name.to_lowercase();
        // Step 3
        if self.guard.get() == Guard::Immutable {
            return Err(Error::Type("Guard is immutable".to_string()));
        }
2021-12-17 11:25:59 -08:00
bors-servo
8650794391
Auto merge of #28644 - gian-carlo-d:add-ubuntu-21.10-compatibility, r=jdm
Allow builds / tests on Ubuntu 21.10

<!-- Please describe your changes on the following line: -->
This PR updates the version check in `python/servo/bootstrap.py` for Ubuntu to `> 21.10` to accommodate the latest version. It also updates the `clang-format` check in `test_commands.py` to use `find()` instead of `startswith()` to account for possible distro-specific insertions into the `clang-format --version` command.

Ubuntu, for example, outputs `Ubuntu clang-format version 13.0.0-2`, which caused `version.startswith()` to throw an error as it looked for `clang-format` at the beginning of the string. This would cause `./mach test-tidy` to skip the CPP formatting portion.
![image](https://user-images.githubusercontent.com/17208534/146147849-92dd9849-5fc4-4632-b8d0-23b51dc34706.png)

These two changes should help run bootstrap and test commands on the latest Ubuntu version.
---
<!-- 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

<!-- Either: -->
- [X] These changes do not require tests because: I do not believe there are any current tests for the version checks (as the version checks are in-and-of themselves a test before running the bootstrap/test commands)

<!-- 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. -->
2021-12-15 16:57:01 -05:00
Gio de Guzman
43b38e3e37 update Ubuntu version check to > 21.10
Update clang-format version check to use find() instead of startswith() to deal with distro-specific discrepancy
2021-12-15 02:04:11 -06:00
bors-servo
c128c9a609
Auto merge of #28638 - servo:rustup, r=jdm
Update rustc.

Updates to the 12/02 rustc.
2021-12-02 20:34:10 -05:00
Josh Matthews
898f66bcd0 Update rustc. 2021-12-02 17:05:19 -05:00