Bug 222921 - Web Inspector: REGRESSION (r267038): Inspector fails to show any details about animations/transitions in the timeline
Summary: Web Inspector: REGRESSION (r267038): Inspector fails to show any details abou...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Patrick Angle
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-03-08 11:01 PST by Patrick Angle
Modified: 2021-03-08 15:06 PST (History)
5 users (show)

See Also:


Attachments
Patch v1.0 (3.90 KB, patch)
2021-03-08 13:31 PST, Patrick Angle
no flags Details | Formatted Diff | Diff
Patch v1.1 - Review notes (3.89 KB, patch)
2021-03-08 14:04 PST, Patrick Angle
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Angle 2021-03-08 11:01:19 PST
<rdar://75104395>
Comment 1 Patrick Angle 2021-03-08 13:31:54 PST
Created attachment 422612 [details]
Patch v1.0
Comment 2 Devin Rousso 2021-03-08 13:42:03 PST
Comment on attachment 422612 [details]
Patch v1.0

View in context: https://bugs.webkit.org/attachment.cgi?id=422612&action=review

r=me

> Source/WebInspectorUI/ChangeLog:13
> +        The check for not being in the inactive state was particularlly problematic as it is quite common that a

"particularlly"

> Source/WebInspectorUI/UserInterface/Views/TimelineRecordingContentView.js:-875
> -            // Only update end time while not stopping, otherwise the interface contues scrolling.

So just to make sure, the "otherwise the interface contues scrolling" part is no longer the case, right?  When stopping we don't continue scrolling, yes?

> Source/WebInspectorUI/UserInterface/Views/TimelineRecordingContentView.js:-879
> -                // Only update current time while active/starting or else the interface continues scrolling.

ditto (:-875)

> Source/WebInspectorUI/UserInterface/Views/TimelineRecordingContentView.js:874
> +        timelineView.endTime = endTime;
> +        timelineView.currentTime = this._currentTime;

NIT: we normally set `startTime`, then `currentTime`, then `endTime` :P
Comment 3 Patrick Angle 2021-03-08 13:53:31 PST
Comment on attachment 422612 [details]
Patch v1.0

View in context: https://bugs.webkit.org/attachment.cgi?id=422612&action=review

>> Source/WebInspectorUI/UserInterface/Views/TimelineRecordingContentView.js:-875
>> -            // Only update end time while not stopping, otherwise the interface contues scrolling.
> 
> So just to make sure, the "otherwise the interface contues scrolling" part is no longer the case, right?  When stopping we don't continue scrolling, yes?

Correct. This patch doesn't change that behavior. We do still stop scrolling when you hit stop, and then make one final jump after all the data has come in if we needed to scroll a bit further to account for it (something that began before stopping, but finished after stopping). That logic happens above on (:481-490).

>> Source/WebInspectorUI/UserInterface/Views/TimelineRecordingContentView.js:874
>> +        timelineView.currentTime = this._currentTime;
> 
> NIT: we normally set `startTime`, then `currentTime`, then `endTime` :P

Whoops.
Comment 4 Patrick Angle 2021-03-08 14:04:24 PST
Created attachment 422616 [details]
Patch v1.1 - Review notes
Comment 5 EWS 2021-03-08 15:06:33 PST
Committed r274112: <https://commits.webkit.org/r274112>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 422616 [details].