Commit graph

10772 commits

Author SHA1 Message Date
WPT Sync Bot
de009ea427 Update web-platform-tests to revision b'f7c921b0bcddaf3865eb4c36788ce0db61750035' 2022-11-15 01:23:14 +00:00
Josh Matthews
e41f3c9018 Update manifest. 2022-11-13 22:42:09 -05:00
WPT Sync Bot
6d3d169a9e Update web-platform-tests to revision b'a6e9e432ca1b26cdf30b08f9de038b85a215361d' 2022-11-14 01:33:03 +00:00
Josh Matthews
64beaf495a Update manifest. 2022-11-12 21:02:51 -05:00
WPT Sync Bot
57b85533c2 Update web-platform-tests to revision b'a6e9e432ca1b26cdf30b08f9de038b85a215361d' 2022-11-13 01:34:32 +00:00
Josh Matthews
a07583ccad Refine gitignore. 2022-11-11 20:44:44 -05:00
WPT Sync Bot
1c047e9418 Update web-platform-tests to revision b'a6e9e432ca1b26cdf30b08f9de038b85a215361d' 2022-11-12 01:33:42 +00:00
Josh Matthews
0109618589 Update manifest. 2022-11-10 23:24:39 -05:00
Josh Matthews
bf1fadf90d
Refine gitignore. 2022-11-10 22:22:11 -05:00
WPT Sync Bot
9ed042224a Update web-platform-tests to revision b'0802d8bd01e17178d9cd2355e6fbaf3c098e7953' 2022-11-11 01:34:11 +00:00
Josh Matthews
87edf3fe42 Update WPT manifest. 2022-11-09 23:14:04 -05:00
Josh Matthews
4b2f96bd90 Disable test that is full of timeouts. 2022-11-09 22:24:32 -05:00
Josh Matthews
c5c77020a3 Refine WPT gitignore rule. 2022-11-09 22:14:56 -05:00
WPT Sync Bot
df68c4e5d1 Update web-platform-tests to revision b'b728032f59a396243864b0f8584e7211e3632005' 2022-11-10 01:27:28 +00:00
yvt
b1341f77f5 test(style): update the expected sizes of {,Selector,Value}ParseError
<https://github.com/rust-lang/rust/pull/94075>
2022-10-16 19:19:13 +09:00
yvt
fc105e9a47 test(wpt): regenerate WPT certs
$ openssl x509 -text -nocert < tools/certs/cacert.pem
    ...
    Validity
        Not Before: Oct 15 13:13:45 2022 GMT
        Not After : Oct 15 13:13:45 2023 GMT
2022-10-15 22:31:23 +09:00
cybai
6b521f39dc Update test expectation 2022-04-27 17:51:02 +09:00
bors-servo
adabf0f418
Auto merge of #28682 - servo:dependabot/cargo/http-0.2.6, r=jdm
Bump http from 0.2.1 to 0.2.6

Bumps [http](https://github.com/hyperium/http) from 0.2.1 to 0.2.6.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/hyperium/http/releases">http's releases</a>.</em></p>
<blockquote>
<h2>v0.2.6</h2>
<ul>
<li>Upgrade internal <code>itoa</code> dependency to 1.0.</li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a href="https://github.com/Turbo87"><code>@​Turbo87</code></a> made their first contribution in <a href="https://github-redirect.dependabot.com/hyperium/http/pull/512">hyperium/http#512</a></li>
<li><a href="https://github.com/tshepang"><code>@​tshepang</code></a> made their first contribution in <a href="https://github-redirect.dependabot.com/hyperium/http/pull/492">hyperium/http#492</a></li>
<li><a href="https://github.com/waywardmonkeys"><code>@​waywardmonkeys</code></a> made their first contribution in <a href="https://github-redirect.dependabot.com/hyperium/http/pull/516">hyperium/http#516</a></li>
</ul>
<h2>v0.2.5</h2>
<ul>
<li>Add <code>is_empty()</code> and <code>len()</code> methods to <code>Extensions</code>.</li>
<li>Add <code>version_ref()</code> method to <code>request::Builder</code>.</li>
<li>Implement <code>TryFrom&lt;Vec&lt;u8&gt;&gt;</code> and <code>TryFrom&lt;String&gt;</code> for <code>Authority</code>, <code>Uri</code>, <code>PathAndQuery</code>, and <code>HeaderName</code>.</li>
<li>Make <code>HeaderValue::from_static</code> a <code>const fn</code>.</li>
</ul>
<h2>v0.2.4</h2>
<ul>
<li>Fix <code>Uri</code> parsing to allow <code>{</code>, <code>&quot;</code>, and <code>}</code> in paths.</li>
</ul>
<h2>v0.2.3</h2>
<ul>
<li>Upgrade internal (private) <code>bytes</code> dependency to 1.0.</li>
</ul>
<h2>v0.2.2</h2>
<ul>
<li>Fix (potential double) panic of (<code>HeaderMap</code>) <code>OccupiedEntry::remove_entry</code> and
<code>remove_entry_mult</code> when multiple values are present. (<a href="https://github-redirect.dependabot.com/hyperium/http/issues/446">#446</a>, <a href="https://github-redirect.dependabot.com/hyperium/http/issues/449">#449</a> dekellum)</li>
<li>Safety audits of (priv) <code>ByteStr</code> and refactor of <code>Authority</code> (<a href="https://github-redirect.dependabot.com/hyperium/http/issues/408">#408</a>, <a href="https://github-redirect.dependabot.com/hyperium/http/issues/414">#414</a> sbosnick)</li>
<li>Fix <code>HeaderName</code> to error instead of panic when input is too long (<a href="https://github-redirect.dependabot.com/hyperium/http/issues/432">#432</a> <a href="https://github-redirect.dependabot.com/hyperium/http/issues/433">#433</a> acfoltzer)</li>
<li>Allow <code>StatusCode</code> to encode values 100-999 without error. Use of the
unclassified range 600-999 remains discouraged. (<a href="https://github-redirect.dependabot.com/hyperium/http/issues/144">#144</a>, <a href="https://github-redirect.dependabot.com/hyperium/http/issues/438">#438</a>, <a href="https://github-redirect.dependabot.com/hyperium/http/issues/443">#443</a> quininer dekellum)</li>
<li>Add <code>String</code> and <code>&amp;String</code> fallible conversions to <code>PathAndQuery</code> (<a href="https://github-redirect.dependabot.com/hyperium/http/issues/450">#450</a> mkindahl)</li>
<li>Fix <code>Authority</code> (and <code>Uri</code>) to error instead of panic on unbalanced brackets
(<a href="https://github-redirect.dependabot.com/hyperium/http/issues/435">#435</a>, <a href="https://github-redirect.dependabot.com/hyperium/http/issues/445">#445</a> aeryz)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/hyperium/http/blob/master/CHANGELOG.md">http's changelog</a>.</em></p>
<blockquote>
<h1>0.2.6 (December 30, 2021)</h1>
<ul>
<li>Upgrade internal <code>itoa</code> dependency to 1.0.</li>
</ul>
<h1>0.2.5 (September 21, 2021)</h1>
<ul>
<li>Add <code>is_empty()</code> and <code>len()</code> methods to <code>Extensions</code>.</li>
<li>Add <code>version_ref()</code> method to <code>request::Builder</code>.</li>
<li>Implement <code>TryFrom&lt;Vec&lt;u8&gt;&gt;</code> and <code>TryFrom&lt;String&gt;</code> for <code>Authority</code>, <code>Uri</code>, <code>PathAndQuery</code>, and <code>HeaderName</code>.</li>
<li>Make <code>HeaderValue::from_static</code> a <code>const fn</code>.</li>
</ul>
<h1>0.2.4 (April 4, 2021)</h1>
<ul>
<li>Fix <code>Uri</code> parsing to allow <code>{</code>, <code>&quot;</code>, and <code>}</code> in paths.</li>
</ul>
<h1>0.2.3 (January 7, 2021)</h1>
<ul>
<li>Upgrade internal (private) <code>bytes</code> dependency to 1.0.</li>
</ul>
<h1>0.2.2 (December 14, 2020)</h1>
<ul>
<li>Fix (potential double) panic of (<code>HeaderMap</code>) <code>OccupiedEntry::remove_entry</code> and
<code>remove_entry_mult</code> when multiple values are present. (<a href="https://github-redirect.dependabot.com/hyperium/http/issues/446">#446</a>, <a href="https://github-redirect.dependabot.com/hyperium/http/issues/449">#449</a> dekellum)</li>
<li>Safety audits of (priv) <code>ByteStr</code> and refactor of <code>Authority</code> (<a href="https://github-redirect.dependabot.com/hyperium/http/issues/408">#408</a>, <a href="https://github-redirect.dependabot.com/hyperium/http/issues/414">#414</a> sbosnick)</li>
<li>Fix <code>HeaderName</code> to error instead of panic when input is too long (<a href="https://github-redirect.dependabot.com/hyperium/http/issues/432">#432</a> <a href="https://github-redirect.dependabot.com/hyperium/http/issues/433">#433</a> acfoltzer)</li>
<li>Allow <code>StatusCode</code> to encode values 100-999 without error. Use of the
unclassified range 600-999 remains discouraged. (<a href="https://github-redirect.dependabot.com/hyperium/http/issues/144">#144</a>, <a href="https://github-redirect.dependabot.com/hyperium/http/issues/438">#438</a>, <a href="https://github-redirect.dependabot.com/hyperium/http/issues/443">#443</a> quininer dekellum)</li>
<li>Add <code>String</code> and <code>&amp;String</code> fallible conversions to <code>PathAndQuery</code> (<a href="https://github-redirect.dependabot.com/hyperium/http/issues/450">#450</a> mkindahl)</li>
<li>Fix <code>Authority</code> (and <code>Uri</code>) to error instead of panic on unbalanced brackets
(<a href="https://github-redirect.dependabot.com/hyperium/http/issues/435">#435</a>, <a href="https://github-redirect.dependabot.com/hyperium/http/issues/445">#445</a> aeryz)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="c28945c6c6"><code>c28945c</code></a> v0.2.6</li>
<li><a href="abe651273f"><code>abe6512</code></a> deps: Update to itoa 1.</li>
<li><a href="f25fbb579d"><code>f25fbb5</code></a> Cargo: Add <code>rust-version</code> field</li>
<li><a href="1129163281"><code>1129163</code></a> remove obsolete comment</li>
<li><a href="52b4d04d0d"><code>52b4d04</code></a> README: Remove obsolete <code>extern crate http</code> instructions</li>
<li><a href="ead020c94c"><code>ead020c</code></a> v0.2.5</li>
<li><a href="cc2f3ed7fc"><code>cc2f3ed</code></a> extensions: add methods to detect the presence of extensions (<a href="https://github-redirect.dependabot.com/hyperium/http/issues/497">#497</a>)</li>
<li><a href="d2fda209f1"><code>d2fda20</code></a> request: add Builder::version_ref to query the version in use (<a href="https://github-redirect.dependabot.com/hyperium/http/issues/495">#495</a>)</li>
<li><a href="58c6290bf9"><code>58c6290</code></a> Minor changes to var names in examples (<a href="https://github-redirect.dependabot.com/hyperium/http/issues/493">#493</a>)</li>
<li><a href="e54da7175a"><code>e54da71</code></a> HeaderValue::from_static can be const (<a href="https://github-redirect.dependabot.com/hyperium/http/issues/481">#481</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/hyperium/http/compare/v0.2.1...v0.2.6">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=http&package-manager=cargo&previous-version=0.2.1&new-version=0.2.6)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

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)

</details>
2022-04-03 20:59:48 -04:00
Josh Matthews
fbbd6ebefd Update wpt results. 2022-04-03 18:22:18 -04:00
Josh Matthews
7734a109c3 Update metadata. 2022-04-03 12:13:20 -04:00
Josh Matthews
9eaa27c946 Update html5ever/xml5ever. 2022-04-01 01:43:26 -04:00
Josh Matthews
471650ba90 Update keyboard-types. 2022-04-01 00:35:22 -04:00
Josh Matthews
3058bf9aeb Ensure reflow damage is calculated when hypothetical box changes. 2022-03-14 12:20:46 -04:00
WPT Sync Bot
b77ad115f6 Update web-platform-tests to revision b'ee6da9d71d0268d7fdb04e8e5b26858f46ee0cc4' 2022-01-20 20:57:54 +09: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
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