WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
194108
Web Inspector: Timeline time range selection sometimes shows 0.000, should be just 0
https://bugs.webkit.org/show_bug.cgi?id=194108
Summary
Web Inspector: Timeline time range selection sometimes shows 0.000, should be...
Joseph Pecoraro
Reported
2019-01-31 13:34:23 PST
Timeline time range selection sometimes shows 0.000, should be just 0 See attached photo. Steps to Reproduce: 1. Inspect this page 2. Reload with a timeline 3. Make a timeline range selection 4. Drag the selection range (by the handle at the top) left and right a bunch => Ends up on the left with 0.000 Notes: • Value is super small (0.000000000007) due to floating point precision
Attachments
[IMAGE] Issue
(482.32 KB, image/png)
2019-01-31 13:38 PST
,
Joseph Pecoraro
no flags
Details
[PATCH] Proposed Fix
(5.54 KB, patch)
2019-01-31 14:08 PST
,
Joseph Pecoraro
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2019-01-31 13:37:17 PST
<
rdar://problem/47714273
>
Joseph Pecoraro
Comment 2
2019-01-31 13:38:30 PST
Created
attachment 360766
[details]
[IMAGE] Issue
Joseph Pecoraro
Comment 3
2019-01-31 14:08:04 PST
Created
attachment 360775
[details]
[PATCH] Proposed Fix
Devin Rousso
Comment 4
2019-01-31 14:12:03 PST
Comment on
attachment 360775
[details]
[PATCH] Proposed Fix View in context:
https://bugs.webkit.org/attachment.cgi?id=360775&action=review
rs=me
> Source/WebInspectorUI/UserInterface/Base/Utilities.js:1159 > const epsilon = 0.0001;
I get that we're using `0.0001` because it's a decimal point away from 1/1000, but should we try using `Number.EPSILON` instead?
Joseph Pecoraro
Comment 5
2019-01-31 14:59:52 PST
(In reply to Devin Rousso from
comment #4
)
> Comment on
attachment 360775
[details]
> [PATCH] Proposed Fix > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=360775&action=review
> > rs=me > > > Source/WebInspectorUI/UserInterface/Base/Utilities.js:1159 > > const epsilon = 0.0001; > > I get that we're using `0.0001` because it's a decimal point away from > 1/1000, but should we try using `Number.EPSILON` instead?
Yeah, that would probably be good. Lets switch to that separately!
WebKit Commit Bot
Comment 6
2019-01-31 15:26:34 PST
Comment on
attachment 360775
[details]
[PATCH] Proposed Fix Clearing flags on attachment: 360775 Committed
r240824
: <
https://trac.webkit.org/changeset/240824
>
WebKit Commit Bot
Comment 7
2019-01-31 15:26:35 PST
All reviewed patches have been landed. Closing bug.
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