<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&#64;lists.webkit.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>bburg&#64;apple.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>bburg&#64;apple.com, joepeck&#64;webkit.org, mattbaker&#64;apple.com, nvasilyev&#64;apple.com, timothy&#64;apple.com, webkit-bug-importer&#64;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 &quot;Copy Selected&quot; ([a] &lt;-- copied text)
4. Expand the console message
5. Right-click and &quot;Copy Selected&quot; ([b] &lt;-- copied text)
=&gt; [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 {&quot;rendering-frame-timeline-record-script&quot; =&gt; 0.000051897979574278, &quot;rendering-frame-timeline-record-layout&quot; =&gt; 0, &quot;rendering-frame-timeline-record-paint&quot; =&gt; 0, &quot;rendering-frame-timeline-record-other&quot; =&gt; 0.00010197202209383249}Map (4)_endTime: 51.396495502005564_frameIndex: 1078_listeners: null_parent: null_sourceCodeLocation: null_startTime: 51.396341632003896_type: &quot;timeline-record-type-rendering-frame&quot;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 {&quot;rendering-frame-timeline-record-script&quot; =&gt; 0.000051897979574278, &quot;rendering-frame-timeline-record-layout&quot; =&gt; 0, &quot;rendering-frame-timeline-record-paint&quot; =&gt; 0, &quot;rendering-frame-timeline-record-other&quot; =&gt; 0.00010197202209383249} (4)

_endTime: 51.396495502005564

_frameIndex: 1078

_listeners: null

_parent: null

_sourceCodeLocation: null

_startTime: 51.396341632003896

_type: &quot;timeline-record-type-rendering-frame&quot;

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>