WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
195318
Web Inspector: Attempting to select records in the bottom 16px of the timeline overview graph fails
https://bugs.webkit.org/show_bug.cgi?id=195318
Summary
Web Inspector: Attempting to select records in the bottom 16px of the timelin...
Joseph Pecoraro
Reported
2019-03-05 01:01:56 PST
Attempting to select records in the bottom 16px of the timeline overview graph fails Steps to Reproduce: 1. Record timeline with records 2. Attempt to click a record in the bottom 16 px of the overview graph when scrollbars are not showing => Click doesn't work
Attachments
[PATCH] Proposed Fix
(3.34 KB, patch)
2019-03-05 01:03 PST
,
Joseph Pecoraro
no flags
Details
Formatted Diff
Diff
Archive of layout-test-results from ews125 for ios-simulator-wk2
(3.15 MB, application/zip)
2019-03-05 03:10 PST
,
EWS Watchlist
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Joseph Pecoraro
Comment 1
2019-03-05 01:03:17 PST
Created
attachment 363617
[details]
[PATCH] Proposed Fix
Devin Rousso
Comment 2
2019-03-05 02:11:25 PST
Comment on
attachment 363617
[details]
[PATCH] Proposed Fix View in context:
https://bugs.webkit.org/attachment.cgi?id=363617&action=review
> Source/WebInspectorUI/UserInterface/Views/TimelineOverview.js:541 > + this.element.classList.toggle("has-scrollbar", this._scrollContainerElement.clientHeight <= 1);
Am I misreading this, or should we flip the `<=` to be a `>`? We only `has-scrollbar` when the height is `<= 1`? Wouldn't the scrollbar make the height larger, or am I thinking backwards?
EWS Watchlist
Comment 3
2019-03-05 03:10:05 PST
Comment on
attachment 363617
[details]
[PATCH] Proposed Fix
Attachment 363617
[details]
did not pass ios-sim-ews (ios-simulator-wk2): Output:
https://webkit-queues.webkit.org/results/11375615
New failing tests: fast/scrolling/ios/hit-testing-iframe-004.html fast/scrolling/ios/hit-testing-iframe-002.html fast/scrolling/ios/mixing-user-and-programmatic-scroll-006.html fast/scrolling/ios/hit-testing-iframe-003.html
EWS Watchlist
Comment 4
2019-03-05 03:10:07 PST
Created
attachment 363630
[details]
Archive of layout-test-results from ews125 for ios-simulator-wk2 The attached test failures were seen while running run-webkit-tests on the ios-sim-ews. Bot: ews125 Port: ios-simulator-wk2 Platform: Mac OS X 10.13.6
Joseph Pecoraro
Comment 5
2019-03-05 10:35:24 PST
(In reply to Devin Rousso from
comment #2
)
> Comment on
attachment 363617
[details]
> [PATCH] Proposed Fix > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=363617&action=review
> > > Source/WebInspectorUI/UserInterface/Views/TimelineOverview.js:541 > > + this.element.classList.toggle("has-scrollbar", this._scrollContainerElement.clientHeight <= 1); > > Am I misreading this, or should we flip the `<=` to be a `>`? We only > `has-scrollbar` when the height is `<= 1`? Wouldn't the scrollbar make the > height larger, or am I thinking backwards?
When there is no scrollbar the height is 16. When there is a scrollbar the height is 1. This was tested with overlay scrollbars always on.
Devin Rousso
Comment 6
2019-03-05 13:25:26 PST
Comment on
attachment 363617
[details]
[PATCH] Proposed Fix View in context:
https://bugs.webkit.org/attachment.cgi?id=363617&action=review
rs=me
>>> Source/WebInspectorUI/UserInterface/Views/TimelineOverview.js:541 >>> + this.element.classList.toggle("has-scrollbar", this._scrollContainerElement.clientHeight <= 1); >> >> Am I misreading this, or should we flip the `<=` to be a `>`? We only `has-scrollbar` when the height is `<= 1`? Wouldn't the scrollbar make the height larger, or am I thinking backwards? > > When there is no scrollbar the height is 16. > When there is a scrollbar the height is 1. > > This was tested with overlay scrollbars always on.
Rather than have this be repeated in multiple places, I'd rather you have a separate function (possibly in Utilities.js) that does this logic.
Joseph Pecoraro
Comment 7
2019-03-05 13:55:59 PST
(In reply to Devin Rousso from
comment #6
)
> Comment on
attachment 363617
[details]
> [PATCH] Proposed Fix > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=363617&action=review
> > rs=me > > >>> Source/WebInspectorUI/UserInterface/Views/TimelineOverview.js:541 > >>> + this.element.classList.toggle("has-scrollbar", this._scrollContainerElement.clientHeight <= 1); > >> > >> Am I misreading this, or should we flip the `<=` to be a `>`? We only `has-scrollbar` when the height is `<= 1`? Wouldn't the scrollbar make the height larger, or am I thinking backwards? > > > > When there is no scrollbar the height is 16. > > When there is a scrollbar the height is 1. > > > > This was tested with overlay scrollbars always on. > > Rather than have this be repeated in multiple places, I'd rather you have a > separate function (possibly in Utilities.js) that does this logic.
This is specific to this _scrollContainerElement. I'm not sure if it would work in other places.
WebKit Commit Bot
Comment 8
2019-03-05 14:01:03 PST
Comment on
attachment 363617
[details]
[PATCH] Proposed Fix Clearing flags on attachment: 363617 Committed
r242510
: <
https://trac.webkit.org/changeset/242510
>
WebKit Commit Bot
Comment 9
2019-03-05 14:01:04 PST
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 10
2019-03-05 14:02:45 PST
<
rdar://problem/48613407
>
Nikita Vasilyev
Comment 11
2019-03-06 14:30:15 PST
Comment on
attachment 363617
[details]
[PATCH] Proposed Fix View in context:
https://bugs.webkit.org/attachment.cgi?id=363617&action=review
>>>>> Source/WebInspectorUI/UserInterface/Views/TimelineOverview.js:541 >>>>> + this.element.classList.toggle("has-scrollbar", this._scrollContainerElement.clientHeight <= 1); >>>> >>>> Am I misreading this, or should we flip the `<=` to be a `>`? We only `has-scrollbar` when the height is `<= 1`? Wouldn't the scrollbar make the height larger, or am I thinking backwards? >>> >>> When there is no scrollbar the height is 16. >>> When there is a scrollbar the height is 1. >>> >>> This was tested with overlay scrollbars always on. >> >> Rather than have this be repeated in multiple places, I'd rather you have a separate function (possibly in Utilities.js) that does this logic. > > This is specific to this _scrollContainerElement. I'm not sure if it would work in other places.
If scrollbar height decreases in some future version of OS, this would break. How about: this.element.classList.toggle("has-scrollbar", this._scrollContainerElement.clientHeight < 16); Also, instead of hardcoding 16 and making sure it matches CSS, we could set it as an inline style in JS.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug