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 InspectorAssignee: 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
Reported 2013-07-19 16:57:52 PDT
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
Radar WebKit Bug Importer
Comment 1 2013-07-19 16:58:16 PDT
Note You need to log in before you can comment on or make changes to this bug.