DevTools: cleanup console viewport correctness and tests |
||
Issue descriptionThe DevTools console viewport has several correctness bugs that should be fixed. Even if they do not noticeably detract from the experience, they prevent new feature development and make it easy to introduce regressions. Main tasks are: - Fixing first/lastVisibleIndex() - Broken tests (see "verifyViewportIsTallEnough" in console-viewport-*.js) - Stick to bottom behavior when typing in the prompt - Prevent duplicate items from breaking viewport
,
Jan 23 2018
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/103d429ad700ec1912ba2f655a1811e56e3fee6f commit 103d429ad700ec1912ba2f655a1811e56e3fee6f Author: Erik Luo <luoe@chromium.org> Date: Tue Jan 23 09:48:15 2018 DevTools: fix first/lastVisibleIndex() in Console viewport The first/lastVisibleIndex() methods require the cumulativeHeights to be correct. Before, calling refresh() would update these heights before updating DOM, but left it in a possibly stale state. After this CL, cumulativeHeights is guaranteed to be updated in the same microtask once refresh() is called. Bug: 803537 Change-Id: I96f28dea8584d88a6ee25804714d04a2d61d7f10 Reviewed-on: https://chromium-review.googlesource.com/875160 Commit-Queue: Erik Luo <luoe@chromium.org> Reviewed-by: Andrey Lushnikov <lushnikov@chromium.org> Reviewed-by: Joel Einbinder <einbinder@chromium.org> Cr-Commit-Position: refs/heads/master@{#531191} [modify] https://crrev.com/103d429ad700ec1912ba2f655a1811e56e3fee6f/third_party/WebKit/LayoutTests/TestExpectations [modify] https://crrev.com/103d429ad700ec1912ba2f655a1811e56e3fee6f/third_party/WebKit/Source/devtools/front_end/console/ConsoleViewport.js
,
May 31 2018
|
||
►
Sign in to add a comment |
||
Comment 1 by bugdroid1@chromium.org
, Jan 23 2018