aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Make ScriptParseHTML and ScriptParseXML only count actual parsing time (#34273)Delan Azabani2024-11-192-35/+72
| | | Signed-off-by: Delan Azabani <dazabani@igalia.com>
* crypto: Support key wrap operations + AES-KW (#34262)Daniel Adams2024-11-1816-3881/+533
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Support key wrapping operations + AES-KW Signed-off-by: Daniel Adams <msub2official@gmail.com> * Update expectations Signed-off-by: Daniel Adams <msub2official@gmail.com> * tidy Signed-off-by: Daniel Adams <msub2official@gmail.com> * Add allow for clippy Signed-off-by: Daniel Adams <msub2official@gmail.com> * Add missing spec links Signed-off-by: Daniel Adams <msub2official@gmail.com> * Improve JWK handling Signed-off-by: Daniel Adams <msub2official@gmail.com> * Fix clippy warnings Signed-off-by: Daniel Adams <msub2official@gmail.com> * ./mach fmt Signed-off-by: Daniel Adams <msub2official@gmail.com> --------- Signed-off-by: Daniel Adams <msub2official@gmail.com>
* Fix min/max-content block size of replaced element (#34284)Oriol Brufau2024-11-183-28/+67
| | | | | | | | | | | | The min-content and max-content sizes on the block axis depend on the inline size. But when computing the SizeConstraint corresponding to the inline axis, we were resolving the preferred inline size ignoring intrinsic keywords. Now we will only ignore `auto`. Also, this patch refactors the logic to compute the min-content and max-content block sizes after fully resolving the inline size. This avoids having to resolve the inline sizing properties twice. Signed-off-by: Oriol Brufau <obrufau@igalia.com>
* build(deps): bump libc from 0.2.162 to 0.2.164 (#34279)dependabot[bot]2024-11-181-2/+2
| | | | | | | | | | | | | | | | Bumps [libc](https://github.com/rust-lang/libc) from 0.2.162 to 0.2.164. - [Release notes](https://github.com/rust-lang/libc/releases) - [Changelog](https://github.com/rust-lang/libc/blob/main/CHANGELOG.md) - [Commits](https://github.com/rust-lang/libc/compare/0.2.162...0.2.164) --- updated-dependencies: - dependency-name: libc dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* build(deps): bump serde_json from 1.0.132 to 1.0.133 (#34280)dependabot[bot]2024-11-181-2/+2
| | | | | | | | | | | | | | | Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.132 to 1.0.133. - [Release notes](https://github.com/serde-rs/json/releases) - [Commits](https://github.com/serde-rs/json/compare/v1.0.132...v1.0.133) --- updated-dependencies: - dependency-name: serde_json dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Implement HMAC key generation (#34278)Simon Wülker2024-11-185-1828/+217
| | | | | | | | | | | | | * Implement HMAC key generation Signed-off-by: Simon Wülker <simon.wuelker@arcor.de> * Update WPT expectations Signed-off-by: Simon Wülker <simon.wuelker@arcor.de> --------- Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
* layout: Use `Size::FitContent` when the alignment isn't `normal` or ↵tanishka2024-11-1825-593/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `stretch` for absolutely positioned elements (#34264) * layout: Use Size::FitContent when the alignment isn't normal or stretch Signed-off-by: taniishkaaa <tanishkasingh2004@gmail.com> * Use unwrap_or_default() Signed-off-by: taniishkaaa <tanishkasingh2004@gmail.com> * Use self.alignment.value() Signed-off-by: taniishkaaa <tanishkasingh2004@gmail.com> * Refactor used_size to handle non-definite sizes Signed-off-by: taniishkaaa <tanishkasingh2004@gmail.com> * Include AlignFlags::Auto Signed-off-by: taniishkaaa <tanishkasingh2004@gmail.com> * Update test expectations Signed-off-by: taniishkaaa <tanishkasingh2004@gmail.com> --------- Signed-off-by: taniishkaaa <tanishkasingh2004@gmail.com>
* mach: run linux unit tests for 'full' try jobs (#34272)Mukilan Thiyagarajan2024-11-181-4/+12
| | | | | | | Windows and Mac have unit tests enabled when triggered via 'full' alias but they are disabled on Linux which is confusing. Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com> Co-authored-by: sagudev <16504129+sagudev@users.noreply.github.com>
* mach: Fix notifications on windows 11 (#34266)Jonathan Schwender2024-11-171-1/+1
| | | | | | | Bumps notify-py to the latest version v0.3.43. Release notes: https://github.com/ms7m/notify-py/releases/tag/v0.3.43 This fixes notifications on windows 11. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
* mach: ohos: Print error message when hvigor fails (#34267)Jonathan Schwender2024-11-171-0/+6
| | | | | | | `hvigorw --version` might fail if some required environment variables are not set. In this case we should print the output of the command, so that the user can report what caused `hvigorw --version` to fail. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
* Update web-platform-tests to revision ↵Servo WPT Sync2024-11-17473-16219/+18119
| | | | | b'6cf69a4f431581e9438681abc776029308ee8a8c' (#34265) Signed-off-by: WPT Sync Bot <ghbot+wpt-sync@servo.org>
* Fix offsetLeft/offsetTop to match major browsers (#32761)Nico Burns2024-11-1622-1204/+77
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Fix offsetLeft/offsetTop to match major browsers See: https://github.com/w3c/csswg-drafts/issues/10549 Signed-off-by: Nico Burns <nico@nicoburns.com> Fix crash when <html> element is absolutely positioned Signed-off-by: Nico Burns <nico@nicoburns.com> * Update test expectations Signed-off-by: Nico Burns <nico@nicoburns.com> * Update test expectations again Signed-off-by: Nico Burns <nico@nicoburns.com> * Use PhysicalRect and PhysicalVec types Signed-off-by: Nico Burns <nico@nicoburns.com> * Use is_some_and Signed-off-by: Nico Burns <nico@nicoburns.com> * clippy Signed-off-by: Nico Burns <nico@nicoburns.com> * Apply comment changes from code review Co-authored-by: Oriol Brufau <obrufau@igalia.com> Signed-off-by: Nico Burns <nico@nicoburns.com> --------- Signed-off-by: Nico Burns <nico@nicoburns.com> Co-authored-by: Oriol Brufau <obrufau@igalia.com>
* subtlecrypto: Don't throw exceptions twice when converting to Algorithm ↵Simon Wülker2024-11-155-28/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | object (#34239) * Don't throw exceptions twice when converting to Algorithm object Removes match statements like ```rust let Ok(ConversionResult::Success(algorithm)) = Algorithm::new(cx, value.handle()) else { return Err(Error::Syntax); }; ``` These don't cause issues if `Algorithm::new` returns `Ok(ConversionResult::Failure`, but in the case of `Err(())` the implementation already called `throw_type_error` and we must not throw an additional Syntax error, otherwise we'll crash. Luckily, this case is already handled elsewhere by the `value_from_js_object` macro. Signed-off-by: Simon Wülker <simon.wuelker@arcor.de> * Test that calling subtlecrypto methods with empty algorithm objects throws a TypeError The WebCryptoAPI spec does not tell us which error to throw exactly, but according to https://webidl.spec.whatwg.org/ it should be a TypeError. This previously crashed servo. Signed-off-by: Simon Wülker <simon.wuelker@arcor.de> --------- Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
* build(deps): bump clap from 4.5.20 to 4.5.21 (#34261)dependabot[bot]2024-11-151-4/+4
| | | | | | | | | | | | | | | | Bumps [clap](https://github.com/clap-rs/clap) from 4.5.20 to 4.5.21. - [Release notes](https://github.com/clap-rs/clap/releases) - [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md) - [Commits](https://github.com/clap-rs/clap/compare/clap_complete-v4.5.20...clap_complete-v4.5.21) --- updated-dependencies: - dependency-name: clap dependency-type: indirect update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* ohos: Add basic IME and keyboard support (#34188)Jonathan Schwender2024-11-1514-63/+320
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * ohos: Add basic IME and keyboard support - Add extremely basic support for keyboard events - Add basic IME support - Showing and hiding the IME - inserting text - deleting characters - very basic configuration of the IME Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com> * Apply suggestions from code review Improve the log message Co-authored-by: Josh Matthews <josh@joshmatthews.net> Signed-off-by: Jonathan Schwender <55576758+jschwe@users.noreply.github.com> * Update ports/servoshell/egl/ohos.rs Co-authored-by: Mukilan Thiyagarajan <mukilanthiagarajan@gmail.com> Signed-off-by: Jonathan Schwender <55576758+jschwe@users.noreply.github.com> * ohos: Bump the minimum required SDK version to 5.0 Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com> * ohos: Remove pub from callbacks The callbacks don't need to be public, as we will be registering them. Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com> * Rename composition event Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com> * ohos: clippy in log Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com> * ohos: address some clippy warnings Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com> * ohos: Raise Error in mach if unsupported SDK version is used. Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com> * Add keyboard-types dependency for android Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com> --------- Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com> Signed-off-by: Jonathan Schwender <55576758+jschwe@users.noreply.github.com> Co-authored-by: Josh Matthews <josh@joshmatthews.net> Co-authored-by: Mukilan Thiyagarajan <mukilanthiagarajan@gmail.com>
* mach bootstrap: Lock cargo-deny to 0.16.1 (#34258)Jonathan Schwender2024-11-151-1/+2
| | | | | | As mentioned in https://github.com/servo/servo/pull/34257 we should also lock the cargo-deny version in mach bootstrap. Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com>
* CI: Fix lint job (#34257)Jonathan Schwender2024-11-151-0/+2
| | | | | cargo-deny 0.16.2 requires Rust 1.81, so we install the previous version Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com>
* Plumb time profiler output into tracing (#34238)Delan Azabani2024-11-1516-82/+279
| | | | | | | | | | | | | | | | | * Plumb time profiler output into tracing Signed-off-by: Delan Azabani <dazabani@igalia.com> * Enter the span tightly around the callback Signed-off-by: Delan Azabani <dazabani@igalia.com> * Use `info_span!()` shorthand Signed-off-by: Delan Azabani <dazabani@igalia.com> --------- Signed-off-by: Delan Azabani <dazabani@igalia.com>
* build(deps): bump cc from 1.2.0 to 1.2.1 (#34251)dependabot[bot]2024-11-141-2/+2
| | | | | | | | | | | | | | | | Bumps [cc](https://github.com/rust-lang/cc-rs) from 1.2.0 to 1.2.1. - [Release notes](https://github.com/rust-lang/cc-rs/releases) - [Changelog](https://github.com/rust-lang/cc-rs/blob/main/CHANGELOG.md) - [Commits](https://github.com/rust-lang/cc-rs/compare/cc-v1.2.0...cc-v1.2.1) --- updated-dependencies: - dependency-name: cc dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* build(deps): bump flate2 from 1.0.34 to 1.0.35 (#34250)dependabot[bot]2024-11-141-2/+2
| | | | | | | | | | | | | | | | Bumps [flate2](https://github.com/rust-lang/flate2-rs) from 1.0.34 to 1.0.35. - [Release notes](https://github.com/rust-lang/flate2-rs/releases) - [Changelog](https://github.com/rust-lang/flate2-rs/blob/main/CHANGELOG.md) - [Commits](https://github.com/rust-lang/flate2-rs/compare/1.0.34...1.0.35) --- updated-dependencies: - dependency-name: flate2 dependency-type: indirect update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* build(deps): bump clap_lex from 0.7.2 to 0.7.3 (#34249)dependabot[bot]2024-11-141-2/+2
| | | | | | | | | | | | | | | | Bumps [clap_lex](https://github.com/clap-rs/clap) from 0.7.2 to 0.7.3. - [Release notes](https://github.com/clap-rs/clap/releases) - [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md) - [Commits](https://github.com/clap-rs/clap/compare/clap_lex-v0.7.2...clap_lex-v0.7.3) --- updated-dependencies: - dependency-name: clap_lex dependency-type: indirect update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Protect against arithmetic underflow in TableBuilder::current_y() (#34247)Oriol Brufau2024-11-141-20/+34
| | | | | | It doesn't seem like any web page could trigger the underflow, but this makes the code more robust. Signed-off-by: Oriol Brufau <obrufau@igalia.com>
* fix: allow form submission for input [type=image] (#34203)shanehandley2024-11-147-143/+73
| | | | | | | | | | | | | * fix: allow form submission for input [type=image] Signed-off-by: Shane Handley <shanehandley@fastmail.com> * Fix comments and use existing can_gc where available Signed-off-by: Shane Handley <shanehandley@fastmail.com> --------- Signed-off-by: Shane Handley <shanehandley@fastmail.com>
* Add some more CanGc arguments for compiling module scripts. (#34182)Josh Matthews2024-11-132-4/+14
| | | Signed-off-by: Josh Matthews <josh@joshmatthews.net>
* servoshell: Fix --no-default-features and make webxr optional on ↵Jonathan Schwender2024-11-135-4/+16
| | | | | | | | | | | | | | | | | | | ohos/android (#34242) * servoshell: fix --no-default-features The Embeddertraits only contain `register_webxr` if the webxr feature is enabled, hence we also need to guard the trait implementation. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> * ohos/android: Make webxr optional in servoshell Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> --------- Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
* feat: `webxr` feature flag (#34241)Ngo Iok Ui (Wu Yu Wei)2024-11-1321-374/+456
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add webxr feature flag Add webxr feature flag to embedder_traits Add webxr flag to constellation Add webxr flag to compositor Add webxr flag to canvas Turn registry into optional Add webxr flag to servo lib Signed-off-by: Wu Yu Wei <yuweiwu@pm.me> Co-authored-by: august kline <me@augustkline.com> * Cargo fmt Signed-off-by: Wu Yu Wei <yuweiwu@pm.me> * Add missing license Signed-off-by: Wu Yu Wei <yuweiwu@pm.me> * Cargo clippy Signed-off-by: Wu Yu Wei <yuweiwu@pm.me> --------- Signed-off-by: Wu Yu Wei <yuweiwu@pm.me> Co-authored-by: august kline <me@augustkline.com>
* Support justify-self on absolutely positioned elements (#34235)chickenleaf2024-11-132-37/+1
| | | | | | | | | | | | | * Support justify-self on absolutely positioned elements Signed-off-by: L Ashwin B <lashwinib@gmail.com> * updating test expectations Signed-off-by: L Ashwin B <lashwinib@gmail.com> --------- Signed-off-by: L Ashwin B <lashwinib@gmail.com>
* ohos: avoid passing some cli arguments to servo (#34237)Mukilan Thiyagarajan2024-11-131-0/+2
| | | | | | | | | | | | | | | | | | | These following four OHOS specific arguments are being passed by the OHOS runtime to the EntryAbility, which then passess them on to Servo's argument parsing logic: * `--debugApp=false` * `--send_to_erms_targetAppDistType=os_integration` * `--send_to_erms_targetAppProvisionType=release` * `--send_to_erms_targetBundleType=0` When Servo's argument parsing logic encounters an unrecognized argument, it terminates the process after logging an error to stderr (which is not visible in hilog). This patch simply filters out these arguments so the parsing logic doesn't fail. Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com>
* Use a RwLock to cache inline_content_sizes() (#34232)Oriol Brufau2024-11-139-74/+76
| | | | | | | | | | | In order to support size keywords in block layout, we may need to call `inline_content_sizes()` in order to compute the min/max-content sizes. But this required a mutable reference in order the update the cache, and in various places we already had mutable references. So this switches the cache into a RwLock to avoid needing mutable refs. Note OnceCell wouldn't work because it's not thread-safe. Signed-off-by: Oriol Brufau <obrufau@igalia.com>
* Allow filtering of tracing events via SERVO_TRACING (#34236)Delan Azabani2024-11-134-5/+45
| | | | | | | | | | | | | * Allow filtering of tracing events via SERVO_TRACING Signed-off-by: Delan Azabani <dazabani@igalia.com> * Assume SERVO_TRACING=off by default Signed-off-by: Delan Azabani <dazabani@igalia.com> --------- Signed-off-by: Delan Azabani <dazabani@igalia.com>
* Add `js.disable_jit` pref (#34231)Samson2024-11-133-0/+7
| | | Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
* Implement `"get key length"` operation for HMAC algorithm (#34230)Simon Wülker2024-11-123-4612/+41
| | | | | | | | | | | | | * Implement "get key length" for HMAC keys Signed-off-by: Simon Wülker <simon.wuelker@arcor.de> * Update WPT expectations Signed-off-by: Simon Wülker <simon.wuelker@arcor.de> --------- Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
* build(deps): bump cc from 1.1.37 to 1.2.0 (#34234)dependabot[bot]2024-11-122-3/+3
| | | | | | | | | | | | | | | | Bumps [cc](https://github.com/rust-lang/cc-rs) from 1.1.37 to 1.2.0. - [Release notes](https://github.com/rust-lang/cc-rs/releases) - [Changelog](https://github.com/rust-lang/cc-rs/blob/main/CHANGELOG.md) - [Commits](https://github.com/rust-lang/cc-rs/compare/cc-v1.1.37...cc-v1.2.0) --- updated-dependencies: - dependency-name: cc dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Add `BoxFragment::is_inline_box()` (#34233)Oriol Brufau2024-11-123-10/+10
| | | | | A helper function to check for inline boxes. Signed-off-by: Oriol Brufau <obrufau@igalia.com>
* Unminify module scripts. (#34206)Josh Matthews2024-11-129-102/+151
| | | | | | | | | | | | | * script: Unminify module scripts. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Fix clippy. Signed-off-by: Josh Matthews <josh@joshmatthews.net> --------- Signed-off-by: Josh Matthews <josh@joshmatthews.net>
* build(deps): bump cpufeatures from 0.2.14 to 0.2.15 (#34229)dependabot[bot]2024-11-121-2/+2
| | | | | | | | | | | | | | Bumps [cpufeatures](https://github.com/RustCrypto/utils) from 0.2.14 to 0.2.15. - [Commits](https://github.com/RustCrypto/utils/compare/cpufeatures-v0.2.14...cpufeatures-v0.2.15) --- updated-dependencies: - dependency-name: cpufeatures dependency-type: indirect update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* build(deps): bump serde from 1.0.214 to 1.0.215 (#34228)dependabot[bot]2024-11-122-6/+6
| | | | | | | | | | | | | | | Bumps [serde](https://github.com/serde-rs/serde) from 1.0.214 to 1.0.215. - [Release notes](https://github.com/serde-rs/serde/releases) - [Commits](https://github.com/serde-rs/serde/compare/v1.0.214...v1.0.215) --- updated-dependencies: - dependency-name: serde dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* build(deps): bump napi-ohos related crates (#34227)Jonathan Schwender2024-11-122-9/+13
| | | | | | | | | | | | | * bump napi-ohos* crates to 1.0.2 Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> * dependabot: group napi-ohos related updates Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> --------- Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
* build(deps): bump rustix from 0.38.39 to 0.38.40 (#34217)dependabot[bot]2024-11-121-3/+3
| | | | | | | | | | | | | | | | Bumps [rustix](https://github.com/bytecodealliance/rustix) from 0.38.39 to 0.38.40. - [Release notes](https://github.com/bytecodealliance/rustix/releases) - [Changelog](https://github.com/bytecodealliance/rustix/blob/main/CHANGELOG.md) - [Commits](https://github.com/bytecodealliance/rustix/compare/v0.38.39...v0.38.40) --- updated-dependencies: - dependency-name: rustix dependency-type: indirect update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* build(deps): bump allocator-api2 from 0.2.18 to 0.2.20 (#34219)dependabot[bot]2024-11-121-2/+2
| | | | | | | | | | | | | | | Bumps [allocator-api2](https://github.com/zakarumych/allocator-api2) from 0.2.18 to 0.2.20. - [Changelog](https://github.com/zakarumych/allocator-api2/blob/main/CHANGELOG.md) - [Commits](https://github.com/zakarumych/allocator-api2/commits) --- updated-dependencies: - dependency-name: allocator-api2 dependency-type: indirect update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Implement `crypto.subtle.sign/verify` with HMAC (#34223)Simon Wülker2024-11-117-531/+461
| | | | | | | | | | | | | | | | | | | | | * Allow importing HMAC keys Signed-off-by: Simon Wülker <simon.wuelker@arcor.de> * Implement crypto.subtle.sign with HMAC Signed-off-by: Simon Wülker <simon.wuelker@arcor.de> * Implement crypto.subtle.verify with HMAC Signed-off-by: Simon Wülker <simon.wuelker@arcor.de> * Update WPT expectations Signed-off-by: Simon Wülker <simon.wuelker@arcor.de> --------- Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
* Fix writing of apis.html (#34224)Samson2024-11-111-1/+4
| | | Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
* build(deps): bump thiserror from 1.0.68 to 1.0.69 (#34214)dependabot[bot]2024-11-111-4/+4
| | | | | | | | | | | | | | | Bumps [thiserror](https://github.com/dtolnay/thiserror) from 1.0.68 to 1.0.69. - [Release notes](https://github.com/dtolnay/thiserror/releases) - [Commits](https://github.com/dtolnay/thiserror/compare/1.0.68...1.0.69) --- updated-dependencies: - dependency-name: thiserror dependency-type: indirect update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Use LazyCells instead of callbacks when resolving size keywords (#34211)Oriol Brufau2024-11-114-78/+75
| | | | | | | | | | In most cases we already had a LazyCell anyways, since we could need the value for multiple properties. Instead of passing a callback that forces the evaluation of the LazyCell, it's simpler to just pass the LazyCell directly. Also, this way we no longer need mutable references. Signed-off-by: Oriol Brufau <obrufau@igalia.com>
* Allow tidy to pass without support/crown/target (#34212)Samson2024-11-111-1/+1
| | | Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
* Filter Perfetto traces to `servo_profiling` spans and events only (#34209)Delan Azabani2024-11-111-1/+2
| | | Signed-off-by: Delan Azabani <dazabani@igalia.com>
* Fix inline content sizes of intrinsic element with indefinite block size ↵Oriol Brufau2024-11-1115-292/+297
| | | | | | | | | | | | | | | | | (#34152) To compute the min-content and max-content inline sizes of a replaced element, we were only using the aspect ratio to transfer definite block sizes resulting from clamping the preferred block size between the min and max block sizes. However, if the preferred block size is indefinite, then we weren't transfering the min and max through the aspect ratio. This patch adds a `SizeConstraint` enum that can represent these cases, and a `ConstraintSpace` struct analogous to `IndefiniteContainingBlock` but with no inline size, and a `SizeConstraint` block size. Signed-off-by: Oriol Brufau <obrufau@igalia.com>
* Add simple fling implementation (#33219)Jonathan Schwender2024-11-106-24/+117
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add simple fling implementation Add a simple fling implementation, which depends on a refresh tick from the embedder. Currently this refresh tick is only implemented for OpenHarmony (using the vsync signal). The fling implementation is very simple, without any fancy things like acceleration. This can be improved in the future. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com> * Multiply initial velocity with 2 This makes the experience much more snappy. Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com> * address review comments Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> * Rename constants and add todo Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> * fmt Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> * Add a few periods to make comments consistent Signed-off-by: Martin Robinson <mrobinson@igalia.com> --------- Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com> Signed-off-by: Martin Robinson <mrobinson@igalia.com> Co-authored-by: Martin Robinson <mrobinson@igalia.com>
* ohos: Bump napi-ohos (#34160)Jonathan Schwender2024-11-103-46/+39
| | | | | | | Update napi-ohos and migrate away from deprecated `JsFunction` and use the new `Function` and `build_threadsafe_function()` methods. Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com>
* Use the correct fallback referrer policy for the empty string case (#34201)shanehandley2024-11-107-189/+5
| | | Signed-off-by: Shane Handley <shanehandley@fastmail.com>