mirror of
https://github.com/servo/servo
synced 2026-05-13 02:17:06 +02:00
1. Remove the unnecessary new thread which use GetWindowRect command and blocks for 500ms. Previously this is necessary because constellation forward "resize" to embedder, and WebDriver wait for a constant sufficient time to `GetWindowRect` in the new thread. This caused long delay because there are many subtests and SetWindowRect is called between each. 2. Remove `resize_timeout` 3. Return current dimension instead of 0 from embedder when it fails to resize. 4. Do resizing as long as one of width/height is `Some`, according to spec. Testing: All Conformance test with new passing cases. Fixes: https://github.com/servo/servo/pull/37663#issuecomment-2999120615 --------- Signed-off-by: Euclid Ye <yezhizhenjiakang@gmail.com>