WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
156761
Web Inspector: Show in progress message in Timeline views that do not show data until the recording finishes
https://bugs.webkit.org/show_bug.cgi?id=156761
Summary
Web Inspector: Show in progress message in Timeline views that do not show da...
Joseph Pecoraro
Reported
2016-04-19 15:18:42 PDT
* SUMMARY Show in progress message in Timeline views that do not show data until the recording finishes. The JavaScript & Events timeline does not show data until the recording finishes. Currently during a recording the view is just blank. It should show a message saying that it will be populated when the recording finishes.
Attachments
[Video] New UI
(258.83 KB, video/mp4)
2016-05-08 15:18 PDT
,
Matt Baker
no flags
Details
[Patch] Proposed Fix
(16.05 KB, patch)
2016-05-08 15:40 PDT
,
Matt Baker
no flags
Details
Formatted Diff
Diff
[Video] New UI 2
(186.27 KB, video/mp4)
2016-05-08 23:52 PDT
,
Matt Baker
no flags
Details
[Patch] Proposed Fix
(16.03 KB, patch)
2016-05-08 23:59 PDT
,
Matt Baker
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2016-04-27 17:56:10 PDT
<
rdar://problem/25970771
>
Timothy Hatcher
Comment 2
2016-05-02 10:13:14 PDT
<
rdar://problem/25814637
>
Matt Baker
Comment 3
2016-05-08 15:18:02 PDT
Created
attachment 278376
[details]
[Video] New UI
Matt Baker
Comment 4
2016-05-08 15:40:08 PDT
Created
attachment 278378
[details]
[Patch] Proposed Fix
Timothy Hatcher
Comment 5
2016-05-08 17:51:17 PDT
Comment on
attachment 278378
[details]
[Patch] Proposed Fix View in context:
https://bugs.webkit.org/attachment.cgi?id=278378&action=review
Why did the video not show any data in the DataGrid after you stopped the recording?
> Source/WebInspectorUI/UserInterface/Views/TimelineRecordingProgressView.js:39 > + // For ButtonToolbarItem to be styled correctly, its parent must have the "toolbar" class. > + let fakeToolbarElement = document.createElement("div"); > + fakeToolbarElement.classList.add("toolbar");
We should just copy the relevant styles to a TimelineRecordingProgressView.css or some shared place without the toolbar classes. This is fragile.
> Source/WebInspectorUI/UserInterface/Views/TimelineRecordingProgressView.js:40 > + fakeToolbarElement.append(this._stopRecordingButton.element);
I think the stop button should be visually last (at the bottom).
> Source/WebInspectorUI/UserInterface/Views/TimelineRecordingProgressView.js:70 > + shown()
This should be show(), it is an action not a notification. This could be fixed by putting visible state into View, I think we have a bug for that. Maybe add a FIXME.
> Source/WebInspectorUI/UserInterface/Views/TimelineRecordingProgressView.js:81 > + hidden()
Ditto, hide().
> Source/WebInspectorUI/UserInterface/Views/TimelineRecordingProgressView.js:97 > + this._statusMessageElement.textContent = WebInspector.UIString("Recording Timeline Data: %s").format(Number.secondsToString(this._recordingDuration));
I don't feel strongly that we should show the time here. It is apparent in top ruler. I think the label, spinner and stop button is enough. Then you wouldn't need to call this update method in set recordingDuration.
> Source/WebInspectorUI/UserInterface/Views/TimelineView.js:50 > + get showsLiveRecordingData() > + { > + // Implemented by sub-classes if needed. > + return false; > + }
LayoutTimelineView, NetworkTimelineView both support live recording data. They should return true. Maybe the default should flip?
Matt Baker
Comment 6
2016-05-08 18:27:30 PDT
Comment on
attachment 278378
[details]
[Patch] Proposed Fix View in context:
https://bugs.webkit.org/attachment.cgi?id=278378&action=review
>> Source/WebInspectorUI/UserInterface/Views/TimelineRecordingProgressView.js:40 >> + fakeToolbarElement.append(this._stopRecordingButton.element); > > I think the stop button should be visually last (at the bottom).
I'll try it out.
>> Source/WebInspectorUI/UserInterface/Views/TimelineRecordingProgressView.js:70 >> + shown() > > This should be show(), it is an action not a notification. This could be fixed by putting visible state into View, I think we have a bug for that. Maybe add a FIXME.
I agree, but intentionally chose the naming to be consistent with our code base. Going forward it should be View.show and View.hide. Will add a FIXME.
Timothy Hatcher
Comment 7
2016-05-08 19:07:01 PDT
Comment on
attachment 278378
[details]
[Patch] Proposed Fix View in context:
https://bugs.webkit.org/attachment.cgi?id=278378&action=review
>>> Source/WebInspectorUI/UserInterface/Views/TimelineRecordingProgressView.js:70 >>> + shown() >> >> This should be show(), it is an action not a notification. This could be fixed by putting visible state into View, I think we have a bug for that. Maybe add a FIXME. > > I agree, but intentionally chose the naming to be consistent with our code base. Going forward it should be View.show and View.hide. Will add a FIXME.
Calling shown() or hidden() on a ContentView does not show/hide them. They are notification methods for subclasses to do work when they do get shown or hidden. A visible setter is more inline with ContentView and SidebarPanel.
Matt Baker
Comment 8
2016-05-08 23:52:03 PDT
Created
attachment 278388
[details]
[Video] New UI 2 Removed duration, moved button below status message
Matt Baker
Comment 9
2016-05-08 23:59:34 PDT
Created
attachment 278389
[details]
[Patch] Proposed Fix
Timothy Hatcher
Comment 10
2016-05-09 07:30:06 PDT
Comment on
attachment 278389
[details]
[Patch] Proposed Fix Nice.
WebKit Commit Bot
Comment 11
2016-05-09 07:51:33 PDT
Comment on
attachment 278389
[details]
[Patch] Proposed Fix Clearing flags on attachment: 278389 Committed
r200573
: <
http://trac.webkit.org/changeset/200573
>
WebKit Commit Bot
Comment 12
2016-05-09 07:51:38 PDT
All reviewed patches have been landed. Closing bug.
Joseph Pecoraro
Comment 13
2016-05-09 11:14:27 PDT
Whoa, the videos for this look awesome! What happens when you start/stop a recording multiple times. Whenever we are recording does it swap out to this view?
Matt Baker
Comment 14
2016-05-09 12:16:53 PDT
(In reply to
comment #13
)
> Whoa, the videos for this look awesome! > > What happens when you start/stop a recording multiple times. Whenever we are > recording does it swap out to this view?
Yep.
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