commit | 8f2a06c8d64abb67a25c7d4abd90a89494f9d6c4 | [log] [tgz] |
---|---|---|
author | John Lee <johntlee@chromium.org> | Tue Mar 25 17:49:25 2025 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Mar 25 17:49:25 2025 |
tree | d7135029f3a376955dfbc95a5f358a26d0d34e3e | |
parent | 7fa0bcf39016735df4bfca2b398d2e7384747599 [diff] |
WebUI: Update history-clusters test to not set itemSize - Scrolling on this page causes scrollHeight to change as cr-lazy-list renders items that come into view, so setting scrollTop programmatically is not reliable. Move scrolling into an async function that only completes once the desired scrollTop stabilizes. - Make the <500 case closer to 500 to avoid cases where scrolling a lot past 500 can cause multiple back-to-back loads (eg. scrolling programmatically til 495 and then 400, causing multiple calls to the handler). This is in preparation for using itemSize in cr-lazy-list as the estimated item size instead of doing calculations. Bug: 40943652 Change-Id: Ifac9380e462952e0e8a0cc7366e93b4837975b5a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6383529 Reviewed-by: Rebekah Potter <rbpotter@chromium.org> Commit-Queue: John Lee <johntlee@chromium.org> Cr-Commit-Position: refs/heads/main@{#1437604}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
To check out the source code locally, don't use git clone
! Instead, follow the instructions on how to get the code.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure.
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.
If you found a bug, please file it at https://crbug.com/new.