servo/components/shared/embedder
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
..
build.rs Set the cfg properly for the production-stripped profile (#32991) 2024-08-09 09:16:51 +00:00
Cargo.toml Cargo.toml cleanup (#39403) 2025-09-20 03:09:37 +00:00
input_events.rs Rename InputEvent::MouseLeave to InputEvent::MouseLeftViewport (#38695) 2025-08-15 09:54:54 +00:00
lib.rs webdriver: Focus WebView asynchronously (#39241) 2025-09-10 07:36:53 +00:00
resources.rs script: Create a debugger script for the SpiderMonkey Debugger API (#38331) 2025-07-31 06:17:23 +00:00
user_content_manager.rs Allow setting userscripts directly without the need of files (#35388) 2025-03-27 03:00:08 +00:00
webdriver.rs webdriver: Elegantly handle "element screenshot" when bounding box has area zero (#39499) 2025-09-27 02:20:35 +00:00