Skip to content

chore: update readablestream branch to latest main commit - #32823

Merged
gterzian merged 166 commits into
servo:readablestream-re-implementationfrom
wusyong:rs-update
Jul 22, 2024
Merged

gterzian merged 166 commits into
servo:readablestream-re-implementationfrom
wusyong:rs-update

Conversation

@wusyong

@wusyong wusyong commented Jul 21, 2024

Copy link
Copy Markdown
Member

Update readable stream branch to the latest main branch commit.


  • ./mach build -d does not report any errors
  • ./mach test-tidy does not report any errors
  • These changes do not require tests because this is a feature branch WIP

sagudev and others added 30 commits June 20, 2024 05:56
* Make device cleanup right

* Use weakref for GPUDevice in globalscope

* No need to destroy device on drop

* DeviceReason early return

* make remove_gpu_device to be the only way to remove device
The way our shell.nix works requires crown's Cargo.toml to be
self-contained so that it can be built as a nix derivation in
isolation.

Fixes servo#32552.

Signed-off-by: Mukilan Thiyagarajan <[email protected]>
The fallback behavior seems to have changed recently.
Now we need to explicitly add a fallback for `serif`
otherwise no font is selected.

Signed-off-by: Jonathan Schwender <[email protected]>
The `Iterator::all` method consumes the input iterator `f` so when
we reuse `f` in `f.flatten().collect()` it yields an empty Vector
in the case where all the elements are successfully converted using
try_into(). This causes out of bounds access when indexing into
the resulting Vector to extract the individual components.

Fixes servo#32570.

Signed-off-by: Mukilan Thiyagarajan <[email protected]>
There is no need to add `serde-json` as a
build-dependency (which causes serde to be built
twice when cross-compiling - once for host and once
for the target)

Signed-off-by: Jonathan Schwender <[email protected]>
…#32365)

This only paints text in input fields. Selection and cursor are still
not painted.

In addition to adding this feature, the change also updates the
user-agent.css with the latest from the HTML specification. Extra
padding and extraneous settings (such as a bogus line-height and
min-height) are also removed from servo.css. This leads to some new
passes.

There are some new passes, this introduces failures as inserting text
reveals issues that were hidden before. Notably:

- failures in `/html/editing/editing-0/spelling-and-grammar-checking/`:
  We do not support spell-checking.
- Most of the rest of the new failures are missing features of input
  boxes that are also missing in legacy layout.
Instead of duplicating some of `NonReplacedContents` in `Contents`,
divide it into either replaced and non-replaced content, since this is
how the layout system processes `Contents` always. In addition, stop
using `TryInto` to match replaced or non-replaced contents, as it is
quite confusing to handle an `Err` as a success case.
* feat: base for watcher

* feat: some more watcher tests

* feat: implement getWatcher

* refactor: clean up getWatcher

* feat: implement watchTargets

* feat: implement watchResources

* feat: very messy watchTargets fix

* refactor: clean browsing context

* feat: target configuration

* refactor: start cleanup

* refactor: more doc coments

* refactor: clean browsing context
Bumps [displaydoc](https://github.com/yaahc/displaydoc) from 0.2.4 to 0.2.5.
- [Changelog](https://github.com/yaahc/displaydoc/blob/master/CHANGELOG.md)
- [Commits](https://github.com/yaahc/displaydoc/commits/v0.2.5)

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

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2) from 1.0.85 to 1.0.86.
- [Release notes](https://github.com/dtolnay/proc-macro2/releases)
- [Commits](dtolnay/proc-macro2@1.0.85...1.0.86)

---
updated-dependencies:
- dependency-name: proc-macro2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [syn](https://github.com/dtolnay/syn) from 2.0.66 to 2.0.67.
- [Release notes](https://github.com/dtolnay/syn/releases)
- [Commits](dtolnay/syn@2.0.66...2.0.67)

---
updated-dependencies:
- dependency-name: syn
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Make `crown` optional

Add the optional `--use-crown` flag to mach

* --use-crown for all platforms in CI

Signed-off-by: Jonathan Schwender <[email protected]>

* Add documentation for `--use-crown`

Signed-off-by: Jonathan Schwender <[email protected]>

* Update python/servo/command_base.py

Co-authored-by: Mukilan Thiyagarajan <[email protected]>
Signed-off-by: Jonathan Schwender <[email protected]>

* Raise Error if CARGO_BUILD_RUSTC conflicts with --use-crown

Signed-off-by: Jonathan Schwender <[email protected]>

* add dummy RUSTFLAG to trigger re-checking

Signed-off-by: Jonathan Schwender <[email protected]>

---------

Signed-off-by: Jonathan Schwender <[email protected]>
Signed-off-by: Jonathan Schwender <[email protected]>
Co-authored-by: Mukilan Thiyagarajan <[email protected]>
…rvo#32586)

We can use the same function as the desktop version

Signed-off-by: Jonathan Schwender <[email protected]>
This should speed up runners which just need to run the WPT tests.

Fixes servo#32582.
Bumps [libloading](https://github.com/nagisa/rust_libloading) from 0.8.3 to 0.8.4.
- [Commits](nagisa/rust_libloading@0.8.3...0.8.4)

---
updated-dependencies:
- dependency-name: libloading
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [syn](https://github.com/dtolnay/syn) from 2.0.67 to 2.0.68.
- [Release notes](https://github.com/dtolnay/syn/releases)
- [Commits](dtolnay/syn@2.0.67...2.0.68)

---
updated-dependencies:
- dependency-name: syn
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [lazy_static](https://github.com/rust-lang-nursery/lazy-static.rs) from 1.4.0 to 1.5.0.
- [Release notes](https://github.com/rust-lang-nursery/lazy-static.rs/releases)
- [Commits](rust-lang-nursery/lazy-static.rs@1.4.0...1.5.0)

---
updated-dependencies:
- dependency-name: lazy_static
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* clippy: fix some warnings in ports/servoshell/desktop

Signed-off-by: ItsSunnyMonster <[email protected]>

* style: fix formatting

Signed-off-by: ItsSunnyMonster <[email protected]>

* clippy: fix warnings in bluetooth, devtools and servo components

Signed-off-by: ItsSunnyMonster <[email protected]>

* clippy: remove comments

Signed-off-by: ItsSunnyMonster <[email protected]>

---------

Signed-off-by: ItsSunnyMonster <[email protected]>
Bumps [uuid](https://github.com/uuid-rs/uuid) from 1.8.0 to 1.9.0.
- [Release notes](https://github.com/uuid-rs/uuid/releases)
- [Commits](uuid-rs/uuid@1.8.0...1.9.0)

---
updated-dependencies:
- dependency-name: uuid
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [uuid](https://github.com/uuid-rs/uuid) from 1.9.0 to 1.9.1.
- [Release notes](https://github.com/uuid-rs/uuid/releases)
- [Commits](uuid-rs/uuid@1.9.0...1.9.1)

---
updated-dependencies:
- dependency-name: uuid
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [serde_bytes](https://github.com/serde-rs/bytes) from 0.11.14 to 0.11.15.
- [Release notes](https://github.com/serde-rs/bytes/releases)
- [Commits](serde-rs/bytes@0.11.14...0.11.15)

---
updated-dependencies:
- dependency-name: serde_bytes
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.117 to 1.0.118.
- [Release notes](https://github.com/serde-rs/json/releases)
- [Commits](serde-rs/json@v1.0.117...v1.0.118)

---
updated-dependencies:
- dependency-name: serde_json
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
dependabot Bot and others added 25 commits July 16, 2024 19:51
Bumps [webxr](https://github.com/servo/webxr) from `88fd368` to `bacb22f`.
- [Commits](servo/webxr@88fd368...bacb22f)

---
updated-dependencies:
- dependency-name: webxr
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Fixes 4 clippy rules

Signed-off-by: Danila Matveev <[email protected]>

* Rollbacks changes in range.rs and silences clippy::neg_cmp_op_on_partial_ord

Signed-off-by: Danila Matveev <[email protected]>

* Fixes a fmt issue

Signed-off-by: Danila Matveev <[email protected]>

---------

Signed-off-by: Danila Matveev <[email protected]>
* [clippy] Renames enum FormSubmitter and its elements

Signed-off-by: Danila Matveev <[email protected]>

* fmt

Signed-off-by: Danila Matveev <[email protected]>

---------

Signed-off-by: Danila Matveev <[email protected]>
Bumps [tokio](https://github.com/tokio-rs/tokio) from 1.38.0 to 1.38.1.
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](tokio-rs/tokio@tokio-1.38.0...tokio-1.38.1)

---
updated-dependencies:
- dependency-name: tokio
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Remove Option wrap of WebGPUResponse

Signed-off-by: sagudev <[email protected]>

* Replace WebGPUResponseResult with WebGPUResponse

Signed-off-by: sagudev <[email protected]>

---------

Signed-off-by: sagudev <[email protected]>
* flex: handle ‘align-self: baseline’

Signed-off-by: Mukilan Thiyagarajan <[email protected]>

* FIXME: css/css-flexbox/align-items-baseline-overflow-non-visible.html

Signed-off-by: Mukilan Thiyagarajan <[email protected]>

* Fix baseline selection

Signed-off-by: Mukilan Thiyagarajan <[email protected]>

* Fix baseline calculation with padding/border/margin

Signed-off-by: Mukilan Thiyagarajan <[email protected]>

* Fix compile errors and warnings

Signed-off-by: Mukilan Thiyagarajan <[email protected]>

* Implement ‘align-self: last baseline’

Signed-off-by: Mukilan Thiyagarajan <[email protected]>

* Fix bug where non-baseline-aligned items affected max baseline

Signed-off-by: Mukilan Thiyagarajan <[email protected]>

* Update expectations

Signed-off-by: Mukilan Thiyagarajan <[email protected]>

* Rename method

Signed-off-by: Mukilan Thiyagarajan <[email protected]>

---------

Signed-off-by: Mukilan Thiyagarajan <[email protected]>
If a (min/max)-(height/width) property is set, we still need to respect
the intrinsic ratio of the element if it exists. The previous code was
simply clamping the element size after doing the sizing calculations
once, but this leads to an incorrect aspect ratio.

Signed-off-by: valadaptive <[email protected]>
Bumps [xcursor](https://github.com/esposm03/xcursor-rs) from 0.3.5 to 0.3.6.
- [Commits](https://github.com/esposm03/xcursor-rs/commits)

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

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [thiserror](https://github.com/dtolnay/thiserror) from 1.0.62 to 1.0.63.
- [Release notes](https://github.com/dtolnay/thiserror/releases)
- [Commits](dtolnay/thiserror@1.0.62...1.0.63)

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

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Instead of a complex combination of iterators, use a flatter iteration
design when laying out a flex line.

Signed-off-by: Martin Robinson <[email protected]>
Co-authored-by: Mukilan Thiyagarajan <[email protected]>
Co-authored-by: Delan Azabani <[email protected]>
Bumps [cc](https://github.com/rust-lang/cc-rs) from 1.1.5 to 1.1.6.
- [Release notes](https://github.com/rust-lang/cc-rs/releases)
- [Changelog](https://github.com/rust-lang/cc-rs/blob/main/CHANGELOG.md)
- [Commits](rust-lang/cc-rs@cc-v1.1.5...cc-v1.1.6)

---
updated-dependencies:
- dependency-name: cc
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Enable OpenXR backend from the WebXR crate

Signed-off-by: Daniel Adams <[email protected]>

* Ensure openxr feature is only included on windows

Signed-off-by: Daniel Adams <[email protected]>

* Add cfgs for OpenXR usages

Signed-off-by: Daniel Adams <[email protected]>

---------

Signed-off-by: Daniel Adams <[email protected]>
* Implement Servo side of GamepadHapticActuator

Signed-off-by: Daniel Adams <[email protected]>

* Get build working

Signed-off-by: Daniel Adams <[email protected]>

* Create effect handling on embedder side

Signed-off-by: Daniel Adams <[email protected]>

* Update tracing for GamepadHapticEffect

Signed-off-by: Daniel Adams <[email protected]>

* Update gilrs to point to commit with effect complete event

Signed-off-by: Daniel Adams <[email protected]>

* Implement playing and preempting haptic effects

Signed-off-by: Daniel Adams <[email protected]>

* Update IDL to add trigger rumble

Signed-off-by: Daniel Adams <[email protected]>

* Update WPT expectations

Signed-off-by: Daniel Adams <[email protected]>

* Handle stopping haptic effects from reset()

Signed-off-by: Daniel Adams <[email protected]>

* ./mach fmt, fix test-tidy issues

Signed-off-by: Daniel Adams <[email protected]>

* Add extra validity checks for trigger rumble

Signed-off-by: Daniel Adams <[email protected]>

* Retrieve supported haptic effects from embedder

Signed-off-by: Daniel Adams <[email protected]>

* Fix test expectations

Signed-off-by: Daniel Adams <[email protected]>

* Add missing spec link, pin gilrs commit

Signed-off-by: Daniel Adams <[email protected]>

* servoshell cargo formatting

Signed-off-by: Daniel Adams <[email protected]>

* Fix Cargo.toml

Signed-off-by: Daniel Adams <[email protected]>

* Additional comments, realm proof, naming

Signed-off-by: Daniel Adams <[email protected]>

* ./mach fmt

Signed-off-by: Daniel Adams <[email protected]>

* Update gilrs rev to gilrs-core 0.5.12 release

Signed-off-by: Daniel Adams <[email protected]>

* Implement sequence ids for gamepad haptic promises

Signed-off-by: Daniel Adams <[email protected]>

* Take playing effect promise instead of cloning

Signed-off-by: Daniel Adams <[email protected]>

* Implement listener for reset function

Signed-off-by: Daniel Adams <[email protected]>

* Fix Cargo.lock

Signed-off-by: Daniel Adams <[email protected]>

* Restructure IPC listeners, add comments, handle visibility change

Signed-off-by: Daniel Adams <[email protected]>

* Check that haptic effect still exists before handling ff completion event

Signed-off-by: Daniel Adams <[email protected]>

* Visibility steps, add InRealm bindings for promises

Signed-off-by: Daniel Adams <[email protected]>

* Add Gamepad EmbedderMsg arms to egl servo_glue

Signed-off-by: Daniel Adams <[email protected]>

---------

Signed-off-by: Daniel Adams <[email protected]>
* Remove breaks from webgpu requests

Signed-off-by: sagudev <[email protected]>

* expect

Signed-off-by: sagudev <[email protected]>

* limit,out_of_range TIMEOUT->FAIL

Signed-off-by: sagudev <[email protected]>

---------

Signed-off-by: sagudev <[email protected]>
@wusyong
wusyong requested a review from gterzian July 21, 2024 05:19
@servo-wpt-sync

Copy link
Copy Markdown
Collaborator

🛠 These changes could not be applied onto the latest upstream WPT. Servo's copy of the Web Platform Tests may be out of sync.

@gterzian

Copy link
Copy Markdown
Member

Awesome, thank you!

@gterzian
gterzian merged commit 4ee3eec into servo:readablestream-re-implementation Jul 22, 2024
@wusyong
wusyong deleted the rs-update branch July 22, 2024 09:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.