<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - Web Inspector: copied text from console.assert message has bad formatting when console message is collapsed"
href="https://bugs.webkit.org/show_bug.cgi?id=161446">161446</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Web Inspector: copied text from console.assert message has bad formatting when console message is collapsed
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr>
<tr>
<th>Product</th>
<td>WebKit
</td>
</tr>
<tr>
<th>Version</th>
<td>WebKit Nightly Build
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>Normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P2
</td>
</tr>
<tr>
<th>Component</th>
<td>Web Inspector
</td>
</tr>
<tr>
<th>Assignee</th>
<td>webkit-unassigned@lists.webkit.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>bburg@apple.com
</td>
</tr>
<tr>
<th>CC</th>
<td>bburg@apple.com, joepeck@webkit.org, mattbaker@apple.com, nvasilyev@apple.com, timothy@apple.com, webkit-bug-importer@group.apple.com
</td>
</tr></table>
<p>
<div>
<pre>(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)</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>