Bug 119347 - Web Inspector: Copying JS object output from console shouldn't include trailing '= $n'
Summary: Web Inspector: Copying JS object output from console shouldn't include traili...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords: EasyFix, GoodFirstBug, InRadar
Depends on:
Blocks:
 
Reported: 2013-07-31 12:11 PDT by Joseph Pecoraro
Modified: 2016-01-11 17:34 PST (History)
5 users (show)

See Also:


Attachments
Patch (1.66 KB, patch)
2016-01-11 07:27 PST, Johan K. Jensen
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Joseph Pecoraro 2013-07-31 12:11:36 PDT
* STEPS TO REPRODUCE:
1. js> ({"one":1, "two":2})
2. Copy the resulting output row
3. Paste it somewhere

* ACTUAL: (not expanded)
Object

* ACTUAL: (if expanded)
Object
one: 1
two: 2
__proto__: Object

* EXPECTED:
{"one":1, "two":2}
Comment 1 Radar WebKit Bug Importer 2013-07-31 12:11:52 PDT
<rdar://problem/14608240>
Comment 2 Antoine Quint 2013-08-01 00:07:30 PDT
We could look at the properties on the logged objects and see if it is all basic types and log it as expected here.
Comment 3 BJ Burg 2015-11-20 13:49:30 PST
The behavior you described doesn't exist, but I found a similar bug. Retitling.
Comment 4 Johan K. Jensen 2016-01-11 07:27:06 PST
Created attachment 268687 [details]
Patch
Comment 5 Joseph Pecoraro 2016-01-11 10:44:50 PST
Comment on attachment 268687 [details]
Patch

r=me
Comment 6 WebKit Commit Bot 2016-01-11 17:34:50 PST
Comment on attachment 268687 [details]
Patch

Clearing flags on attachment: 268687

Committed r194877: <http://trac.webkit.org/changeset/194877>
Comment 7 WebKit Commit Bot 2016-01-11 17:34:53 PST
All reviewed patches have been landed.  Closing bug.