Commit graph

9347 commits

Author SHA1 Message Date
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
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
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
Lewin Probst
976f5b76bc Updated cssparser dependency to 0.29.
Signed-off-by: Lewin Probst <info@emirror.de>
2021-11-18 16:16:46 +01:00
bors-servo
74f1eb199e
Auto merge of #28561 - yvt:test-cookie-expiry, r=jdm
`/cookies/path/match.html` has been broken since Jun 9, 2021

`/cookies/path/match.html` fails because the cookie expiration date is set to a past date. This is [a known issue][1] in WPT.

<cc1f89863c/tests/wpt/web-platform-tests/cookies/resources/set-cookie.py (L22)>

[1]: https://chromium-review.googlesource.com/c/chromium/src/+/2872768

---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #28492

---
- [ ] There are tests for these changes OR
- [x] These changes do not require tests because they fix tests
2021-08-25 14:29:51 -04:00
yvt
c25355704d fix(script): the condition for exposing a cross-origin setter is CrossOriginWritable, not CrossOriginReadable
The expression `crossOriginIframe.contentWindow.location.href = "new
href"` takes the following steps: (1) Get the setter for `href` by
invoking `[[GetOwnProperty]]` on `crossOriginIframe.contentWindow.
location`. (2) Call the setter, passing `crossOriginIframe.
contentWindow` and `"new href"`. Since the target `Location` is cross
origin, getting the setter succeeds only if the `CrossOriginWritable`
extended attribute is present on the `href` attribute, and it's present.
However, instead of `CrossOriginWritable`, `CrossOriginReadable` was
checked mistakenly.

Since `Location#href` has `CrossOriginWritable` but not
`CrossOriginReadable`, this bug rendered `Location#href` inaccessible
from a cross-origin document.
2021-08-17 09:26:27 +09:00
yvt
33dc8b7df0 test: /cookies/path/match.html has been broken since Jun 9, 2021
Upstream issue: <https://chromium-review.googlesource.com/c/chromium/src/+/2872768>
2021-08-08 15:15:57 +09:00
yvt
3e56446dd5 test: update expectations 2021-08-07 13:44:44 +09:00
yvt
80cda12a87 test: update expectations
No improvements are seen in `/html/browsers/origin/cross-origin-
objects/cross-origin-objects.html` because each included test case
tests both `Location` and `WindowProxy`, the latter of which isn't
implemented correctly yet. In fact, the first test case "Basic sanity-
checking" passes if it's reduced to only check `Location` as follows:

    addTest(function(win) {
      assert_equals(B.location.pathname, path, "location.href works same-origin");
      assert_throws("SecurityError", function() { win.location.pathname; }, "location.pathname throws cross-origin");
    }, "Basic sanity-checking");
2021-07-17 15:26:15 +09:00
yvt
1a033ba8a9 test: re-enable /html/browsers/origin/cross-origin-objects/cross-origin-objects.html 2021-07-16 01:24:09 +09:00
yvt
e9af95ec0f fix(script): Set DedicatedWorkerGlobalScope's origin correctly
<https://html.spec.whatwg.org/multipage/workers.html#worker-processing-model>

> 10.2.4 Processing model
>
> When a user agent is to run a worker for a script with `Worker` or
> `SharedWorker` object `worker`, [...] it must run the following steps.
>
> [...]
>
> 8. Set up a worker environment settings object with `realm execution
>    context` and `outside settings`, and let `inside settings` be the
>    result.

<https://html.spec.whatwg.org/multipage/workers.html#script-settings-for-workers>

> To **set up a worker environment settings object**, given a JavaScript
> execution context `execution context` and environment settings object
> `outside settings`:
>
> 1. Let `inherited origin` be `outside settings`'s origin.
>
> 2. Let `realm` be the value of `execution context`'s Realm component.
>
> 3. Let `worker global scope` be `realm`'s global object.
>
> 4. Let `settings object` be a new environment settings object whose
>    algorithms are defined as follows:
>
>    **The origin** Return a unique opaque origin if `worker global
>    scope`'s url's scheme is "data", and `inherited origin` otherwise.
2021-07-13 09:31:15 +09:00
bors-servo
d8081343e3
Auto merge of #27805 - halvko:html_progress_element, r=jdm
Properly implement HTMLProgressElement DOM code

<!-- Please describe your changes on the following line: -->
The DOM code for HTMLProgressElement have been implemented, according to https://html.spec.whatwg.org/multipage/form-elements.html#the-progress-element . As mentioned in #23201, tests already exists for this element in tests/wpt/web-platform-tests/html/semantics/forms/the-progress-element/, which now passes (tested on 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
- [ ] These changes fix #___ (GitHub issue number if applicable)

<!-- Either: -->
- [X] There are tests for these changes OR
- [ ] These changes do not require tests because ___

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

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
2021-07-10 11:21:30 -04:00
yvt
7cda260fcb test: update expectations 2021-07-09 22:34:36 +09:00
yvt
370997eba2 test: update expectations 2021-06-19 13:27:11 +09:00
Paulo E. Castro
03b3d677f0
Amend test expectations. 2021-04-28 22:31:36 +01:00
Erik Funder Carstensen
1e8edeb8ef Remove passing ProgressElement tests from harness
Signed-off-by: Erik Funder Carstensen <fundererik@gmail.com>
2021-03-31 19:21:20 +02:00
Vincent Ricard
2e7be21ee1 Add port blocking for tftp, netbios-ns, snmp, rtsp, h323gatestat, h323hostcall, pptp, sane-port
Spec update: https://github.com/whatwg/fetch/pull/1148
2021-03-29 20:30:31 +02:00
bors-servo
970a3b60da
Auto merge of #27851 - ghostd:fix-nosniff, r=jdm
Fix some 'nosniff' tests

This PR implements some standard function to work with headers, hence it fixes some 'nosniff' test/

I create a PR as Draft because i have some questions:
* i added the code info the `net` module instead of `script::dom::headers` to avoid some cyclic dependencies... but i'm not sure about this choice. Is there another potential location to put this code?
* i used String object to match the spectification (it states to collect sequences of "code points", but some code use byte arrays. Should i change the code to work with bytes?

---
<!-- 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: -->
- [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. -->
2021-03-29 01:42:33 -04:00
sagu
b0b2acb8f8
Merge branch 'master' into master 2021-03-15 07:04:48 +01:00
sagudev
75d9a122b6 Update test results. 2021-03-15 06:56:11 +01:00
bors-servo
68e200a581
Auto merge of #28236 - pecastro:winit_0_24_surfman, r=jdm
Winit 0.24.0 and surfman

<!-- Please describe your changes on the following line: -->
I've updated Servo to Winit 0.24.0 based on the previous work in #26394.
I've basically rebased master onto his jdm/winit branch which had the bulk of the work and I brute forced it till it built correcting things here and there as I could.
The build reports a few warnings:

```
00:04:59 Mar 03 10:20:06 warning: use of deprecated field `winit::event::KeyboardInput::modifiers`: Deprecated in favor of WindowEvent::ModifiersChanged
00:04:59 Mar 03 10:20:06    --> ports/winit/headed_window.rs:753:12
00:04:59 Mar 03 10:20:06     |
00:04:59 Mar 03 10:20:06 753 |         if input.modifiers.shift() {
00:04:59 Mar 03 10:20:06     |            ^^^^^^^^^^^^^^^
00:04:59 Mar 03 10:20:06     |
00:04:59 Mar 03 10:20:06     = note: `#[warn(deprecated)]` on by default
00:04:59 Mar 03 10:20:06
00:04:59 Mar 03 10:20:06 warning: use of deprecated field `winit::event::KeyboardInput::modifiers`: Deprecated in favor of WindowEvent::ModifiersChanged
00:04:59 Mar 03 10:20:06    --> ports/winit/keyutils.rs:263:34
00:04:59 Mar 03 10:20:06     |
00:04:59 Mar 03 10:20:06 263 |         modifiers: get_modifiers(input.modifiers),
00:04:59 Mar 03 10:20:06     |                                  ^^^^^^^^^^^^^^^
00:04:59 Mar 03 10:20:06
00:07:06 Mar 03 10:22:13 warning: 2 warnings emitted
00:07:06 Mar 03 10:22:13
00:07:06 Mar 03 10:22:13    Completed servo v0.0.1 bin "servo" in 132.7s
00:07:06 Mar 03 10:22:13     Finished dev [unoptimized + debuginfo] target(s) in 6m 59s
00:07:08 Mar 03 10:22:15 [Warning] Could not generate notification!
00:07:08 Mar 03 10:22:15 Build Completed in 0:07:01
```

And there are a few commits namely b27e09e009 which I'm not entirely sure of.
I've intentionally left the surfman patch in Cargo.toml so someone else can validate this branch.
Unit tests and smoke test run successfully.
Servo runs but I'm not familiar enough with it to validate how well it does. The window opens and content loads though.

My Rust foo is not great and I could use some help fixing those warnings.

Regards,

PECastro

---
<!-- 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
A few warnings ...
- [x ] `./mach test-tidy` does not report any errors
A few duplicate version statements but no errors.
- [x] These changes fix #26394
- [x] There are tests for these changes
-  [ ] 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-03-14 19:26:04 -04:00
Josh Matthews
129c583799 Update to 3/12 rustc nightly. 2021-03-14 13:24:21 -04:00
WPT Sync Bot
56531f4672 Update web-platform-tests to revision b'ac590e83f80632559480abda677db69b17f6ece1' 2021-03-11 09:52:00 +00:00
WPT Sync Bot
728707a192 Update web-platform-tests to revision b'0e0fe1b20da0d80eacadc326dec726138fd5aa83' 2021-03-10 10:12:41 +00:00
Josh Matthews
647e250835
Remove intermittent error. 2021-03-09 22:54:57 -05:00
Josh Matthews
8741558255
Remove intermittent failure. 2021-03-09 22:54:20 -05:00
Josh Matthews
36a6fbc727
Remove intermittent wdspec error. 2021-03-09 21:28:53 -05:00
Josh Matthews
19368320a5
Remove intermittent wdspec error. 2021-03-09 21:27:39 -05:00
WPT Sync Bot
6c98c32c8a Update web-platform-tests to revision b'0339b7e9ebef65f3288f07167a17c123a782c66f' 2021-03-09 10:07:29 +00:00
Vincent Ricard
3b3824078d Fix some 'nosniff' tests 2021-03-08 21:24:08 +01:00
Vincent Ricard
bdfcca36bb Add PRECONDITION_FAILED to grouping_formatter.py 2021-03-08 21:02:01 +01:00
WPT Sync Bot
d3e26fa88a Update web-platform-tests to revision b'0f46f31799cccd7421a588d053d054138513ccdd' 2021-03-08 10:13:28 +00:00
WPT Sync Bot
379002f533 Update web-platform-tests to revision b'f02e5df558aa05be8f192ffbeb1654d1f509ac9d' 2021-03-07 10:08:16 +00:00
WPT Sync Bot
31f9c69336 Update web-platform-tests to revision b'79fa4cf76e0d39e3fc1b7ead85e067b0a064b892' 2021-03-06 10:15:26 +00:00
Josh Matthews
10231573be Update to winit 0.24.
Co-authored-by: Josh Matthews <josh@joshmatthews.net>
Co-authored-by: Paulo E. Castro <pecastro@wormholenet.com>
2021-03-05 20:00:30 -05:00
Josh Matthews
0c9d57ee2d
Revert intermittent crash. 2021-03-05 16:34:49 -05:00
WPT Sync Bot
3abcd4237f Update web-platform-tests to revision b'e055b8d439d6f4b09635f1f0c3180e17cf368071' 2021-03-05 10:07:59 +00:00
WPT Sync Bot
885a29c0ba Update web-platform-tests to revision b'e58cde68851afa192214f60a021f1e56b4172b7a' 2021-03-04 10:07:03 +00:00
WPT Sync Bot
5cd4d0259a Update web-platform-tests to revision b'b964db08565d01d21c778783da8e9b5d403de3d4' 2021-03-03 09:52:08 +00:00
Josh Matthews
b577baf544
Add linux failure. 2021-03-02 20:32:05 -05:00
WPT Sync Bot
2084f90f36 Update web-platform-tests to revision b'75b1ecef754b4c81ab92f9dd7d0663fbf3d16afe' 2021-03-02 10:04:51 +00:00
WPT Sync Bot
af0bf9334d Update web-platform-tests to revision b'd05fefcf165fd03947238957b00b0ca35c45213c' 2021-03-01 10:09:58 +00:00
Josh Matthews
45df01c26f
Delete 2020 failure. 2021-02-28 10:46:20 -05:00
WPT Sync Bot
b99372177f Update web-platform-tests to revision b'd04481569b4924284b8dd53b6430ef67de54073f' 2021-02-28 09:46:29 +00:00
bors-servo
b196bfeeeb
Auto merge of #28217 - servo:gecko-sync, r=emilio,jdm
style: Sync changes from mozilla-central.
2021-02-27 08:23:57 -05:00