mirror of
https://github.com/servo/servo.git
synced 2025-08-08 06:55:31 +01:00
script: Get the window rectangle from the WebViewDelegate
instead of via the compositor (#37960)
Previously, `screenX`, `screenY`, `outerHeight`, `outerWidth`, `moveBy`, `resizeBy` ask compositor for window rectangle, which then return "inner" rectangle after consulting Embedder. This PR 1. removes `GetClientWindowRect` from compositor, and directly let script ask embedder. 2. add `window_size` to `ScreenGeometry` 3. add a lot of docs to `ScreenGeometry` Testing: `tests\wpt\mozilla\tests\mozilla\window_resizeTo.html` can now pass for Headed Window. Fixes: #37824 --------- Signed-off-by: Euclid Ye <yezhizhenjiakang@gmail.com> Signed-off-by: Martin Robinson <mrobinson@igalia.com> Co-authored-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
parent
d40e9f82a2
commit
c5aeac3cea
16 changed files with 59 additions and 104 deletions
|
@ -1,9 +1,3 @@
|
|||
[close.py]
|
||||
[test_close_browsing_context_with_accepted_beforeunload_prompt[tab\]]
|
||||
expected: FAIL
|
||||
|
||||
[test_close_browsing_context_with_accepted_beforeunload_prompt[window\]]
|
||||
expected: FAIL
|
||||
|
||||
[test_element_usage_after_closing_browsing_context]
|
||||
expected: ERROR
|
||||
|
|
|
@ -211,9 +211,3 @@
|
|||
|
||||
[test_resettable_element_does_not_satisfy_validation_constraints[range-foo\]]
|
||||
expected: FAIL
|
||||
|
||||
[test_resettable_element_does_not_satisfy_validation_constraints[color-foo\]]
|
||||
expected: FAIL
|
||||
|
||||
[test_resettable_element_does_not_satisfy_validation_constraints[datetime-foo\]]
|
||||
expected: FAIL
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
[get.py]
|
||||
[test_payload]
|
||||
expected: FAIL
|
|
@ -1,3 +0,0 @@
|
|||
[alerts.py]
|
||||
[test_retain_tab_modal_status]
|
||||
expected: FAIL
|
|
@ -1,7 +1,4 @@
|
|||
[switch.py]
|
||||
[test_finds_exising_user_prompt_after_tab_switch[alert\]]
|
||||
expected: FAIL
|
||||
|
||||
[test_finds_exising_user_prompt_after_tab_switch[confirm\]]
|
||||
expected: ERROR
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue