Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebContent+LibWeb: Add an option to disable painting viewport scrollbars #2962

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

tcl3
Copy link
Member

@tcl3 tcl3 commented Dec 18, 2024

This PR adds a --disable-scrollbar-painting option, which stops the scrollbars of viewport paintables from being painted. This option is then used by WebDriver when launching the browser.

This gives us 115 additional WPT passes.

@tcl3 tcl3 requested a review from trflynn89 as a code owner December 18, 2024 12:31
Copy link
Member

@AtkinsSJ AtkinsSJ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, just an extremely minor nit.

Libraries/LibWebView/HelperProcess.cpp Outdated Show resolved Hide resolved
@gmta
Copy link
Collaborator

gmta commented Dec 18, 2024

Just for reference, do other browsers take this same route when running WPT? An alternative I could imagine is painting the backing store with a viewport size as big as the document, in which case the scrollbars should disappear as well.

@tcl3 tcl3 force-pushed the webcontent_disable_scrollbar_painting branch from f4e1470 to 0072889 Compare December 18, 2024 12:42
@trflynn89
Copy link
Contributor

We should also consider disabling these scrollbars during LibWeb tests, it's a frequent pain point in screenshot tests it seems. (Fine to do as a follow-up ofc, since it probably involves rebasing all of those tests)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants