Commit graph

39250 commits

Author SHA1 Message Date
WPT Sync Bot
328d5a4231 Update web-platform-tests to revision 474923949524b5c05a9e6f28ec082fdca87078de 2019-10-25 13:27:26 +00:00
takumi
3af931004f Fix the condition to keep original logic
Address this PR comment: https://github.com/servo/servo/pull/24489/files#diff-30a18e04d7e0b66aafdf192e416cad44R1472
This commit was failed to add in PR #24489.

Issue: #22782
2019-10-25 22:17:25 +09:00
Anthony Ramine
327740d67a Fix a ridiculous bug in layout-2020
Who needs CI anyway?
2019-10-25 11:23:46 +02:00
Simon Sapin
533e2d69c6 Update html5ever and xml5ever
Pick up https://github.com/servo/html5ever/pull/402
2019-10-25 10:46:37 +02:00
bors-servo
b7b1b903d3
Auto merge of #24533 - servo:rustup, r=nox
Update smallvec

The old version fails to build with the `union` unstable feature on today’s Rust Nightly:

https://tools.taskcluster.net/groups/Mq9abu-VT4OA3-Vq0Pe3dQ/tasks/Ri2K_wPMQRak5Y108_wDpA/runs/0/logs/public%2Flogs%2Flive.log#L1324
2019-10-25 04:25:14 -04:00
Hanif Bin Ariffin
31ff2d43cc Moved CanvasState out of canvasrenderingcontext
Cleaned up imports...

Applied clang-tidy

Moved CanvasState  and some other files

Next commit should remove pub modifier from members of CanvasState and use getters/setters instead.

Members of CanvasState are now private and applied test-tidy

Now have getters that return an immutable reference.
Also, I have no idea what to name some_func.rs

Removed need for some_func and made pub(crate)
2019-10-25 02:27:57 -04:00
bors-servo
273fe590db
Auto merge of #24539 - servo-wpt-sync:wpt_update_24-10-2019, r=servo-wpt-sync
Sync WPT with upstream (24-10-2019)

Automated downstream sync of changes from upstream as of 24-10-2019.
[no-wpt-sync]
r? @servo-wpt-sync
2019-10-24 22:46:50 -04:00
bors-servo
07abea0707
Auto merge of #24531 - teapotd:referer-length-limit, r=nox
Limit the referer header's value length to 4096

If the referer header's value is a URL with a length of more than 4k, strip it down to an origin.
This change reflects [w3c/webappsec-referrer-policy#122](https://github.com/w3c/webappsec-referrer-policy/pull/122)

---
<!-- 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 #24515
- [X] There are tests for these changes

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
2019-10-24 16:18:50 -04:00
teapotd
c54df2b965 Limit referer header value length to 4096 2019-10-24 20:59:00 +02:00
WPT Sync Bot
145699ccd0 Update web-platform-tests to revision d2f5658cb7f7806b2c6adf81ecb7ded82fb85df5 2019-10-24 15:48:44 +00:00
Fernando Jimenez Moreno
aeac55af5e Append default prefs to UWP app args 2019-10-24 17:16:55 +02:00
bors-servo
08af89bd82
Auto merge of #24532 - servo:tidy, r=nox
Add `./mach test-tidy --no-wpt`, for a git pre-push hook

Disabling WPT manifest checking brings the time it takes to run tidy for ~11 seconds to ~3 seconds, which feels reasonable to have in a git pre-push hook. This can help avoid forgetting to run tidy before opening a PR.

```sh
$ chmod +x .git/hooks/pre-push
$ cat .git/hooks/pre-push
#!/bin/sh
set -e
./mach test-tidy --no-wpt
```
2019-10-24 11:08:30 -04:00
Simon Sapin
5eb1472a33 2020: paint borders 2019-10-24 15:06:20 +02:00
Simon Sapin
4ba306dadb Update smallvec
The old version fails to build with the `union` unstable feature on today’s Rust Nightly:

https://tools.taskcluster.net/groups/Mq9abu-VT4OA3-Vq0Pe3dQ/tasks/Ri2K_wPMQRak5Y108_wDpA/runs/0/logs/public%2Flogs%2Flive.log#L1324
2019-10-24 12:25:14 +02:00
bors-servo
4cdfe23cc8
Auto merge of #24528 - servo:background-color, r=nox
Layout 2020: run layout and paint background-color
2019-10-24 05:58:39 -04:00
Fernando Jimenez Moreno
7737610870 Allow passing args to UWP app from command line 2019-10-24 11:49:40 +02:00
Fernando Jimenez Moreno
0feb16fe8d Allow launching UWP app from command line 2019-10-24 11:45:36 +02:00
Simon Sapin
59f68525c4 2020: enable CSS parsing of properties that are (somewhat) implemented 2019-10-24 10:44:31 +02:00
Simon Sapin
22f5e07765 2020: define DisplayInside and DisplayOutside enums separately from Stylo 2019-10-24 10:44:31 +02:00
Simon Sapin
8f89f59329 2020: parse display: contents 2019-10-24 10:44:31 +02:00
Simon Sapin
13e494d74f More compact debug output for CSS values
```
Rect {
    start_corner: Vec2 { i: 0.0 px, b: 0.0 px },
    size: Vec2 { i: 1024.0 px, b: 20.0 px },
}
```

… instead of:

```
Rect {
    start_corner: Vec2 {
        inline: CSSPixelLength(
            0.0,
        ),
        block: CSSPixelLength(
            0.0,
        ),
    },
    size: Vec2 {
        inline: CSSPixelLength(
            1024.0,
        ),
        block: CSSPixelLength(
            0.0,
        ),
    },
}
```
2019-10-24 10:44:31 +02:00
Simon Sapin
cfc3ffcd54 2020: paint background-color 2019-10-24 10:44:31 +02:00
Simon Sapin
4e8eeda976 2020: add and call Fragment::build_display_list 2019-10-24 10:43:08 +02:00
Simon Sapin
e38cc1a549 2020: run layout after box construction 2019-10-24 10:43:08 +02:00
Simon Sapin
c8a49baa80 Add ./mach test-tidy --no-wpt, for a git pre-push hook
Disabling WPT manifest checking brings the time it takes to run tidy
for ~11 seconds to ~3 seconds, which feels reasonable to have in a
git pre-push hook.
This can help avoid forgetting to run tidy before opening a PR.

```
$ chmod +x .git/hooks/pre-push
$ cat .git/hooks/pre-push
#!/bin/sh
set -e
./mach test-tidy --no-wpt
```
2019-10-24 10:30:25 +02:00
bors-servo
dc8be8f282
Auto merge of #24527 - servo-wpt-sync:wpt_update_23-10-2019, r=servo-wpt-sync
Sync WPT with upstream (23-10-2019)

Automated downstream sync of changes from upstream as of 23-10-2019.
[no-wpt-sync]
r? @servo-wpt-sync
2019-10-23 17:18:10 -04:00
bors-servo
ddc7a37531
Auto merge of #24523 - servo:rand, r=jdm,nox
Update rand to 0.7 (fixes #24448)
2019-10-23 13:38:31 -04:00
WPT Sync Bot
15e68ad3d3 Update web-platform-tests to revision a3dd2ad02c65588ad280ceac378d82e9250d1045 2019-10-23 14:17:29 +00:00
Anthony Ramine
785a344e32 Update rand to 0.7 (fixes #24448) 2019-10-23 15:34:48 +02:00
Simon Sapin
4f8cfd9b48 Use xml-rs instead of rcdom for Android font list parsing 2019-10-23 15:34:48 +02:00
bors-servo
e26530341b
Auto merge of #24489 - garasubo:refactor-submission, r=nox
Refactor submission

This is my first contribution, so please correct me if I'm wrong

I refactored the code as described #22782.

---
<!-- 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 #22782  (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. -->
2019-10-22 22:05:09 -04:00
bors-servo
30c588ddac
Auto merge of #24516 - servo:jdm-patch-31, r=asajeffrey
Add remaining macs to salt roster.
2019-10-22 21:09:02 -04:00
bors-servo
3e7a0bfc42
Auto merge of #24512 - marmeladema:issue-23607/compat, r=SimonSapin
More changes for Python3 compatibility

Following #24435 for #23607 here are even more changes to be compatible with Python3.
I managed to get `./mach build` properly work with Python3 but `test-tidy` does not work yet because of a lot of problems in `web-platform-tests` which i will have to deal with at some point.

Because flake8 appears to be incompatible with the distro package in some way, i had to change to way we call flake8 (which was deprecated anyway). With this change, we should be able to update flake8 to a recent version but subprocess can be surprising on Windows platform so i'd like someone to try out those changes.

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

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
2019-10-22 13:48:50 -04:00
bors-servo
bf587f22d7
Auto merge of #24508 - pajamapants3000:21254, r=jdm
Add start_time to resource timing.

<!-- Please describe your changes on the following line: -->
`start_time` property added to `ResourceFetchTiming`, which enables the setting of `start_time` in the `PerformanceEntry` member of `PerformanceResourceTiming`.

Following the specification at https://w3c.github.io/resource-timing/#dfn-starttime, `start_time` is set to the value of `redirect_start` if redirection occurs and the timing allow check passes. Otherwise it has the same value as `fetch_start`.

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

<!-- 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. -->
2019-10-22 09:34:07 -04:00
bors-servo
75830b717a
Auto merge of #24511 - servo:minimal, r=nox
Don’t install rust-docs, rust-src, or clippy on CI

See https://blog.rust-lang.org/2019/10/15/Rustup-1.20.0.html#profiles
2019-10-22 06:08:02 -04:00
marmeladema
7fdd0b94cf tests/wpt: use iterkeys, itervalues and iteritems from six package 2019-10-22 10:16:01 +01:00
marmeladema
f51ae46570 tests/wpt/update: Use input() from six instead of raw_input() 2019-10-22 10:16:01 +01:00
marmeladema
c0a9d39525 Use input() from six instead of raw_input to be compatible with Python3 2019-10-22 10:16:00 +01:00
marmeladema
0ea1af8b34 tests/wpt/update: remove useless import statement 2019-10-22 10:16:00 +01:00
marmeladema
d8190a7933 tests/wpt/update: use urllib module from six package 2019-10-22 10:16:00 +01:00
marmeladema
179caed30f tests/wpt/update: Fix print statements to be compatible with Python3 2019-10-22 10:16:00 +01:00
marmeladema
45817ac26e Use 'byte' regexp pattern to match on 'byte' string
This is done in order to be compatible with Python3
2019-10-22 10:16:00 +01:00
marmeladema
af7e4d633a Convert git sha hash to text to be compatible with Python3
This also pin the six module version to 1.12 in order to be sure
six.ensure_text is available.
2019-10-22 10:15:59 +01:00
marmeladema
7e9ce2dbd5 Use six.text_type instead of str to check instance type 2019-10-22 10:15:59 +01:00
marmeladema
ff50cdb183 Fix call to flake8 broken when using distro module during test-tidy 2019-10-22 10:15:53 +01:00
bors-servo
dcd98a91d1
Auto merge of #24517 - servo-wpt-sync:wpt_update_21-10-2019, r=servo-wpt-sync
Sync WPT with upstream (21-10-2019)

Automated downstream sync of changes from upstream as of 21-10-2019.
[no-wpt-sync]
r? @servo-wpt-sync
2019-10-22 03:41:46 -04:00
bors-servo
5fb941d6f7
Auto merge of #24491 - servo:rustup, r=nox
Upgrade sccache to 0.2.12

This picks up https://github.com/mozilla/sccache/issues/488, which fixes running Servo’s unit tests with Rust nightly-2019-10-17: https://github.com/rust-lang/rust/issues/65558

https://tools.taskcluster.net/groups/Mh6AMaNkTj-dw0hfmekTYw/tasks/AO0ydhMpTZyBa5HesI1ldw/runs/0/logs/public%2Flogs%2Flive.log#L1443
2019-10-21 22:43:08 -04:00
bors-servo
927dfd15bf
Auto merge of #24500 - kitlith:style_cfg, r=jdm
Remove usage of opts::get() from style.

<!-- Please describe your changes on the following line: -->
Use `AtomicBool`s to create a global storage for a couple of settings used by an implementation of `Default`, suggested in https://github.com/servo/servo/issues/22854#issuecomment-540955207.

I do have one main question: I'm currently setting these statics in `Servo::new()`, would there be a better place to put this? Same goes with making these `pub`, is there a better way to go about this?

---
<!-- 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
  - Seems to be failing in script for unknown/unrelated reasons, experiencing SIGKILL on two different machines. (May be an issue with the latest commit?) Still works fine on CI though.
- [X] `./mach test-tidy` does not report any errors
- [X] These changes help with #22854

These changes do not require tests because these are cleanup changes.

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
2019-10-21 17:14:46 -04:00
Kitlith
0a07a88904 Remove usage of opts::get() from style.
Part of #22854.
2019-10-21 13:44:31 -07:00
bors-servo
61dc04a293
Auto merge of #24492 - gterzian:update_timer_scheduler, r=asajeffrey
Update timer scheduler to use crossbeam

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

It seems time to update the timer scheduler implementation to use crossbeam constructs.

---
<!-- 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. -->
2019-10-21 12:18:07 -04:00