Commit graph

25052 commits

Author SHA1 Message Date
Vincent Ricard
a627dde0d0 Port some code to Python3 2021-02-18 09:35:46 -05:00
Josh Matthews
397b9b2601 Implement toStringTag symbol for DOM objects.
This symbol is now required for the expected stringification behaviour in WPT.
2021-02-18 09:35:46 -05:00
Josh Matthews
5c4939599e Update mozjs. 2021-02-18 09:35:45 -05:00
teymour-aldridge
217147b2e4 fmt 2021-02-05 14:46:09 +00:00
teymour-aldridge
ff767b13a9 Remove unused arguments from methods. 2021-02-05 14:29:45 +00:00
teymour-aldridge
466e895cdf Fix errors 2021-02-05 14:29:30 +00:00
teymour-aldridge
0854953e35 Mark methods as unsafe. 2021-02-05 14:29:30 +00:00
Simon Sapin
173123a768 Upgrade to rustc 1.48.0-nightly (623fb90b5 2020-09-26) 2021-01-26 09:23:03 +01:00
Andreu Botella
d2b9e64cf3 Clean up the code to BOM sniff.
See https://github.com/servo/servo/pull/28006#discussion_r551968553
2021-01-09 19:18:22 +01:00
Andreu Botella
cd34f156f6 Fix document.characterSet not reflecting byte order marks.
The process of decoding the network byte stream to Unicode is backed by
an instance of `encoding_rs::Decoder`, which will switch the encoding it
uses if it finds a BOM in the byte stream. However, this change in
encoding is not communicated back to the caller and so
`document.characterSet` gives the wrong result. This change fixes that.

See whatwg/html#5359 and whatwg/encoding#203 for the spec-level backing
for this change.

Signed-off-by: Andreu Botella <abb@randomunok.com>
2020-12-31 13:43:33 +01:00
teymour-aldridge
1f38e3411d Fix num_threads to avoid divide by zero error when running without a thread pool
Signed-off-by: teymour-aldridge <teymour.aldridge@icloud.com>
2020-12-28 11:01:38 +00:00
YUAN LYU
e15bc7516c Fix mouse button handling 2020-12-06 00:21:21 -05:00
YUAN LYU
a999850b24 Implement referrerPolicy for HTMLLinkElement and HTMLScriptElement 2020-12-01 00:37:16 -05:00
Sean Joseph
9e22804983 Added is_platform_object_static check to is_dom_object 2020-11-26 18:40:41 -05:00
Sean Joseph
823cca30d6 Added is_platform_obj_static 2020-11-26 18:30:52 -05:00
Sean Joseph
3c8680f273 Add back code to identify JSObjects that should be counted in memory profiling 2020-11-26 10:43:30 -05:00
Jonathan Kingston
0e1479cc84 Add creation url and Secure Contexts 2020-11-25 18:30:50 +00:00
bors-servo
95fd0dddb9
Auto merge of #27813 - servo:dependabot/cargo/env_logger-0.8.2, r=jdm
Bump env_logger from 0.7.1 to 0.8.2

Bumps [env_logger](https://github.com/env-logger-rs/env_logger) from 0.7.1 to 0.8.2.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/env-logger-rs/env_logger/releases">env_logger's releases</a>.</em></p>
<blockquote>
<h2>0.8.2</h2>
<p>Fixed a panic on io errors when writing to stdout / stderr (<a href="https://github-redirect.dependabot.com/env-logger-rs/env_logger/issues/184">#184</a>).</p>
<h2>0.8.1</h2>
<p>Update links in the documentation that were pointing to the old repository location.</p>
<h2>0.8.0</h2>
<p>Breaking changes:</p>
<ul>
<li>Update public dependency humantime to 2.0</li>
</ul>
<p>Improvements:</p>
<ul>
<li>Update default colors for debug (white =&gt; blue) and trace (black =&gt; cyan)</li>
</ul>
<p>Deprecations:</p>
<ul>
<li><code>env_logger::from_env</code> has been deprecated in favor of <code>env_logger::Builder::from_env</code></li>
</ul>
<p>This release raises the minimum supported Rust version to 1.41.0.</p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="0f53c8dd5b"><code>0f53c8d</code></a> Release version 0.8.2</li>
<li><a href="26e821b94f"><code>26e821b</code></a> Update repository links and release 0.8.1</li>
<li><a href="9ffe00de4f"><code>9ffe00d</code></a> Release version 0.8.0</li>
<li><a href="2b33c97117"><code>2b33c97</code></a> Fix rustc &amp; clippy lints</li>
<li><a href="b8c3754a1d"><code>b8c3754</code></a> chore(examples): add syslog friendly format (<a href="https://github-redirect.dependabot.com/env-logger-rs/env_logger/issues/174">#174</a>)</li>
<li><a href="a5a7ddc34e"><code>a5a7ddc</code></a> ci(docs): remove ci crate (<a href="https://github-redirect.dependabot.com/env-logger-rs/env_logger/issues/173">#173</a>)</li>
<li><a href="3a331e4636"><code>3a331e4</code></a> chore(readme): fix badge links</li>
<li><a href="eeedfa99be"><code>eeedfa9</code></a> ci(docs): add manual run trigger (<a href="https://github-redirect.dependabot.com/env-logger-rs/env_logger/issues/171">#171</a>)</li>
<li><a href="2793bb5696"><code>2793bb5</code></a> ci(workflow): add documentation workflow (<a href="https://github-redirect.dependabot.com/env-logger-rs/env_logger/issues/170">#170</a>)</li>
<li><a href="0ef5cffa29"><code>0ef5cff</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/env-logger-rs/env_logger/issues/168">#168</a> from KodrAus/chore/build-fn-cleanup</li>
<li>Additional commits viewable in <a href="https://github.com/env-logger-rs/env_logger/compare/v0.7.1...v0.8.2">compare view</a></li>
</ul>
</details>
<br />

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

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-11-24 20:30:24 -05:00
dependabot-preview[bot]
056a0380bd Bump env_logger from 0.7.1 to 0.8.2
Bumps [env_logger](https://github.com/env-logger-rs/env_logger) from 0.7.1 to 0.8.2.
- [Release notes](https://github.com/env-logger-rs/env_logger/releases)
- [Changelog](https://github.com/env-logger-rs/env_logger/blob/master/CHANGELOG.md)
- [Commits](https://github.com/env-logger-rs/env_logger/compare/v0.7.1...v0.8.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-11-24 16:24:21 -05:00
Tyler Wilcock
61c5ab8f69 Replace generic 'value' variable name with 'id' and 'name' to reduce confusion 2020-11-23 23:31:34 -06:00
bors-servo
30347a4934
Auto merge of #27738 - ghostd:update-bad-ports, r=jdm
Update the "bad ports" list

https://github.com/whatwg/fetch/issues/1108

<!-- 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: -->
- [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. -->
2020-11-19 11:54:31 -05:00
Vincent Ricard
43b3d93aec Use data_url::Mime to parse the MIME Types
This commit follows the spectification
https://fetch.spec.whatwg.org/#concept-header-extract-mime-type
2020-11-18 18:14:51 +01:00
bors-servo
c7f4eba3db
Auto merge of #27766 - jdm:embedding-blit, r=asajeffrey
Embedding support for offscreen-rendering

The current embedding API assumes it should render directly to a native widget at all times. These changes expose an option to render to an offscreen surface when starting the engine, as well as a new WebrenderSurfman API for temporarily acquiring  the surface corresponding to the front buffer so it can be used for blitting purposes.

Demonstrated to work in https://github.com/jdm/servo-embedding-example.

---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
2020-11-15 17:33:40 -05:00
Josh Matthews
bd2d4596b0 Allow embedders to access front buffer surface. 2020-11-15 17:33:25 -05:00
bors-servo
838d833cf9
Auto merge of #27717 - servo:jdm-patch-46, r=jdm
Pin bluetooth devices.

The lack of a pinned revision in this manifest makes it harder for people to experiment with using libsimpleservo from other projects.
2020-11-15 10:58:13 -05:00
bors-servo
f8ebe03dc2
Auto merge of #27704 - ghostd:update-preflight-cors-mode, r=jdm
Set CORS preflight requests' `mode` to `cors`

<!-- 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
- [x] These changes fix #23780 (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-11-13 15:23:58 -05:00
Josh Matthews
1e3d72dc82 Fix deprecation warnings. 2020-11-12 15:47:08 -05:00
Josh Matthews
4750e68382 Pin git revisions of dependencies that aren't compatible in newer revisions. 2020-11-12 15:47:07 -05:00
zood
7119eb7471 First call to eglMakeCurrent with no draw or read surface leads to black window on Nvidia/X11. This change ensures first call to eglMakeCurrent made with non-null surfaces. 2020-11-07 13:28:55 +03:00
Vincent Ricard
9b31533728 Update the "bad ports" list
https://github.com/whatwg/fetch/issues/1108
2020-11-04 21:31:02 +01:00
Vincent Ricard
5b40068587 Set CORS preflight requests' mode to cors 2020-10-30 18:01:27 +01:00
Vincent Ricard
66223f7596 Implements StyleSheet.media 2020-10-16 10:55:00 +02:00
Vincent Ricard
e7199c029f Implements Stylesheet.ownerNode 2020-10-10 21:21:00 +02:00
Vincent Ricard
fa57ba5ca9 Make hidden input _charset_ check case insensitive 2020-10-09 18:05:52 +02:00
Vincent Ricard
2a4dd894de Implement DOMTokenList.supports API 2020-10-05 09:26:36 +02:00
bors-servo
ac354572e2
Auto merge of #27634 - sudarshan-reddy:preferences-actor-returns-real-vals, r=jdm
preferences actor now returns real values.

The preferences actor was previously returning mock values. This changes
picks up the pref_values from the pref_map which is global preferences
state and returns values from there.

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

<!-- Either: -->
- [ ] There are tests for these changes OR
- [X] These changes do not require tests because none of the actors have tests.

<!-- 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-10-01 14:34:34 -04:00
Vincent Ricard
ddfa9ca5b4 Implements HTMLDetailsElement toggle 2020-09-26 11:53:47 +02:00
Vincent Ricard
66f80fbf4f Implement ParentNode#replaceChildren 2020-09-25 08:21:10 +02:00
bors-servo
0baa1ea7bd
Auto merge of #27666 - ghostd:fix-checkbox-radio-activation, r=jdm
Allow mutating <input disabled type=checkbox/radio>

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

<!-- 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. -->
2020-09-24 20:34:36 -04:00
Vincent Ricard
15376d031d Remove unnecessary checks 2020-09-24 19:52:04 +02:00
Vincent Ricard
82386953b9 Allow mutating <input disabled type=checkbox/radio> 2020-09-24 18:15:16 +02:00
Vincent Ricard
160714feb6 Implements "upload listener flag" for XHR 2020-09-24 17:01:06 +02:00
bors-servo
3c34da1c91
Auto merge of #27661 - kunalmohan:update-webgpu, r=kvark
WebGPU: Use GPULimits and extensions provided by user

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

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

<!-- 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. -->
2020-09-23 21:47:30 -04:00
Kunal Mohan
ba01ca1ba1 address review and disable test 2020-09-23 21:32:25 +05:30
Kunal Mohan
3661aa3d8c Use Device limits and features provided by user
Spec update
2020-09-23 11:37:03 +05:30
bors-servo
3d057c8eec
Auto merge of #27629 - CYBAI:whendefined-constructor, r=jdm
Resolve `whenDefined` with the class constructor

I still don't have time to find the root cause of why nightly sync failed :( so we don't have the tests in our tree now.

But I tried to verify it with `wpt.live` that this is correct

<img width="1136" alt="image" src="https://user-images.githubusercontent.com/6782666/92739547-f7ca0c80-f3b7-11ea-966e-fd7ecd2638cf.png">

---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #27626
- [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. -->
2020-09-22 20:25:49 -04:00
Kunal Mohan
a68e3920e5 update wgpu 2020-09-22 11:34:27 +05:30
Vincent Ricard
ff6194cc74 Fix wrong priority for XHR username/password 2020-09-21 18:37:58 +02:00
CYBAI
312479f816 Resolve whenDefined with the class constructor 2020-09-16 12:15:33 +09:00
Sudarsan
9048185a10 Returns fake preferences if PrefValue::Missing.
If the pref_map().get() enum returns PrefValue::Missing, then
fake values are returned just like before.
2020-09-12 21:57:08 +08:00