LibWeb/HTML: Return Promises from Window scroll methods

A version of this was added in a610639119
and reverted in 70671b4c11. The bugs
there (confusing scroll-to-position and scroll-by-delta, and not having
an execution context in some cases) have been fixed in this version.
This commit is contained in:
Sam Atkins
2026-01-05 19:14:20 +00:00
parent 0a57e1e8ac
commit 8a0ba904b9
Notes: github-actions[bot] 2026-01-08 14:51:21 +00:00
7 changed files with 100 additions and 59 deletions

View File

@@ -2,8 +2,8 @@ Harness status: OK
Found 415 tests
325 Pass
90 Fail
331 Pass
84 Fail
Pass idl_test setup
Pass idl_test validation
Pass Partial interface Window: original interface defined
@@ -272,12 +272,12 @@ Pass Window interface: attribute scrollX
Pass Window interface: attribute pageXOffset
Pass Window interface: attribute scrollY
Pass Window interface: attribute pageYOffset
Fail Window interface: operation scroll(optional ScrollToOptions)
Fail Window interface: operation scroll(unrestricted double, unrestricted double)
Fail Window interface: operation scrollTo(optional ScrollToOptions)
Fail Window interface: operation scrollTo(unrestricted double, unrestricted double)
Fail Window interface: operation scrollBy(optional ScrollToOptions)
Fail Window interface: operation scrollBy(unrestricted double, unrestricted double)
Pass Window interface: operation scroll(optional ScrollToOptions)
Pass Window interface: operation scroll(unrestricted double, unrestricted double)
Pass Window interface: operation scrollTo(optional ScrollToOptions)
Pass Window interface: operation scrollTo(unrestricted double, unrestricted double)
Pass Window interface: operation scrollBy(optional ScrollToOptions)
Pass Window interface: operation scrollBy(unrestricted double, unrestricted double)
Pass Window interface: attribute screenX
Pass Window interface: attribute screenLeft
Pass Window interface: attribute screenY