Changeset 207473 in webkit


Ignore:
Timestamp:
Oct 18, 2016 11:08:16 AM (8 years ago)
Author:
commit-queue@webkit.org
Message:

REGRESSION(r201171): Web Inspector: Timeline Recording playhead should always start immediately, not wait until first event
https://bugs.webkit.org/show_bug.cgi?id=163583
<rdar://problem/28815882>

Patch by Joseph Pecoraro <Joseph Pecoraro> on 2016-10-18
Reviewed by Timothy Hatcher.

  • UserInterface/Views/TimelineRecordingContentView.js:

(WebInspector.TimelineRecordingContentView.prototype._startUpdatingCurrentTime):
Revert logic change introduced by r201171 with no explanation.
Whenever we get a start time we should use it, regardless of
of what the current time is, precisely because the backend is
informing us of the start time to use.

Location:
trunk/Source/WebInspectorUI
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r207444 r207473  
     12016-10-18  Joseph Pecoraro  <pecoraro@apple.com>
     2
     3        REGRESSION(r201171): Web Inspector: Timeline Recording playhead should always start immediately, not wait until first event
     4        https://bugs.webkit.org/show_bug.cgi?id=163583
     5        <rdar://problem/28815882>
     6
     7        Reviewed by Timothy Hatcher.
     8
     9        * UserInterface/Views/TimelineRecordingContentView.js:
     10        (WebInspector.TimelineRecordingContentView.prototype._startUpdatingCurrentTime):
     11        Revert logic change introduced by r201171 with no explanation.
     12        Whenever we get a start time we should use it, regardless of
     13        of what the current time is, precisely because the backend is
     14        informing us of the start time to use.
     15
    1162016-10-17  Joseph Pecoraro  <pecoraro@apple.com>
    217
  • trunk/Source/WebInspectorUI/UserInterface/Views/TimelineRecordingContentView.js

    r205425 r207473  
    440440            return;
    441441
    442         if (typeof startTime === "number" && !isNaN(this._currentTime))
     442        if (typeof startTime === "number")
    443443            this._currentTime = startTime;
    444         else {
     444        else if (!isNaN(this._currentTime)) {
    445445            // This happens when you stop and later restart recording.
    446446            // COMPATIBILITY (iOS 9): Timeline.recordingStarted events did not include a timestamp.
Note: See TracChangeset for help on using the changeset viewer.