servo/components
Euclid Ye 2e8fac9395
webdriver: Elegantly handle "element screenshot" when bounding box has area zero (#39499)
It is possible that the bounding rectangle of an element has area 0.
This PR avoids panic in this case.

It is worth to mention that the panic itself won't kill the entire
program for interaction, but only the webdriver thread.

Testing: Manually tested on the case of #39495

Signed-off-by: Euclid Ye <yezhizhenjiakang@gmail.com>
2025-09-27 02:20:35 +00:00
..
allocator Moves to FxHashMap for Allocator, BHM, Canvas, Media, Servo, WebGL and WebGPU (#39202) 2025-09-08 16:06:03 +00:00
background_hang_monitor Use more workspace dependencies (#39404) 2025-09-20 06:01:59 +00:00
bluetooth Cargo.toml cleanup (#39403) 2025-09-20 03:09:37 +00:00
canvas Cargo.toml cleanup (#39403) 2025-09-20 03:09:37 +00:00
compositing compositing: Don't reset scroll positions when receiving a new frame tree (#39515) 2025-09-26 17:14:45 +00:00
config servoshell: Move touch event simulation to servoshell (#39352) 2025-09-23 07:00:11 +00:00
constellation script: Chain up keyboard scrolling to parent <iframe>s (#39469) 2025-09-25 11:16:41 +00:00
deny_public_fields Add rust-version to all Cargo.toml files (#33483) 2024-09-17 16:39:07 +00:00
devtools Cargo.toml cleanup (#39403) 2025-09-20 03:09:37 +00:00
dom_struct script: Feature-gate all crown support. (#35055) 2025-01-18 21:36:15 +00:00
domobject_derive Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
fonts Cargo.toml cleanup (#39403) 2025-09-20 03:09:37 +00:00
geometry layout: Use FastTransform for hit testing (#38554) 2025-08-11 16:23:17 +00:00
hyper_serde Allow hyper_serde to only depend on serde_core for potentially faster compile times. (#39467) 2025-09-25 15:54:21 +00:00
jstraceable_derive Add rust-version to all Cargo.toml files (#33483) 2024-09-17 16:39:07 +00:00
layout stylo: Add support for -webkit-fill-available sizing keyword (#39492) 2025-09-26 10:45:56 +00:00
malloc_size_of script: Chain up keyboard scrolling to parent <iframe>s (#39469) 2025-09-25 11:16:41 +00:00
media Cargo.toml cleanup (#39403) 2025-09-20 03:09:37 +00:00
metrics tidy: Add a rule ensuring that // comments are followed by a space in Rust (#38698) 2025-08-18 12:09:09 +00:00
net storage: Move shared functionality to base (#39419) 2025-09-22 13:59:36 +00:00
pixels layout: Convert animated image delays < 10ms into 100 ms delays (#39189) 2025-09-08 14:16:21 +00:00
profile allocator: Add optional heap allocation measurement tracking. (#38727) 2025-08-19 18:49:27 +00:00
rand Migrate to the 2024 edition (#35755) 2025-03-13 10:28:11 +00:00
range Add rust-version to all Cargo.toml files (#33483) 2024-09-17 16:39:07 +00:00
script Fully implement request constructor body handling (#39514) 2025-09-27 01:52:01 +00:00
script_bindings Script: Remove last instances of Deref<str> and DerefMut<str> used for DOMString (#39504) 2025-09-27 01:48:24 +00:00
servo webdriver: Elegantly handle "element screenshot" when bounding box has area zero (#39499) 2025-09-27 02:20:35 +00:00
servo_tracing Cargo.toml cleanup (#39403) 2025-09-20 03:09:37 +00:00
shared webdriver: Elegantly handle "element screenshot" when bounding box has area zero (#39499) 2025-09-27 02:20:35 +00:00
timers cargo: Remove unused dependency (#38239) 2025-07-23 13:32:50 +00:00
url script: Do not include fragments when comparing URLs in CookieStore (#38876) 2025-08-27 23:41:11 +00:00
webdriver_server webdriver: Elegantly handle "element screenshot" when bounding box has area zero (#39499) 2025-09-27 02:20:35 +00:00
webgl Cargo.toml cleanup (#39403) 2025-09-20 03:09:37 +00:00
webgpu Cargo.toml cleanup (#39403) 2025-09-20 03:09:37 +00:00
webxr Cargo.toml cleanup (#39403) 2025-09-20 03:09:37 +00:00