Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(361)

Issue 2800573002: DevTools: editing property values should wrap object literals similar to console (Closed)

Created:
3 years, 8 months ago by luoe
Modified:
3 years, 8 months ago
Reviewers:
kozy, lushnikov
CC:
chromium-reviews, caseq+blink_chromium.org, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, apavlov+blink_chromium.org, devtools-reviews_chromium.org, blink-reviews, pfeldman, kozyatinskiy+blink_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

DevTools: editing property values should wrap object literals similar to console When editing a property value in an ObjPropSection (double click the value), we should be wrapping object literals the same way that console does: '{}' becomes '({})'. BUG=616611 Review-Url: https://codereview.chromium.org/2800573002 Cr-Commit-Position: refs/heads/master@{#466077} Committed: https://chromium.googlesource.com/chromium/src/+/f4ecb9e37e9e2d59e32b8b96f23ac4a1e33b9552

Patch Set 1 #

Total comments: 2

Messages

Total messages: 13 (6 generated)
luoe
Moving a common utility used in the console so that ObjectPropertiesSection can use it. I ...
3 years, 8 months ago (2017-04-05 01:17:17 UTC) #3
lushnikov
https://codereview.chromium.org/2800573002/diff/1/third_party/WebKit/Source/devtools/front_end/object_ui/ObjectPropertiesSection.js File third_party/WebKit/Source/devtools/front_end/object_ui/ObjectPropertiesSection.js (right): https://codereview.chromium.org/2800573002/diff/1/third_party/WebKit/Source/devtools/front_end/object_ui/ObjectPropertiesSection.js#newcode891 third_party/WebKit/Source/devtools/front_end/object_ui/ObjectPropertiesSection.js:891: expression = SDK.RuntimeModel.wrapObjectLiteralExpressionIfNeeded(expression.trim()); why can't we always surround with ...
3 years, 8 months ago (2017-04-08 00:11:09 UTC) #5
lushnikov
code looks good, though I'm not sure that RuntimeModel is the best place for the ...
3 years, 8 months ago (2017-04-11 23:58:14 UTC) #6
kozy
It looks like utils method but we don't have utils file for sdk module, so ...
3 years, 8 months ago (2017-04-20 00:17:20 UTC) #7
lushnikov
lgtm
3 years, 8 months ago (2017-04-20 03:02:43 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2800573002/1
3 years, 8 months ago (2017-04-20 16:47:08 UTC) #10
commit-bot: I haz the power
3 years, 8 months ago (2017-04-20 18:22:05 UTC) #13
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/f4ecb9e37e9e2d59e32b8b96f23a...

Powered by Google App Engine
This is Rietveld 408576698