Bug 127314

Summary: Web Inspector: Add the recording button back to the Timelines sidebar
Product: WebKit Reporter: Timothy Hatcher <timothy>
Component: Web InspectorAssignee: Timothy Hatcher <timothy>
Status: RESOLVED FIXED    
Severity: Normal CC: graouts, joepeck, timothy, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
Patch joepeck: review+, timothy: commit-queue-

Description Timothy Hatcher 2014-01-20 15:01:46 PST
Add the recording button back and a clear button.
Comment 1 Radar WebKit Bug Importer 2014-01-20 15:02:10 PST
<rdar://problem/15863684>
Comment 2 Timothy Hatcher 2014-01-20 15:37:37 PST
Created attachment 221699 [details]
Patch
Comment 3 Joseph Pecoraro 2014-01-20 15:55:48 PST
Comment on attachment 221699 [details]
Patch

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

r=me

> Source/WebInspectorUI/UserInterface/TimelineContentView.js:311
> +            // We have a current time alredy, so we likely need to jump into the future to a better current time.

Typo: alredy => already

> Source/WebInspectorUI/UserInterface/TimelineContentView.js:378
>      _recordingReset: function(event)
>      {
> -        this._startTimeNeedsReset = true;
>          this._currentTime = NaN;
>  
> +        if (!this._updating) {
> +            // Force the time ruler and views to reset to 0.
> +            this._startTimeNeedsReset = true;
> +            this._updateTimes(0, 0, 0);
> +        }
> +
> +        this._lastUpdateTimestamp = NaN;
> +        this._startTimeNeedsReset = true;

Should this also delete this._waitingToResetCurrentTime if it was waiting? Seeing as we just deleted currentTime.
Comment 4 Joseph Pecoraro 2014-01-20 15:57:02 PST
Does the main navigator forward/back buttons update as expected? This could ravage the back/forward list of views, just double check that still works as expected.
Comment 5 Timothy Hatcher 2014-01-20 19:05:59 PST
https://trac.webkit.org/changeset/162422