RESOLVED FIXED 177914
Web Inspector: When scrolled Network Table reduces the number of rows it may appear as blank
https://bugs.webkit.org/show_bug.cgi?id=177914
Summary Web Inspector: When scrolled Network Table reduces the number of rows it may ...
Joseph Pecoraro
Reported 2017-10-04 21:28:31 PDT
When scrolled Network Table reduces the number of rows it may appear as blank Steps to Reproduce: 1. Inspect apple.com 2. Show Network Tab 3. Reload 4. Scroll Network Tab Down 5. Select "Document" filter => expected to see 1 Document resource, instead see blank / broken table Notes: • The number of rows was reduced, but the Table's scrollTop was not reset to a reasonable value. This can happen any time the row count goes down so we should have a generic solution.
Attachments
[PATCH] Proposed Fix (3.46 KB, patch)
2017-10-04 21:34 PDT, Joseph Pecoraro
mattbaker: review+
[PATCH] For Landing (3.43 KB, patch)
2017-10-04 23:06 PDT, Joseph Pecoraro
no flags
Radar WebKit Bug Importer
Comment 1 2017-10-04 21:28:54 PDT
Joseph Pecoraro
Comment 2 2017-10-04 21:34:25 PDT
Created attachment 322777 [details] [PATCH] Proposed Fix
Matt Baker
Comment 3 2017-10-04 21:55:35 PDT
Comment on attachment 322777 [details] [PATCH] Proposed Fix View in context: https://bugs.webkit.org/attachment.cgi?id=322777&action=review r=me, with (optional) nits. > Source/WebInspectorUI/UserInterface/Views/Table.js:897 > + if (this._cachedScrollTop) { Might as well use scrollTop from above, since scrollableOffsetHeight is used. > Source/WebInspectorUI/UserInterface/Views/Table.js:901 > + if (this._cachedScrollTop > maximumScrollTop) { Ditto. > Source/WebInspectorUI/UserInterface/Views/Table.js:950 > + // of rows can fit on screen. Reset the scroll top. Should this say "Reset the scroll top to zero", so that it's obvious that we didn't mean to set it to NaN?
Joseph Pecoraro
Comment 4 2017-10-04 23:06:38 PDT
Created attachment 322787 [details] [PATCH] For Landing
WebKit Commit Bot
Comment 5 2017-10-04 23:33:59 PDT
Comment on attachment 322787 [details] [PATCH] For Landing Clearing flags on attachment: 322787 Committed r222899: <http://trac.webkit.org/changeset/222899>
Note You need to log in before you can comment on or make changes to this bug.