Bug 161446 - Web Inspector: copied text from console.assert message has bad formatting when console message is collapsed
Summary: Web Inspector: copied text from console.assert message has bad formatting whe...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2016-08-31 11:41 PDT by BJ Burg
Modified: 2016-12-13 15:36 PST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description BJ Burg 2016-08-31 11:41:19 PDT
(from 161445)

STEPS TO REPRODUCE:

1. Trigger a console.assert with an object passed as an argument. You can use repro steps from 161445 to get this in Inspector^2.
2. Select the console message
3. Right-click and "Copy Selected" ([a] <-- copied text)
4. Expand the console message
5. Right-click and "Copy Selected" ([b] <-- copied text)
=> [a] and [b] differ, a has poor object formatting

EXPECTED:

They should have the same formatting, or at least [a] should have better spacing between array elements / object properties and look more like JSON.


NOTES:

[a]

[Error] Assertion Failed: Selected record not within visible graph duration. – RenderingFrameTimelineRecord
RenderingFrameTimelineRecord__displayData: {frameDuration: 0.0010277777777777776, segments: Array, graphHeightSeconds: 0.037}Object_callFrames: null_children: [ScriptTimelineRecord]Array (1)_durationByTaskType: Map {"rendering-frame-timeline-record-script" => 0.000051897979574278, "rendering-frame-timeline-record-layout" => 0, "rendering-frame-timeline-record-paint" => 0, "rendering-frame-timeline-record-other" => 0.00010197202209383249}Map (4)_endTime: 51.396495502005564_frameIndex: 1078_listeners: null_parent: null_sourceCodeLocation: null_startTime: 51.396341632003896_type: "timeline-record-type-rendering-frame"Symbol(rendering-frame-overview-graph-record-was-filtered): falseRenderingFrameTimelineRecord Prototype
	_updateFrameMarker (RenderingFrameTimelineOverviewGraph.js:239)
	layout (RenderingFrameTimelineOverviewGraph.js:139)
	_layoutSubtree (View.js:250)
	_layoutSubtree (View.js:254)
	_layoutSubtree (View.js:254)
	_visitViewTreeForLayout (View.js:327)


[b]

[Error] Assertion Failed: Selected record not within visible graph duration.
RenderingFrameTimelineRecord

__displayData: {frameDuration: 0.0010277777777777776, segments: Array, graphHeightSeconds: 0.037}

_callFrames: null

_children: [ScriptTimelineRecord] (1)

_durationByTaskType: Map {"rendering-frame-timeline-record-script" => 0.000051897979574278, "rendering-frame-timeline-record-layout" => 0, "rendering-frame-timeline-record-paint" => 0, "rendering-frame-timeline-record-other" => 0.00010197202209383249} (4)

_endTime: 51.396495502005564

_frameIndex: 1078

_listeners: null

_parent: null

_sourceCodeLocation: null

_startTime: 51.396341632003896

_type: "timeline-record-type-rendering-frame"

Symbol(rendering-frame-overview-graph-record-was-filtered): false

RenderingFrameTimelineRecord Prototype
	_updateFrameMarker (RenderingFrameTimelineOverviewGraph.js:239)
	layout (RenderingFrameTimelineOverviewGraph.js:139)
	_layoutSubtree (View.js:250)
	_layoutSubtree (View.js:254)
	_layoutSubtree (View.js:254)
	_visitViewTreeForLayout (View.js:327)
Comment 1 Alexey Proskuryakov 2016-09-08 13:56:02 PDT
<rdar://problem/28213453>