Bug 118929
| Summary: | Web Inspector: strings logged to the console cannot be directly copied and pasted into the console as displayed | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | James Savage <james_savage337> |
| Component: | Web Inspector | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED CONFIGURATION CHANGED | ||
| Severity: | Enhancement | CC: | bfulgham, inspector-bugzilla-changes, webkit-bug-importer |
| Priority: | P3 | Keywords: | InRadar |
| Version: | 528+ (Nightly build) | ||
| Hardware: | All | ||
| OS: | All | ||
James Savage
Overview:
Evaluating an expression in the web inspector console such as `JSON.stringify({foo:'bar'})`will produce a text result of `"{"foo":"bar"}"`, which if copied and pasted back into the console is a syntax error. It would be useful if we escape inner quote marks, or in some way format this, such that what is displayed is a valid javascript expression.
Steps to reproduce:
Evaluate an expression such as `JSON.stringify({foo:'bar'})`
Expected result:
Console result which is a valid JavaScript expression, such as `"{\"foo\":\"bar\"}"`.
Actual result:
The contents of the result string, wrapped in double quotes, but without inner quotes escaped.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/14499707>