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

Issue 2596133002: Reland of DevTools: merge array formatting logic (Closed)

Created:
4 years ago by luoe
Modified:
3 years, 11 months ago
Reviewers:
dgozman, 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/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Reland of DevTools: merge array formatting logic This CL makes array formatting consistent. ConsoleViewMessage lets RemoteObjectPreviewFormatter checks for arrays and handle them, showing gaps ('undefined x n') only when the preview is guaranteed to hold all render-able properties. The original version of this CL was reverted: https://codereview.chromium.org/2566443004/ BUG=666882 Committed: https://crrev.com/05dd76a462c939c4dcdcce29cf29f10943ace9f9 Cr-Commit-Position: refs/heads/master@{#441212}

Patch Set 1 #

Patch Set 2 : update #

Patch Set 3 : add test #

Patch Set 4 : remove elementsadded #

Total comments: 4

Patch Set 5 : test #

Patch Set 6 : test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+183 lines, -173 lines) Patch
M third_party/WebKit/LayoutTests/inspector/console/console-format.html View 1 2 1 chunk +4 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/inspector/console/console-format-array-prototype-expected.txt View 1 1 chunk +9 lines, -9 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/console/console-format-collections-expected.txt View 1 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/console/console-format-expected.txt View 1 2 4 chunks +25 lines, -4 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/console/console-log-object-with-getter-expected.txt View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/inspector/console/console-object-preview.html View 1 2 3 4 5 1 chunk +14 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/console/console-object-preview-expected.txt View 1 2 3 4 5 3 chunks +57 lines, -45 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/console/console-save-to-temp-var-expected.txt View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/inspector/console/console-tainted-globals-expected.txt View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/debugger-inline-values-expected.txt View 1 5 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/debugger-save-to-temp-var-expected.txt View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/components/RemoteObjectPreviewFormatter.js View 1 2 3 4 chunks +62 lines, -26 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/console/ConsoleViewMessage.js View 1 2 chunks +1 line, -77 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 22 (14 generated)
luoe
The differences between this CL and the reverted one are: - Original CL: eval'ing a ...
4 years ago (2016-12-22 18:55:31 UTC) #6
dgozman
https://codereview.chromium.org/2596133002/diff/60001/third_party/WebKit/Source/devtools/front_end/console/ConsoleViewMessage.js File third_party/WebKit/Source/devtools/front_end/console/ConsoleViewMessage.js (left): https://codereview.chromium.org/2596133002/diff/60001/third_party/WebKit/Source/devtools/front_end/console/ConsoleViewMessage.js#oldcode631 third_party/WebKit/Source/devtools/front_end/console/ConsoleViewMessage.js:631: array.getAllProperties(false, printArrayResult.bind(this)); Let's investigate how to trigger this, because ...
3 years, 12 months ago (2016-12-28 00:40:37 UTC) #7
luoe
https://codereview.chromium.org/2596133002/diff/60001/third_party/WebKit/Source/devtools/front_end/console/ConsoleViewMessage.js File third_party/WebKit/Source/devtools/front_end/console/ConsoleViewMessage.js (left): https://codereview.chromium.org/2596133002/diff/60001/third_party/WebKit/Source/devtools/front_end/console/ConsoleViewMessage.js#oldcode631 third_party/WebKit/Source/devtools/front_end/console/ConsoleViewMessage.js:631: array.getAllProperties(false, printArrayResult.bind(this)); It turns out that this does get ...
3 years, 11 months ago (2016-12-28 22:21:56 UTC) #8
dgozman
lgtm https://codereview.chromium.org/2596133002/diff/60001/third_party/WebKit/LayoutTests/inspector/console/console-object-preview-expected.txt File third_party/WebKit/LayoutTests/inspector/console/console-object-preview-expected.txt (right): https://codereview.chromium.org/2596133002/diff/60001/third_party/WebKit/LayoutTests/inspector/console/console-object-preview-expected.txt#newcode45 third_party/WebKit/LayoutTests/inspector/console/console-object-preview-expected.txt:45: console-object-preview.html:45 [undefined × 50, 50, undefined × 99] ...
3 years, 11 months ago (2017-01-03 18:38:49 UTC) #9
luoe
https://codereview.chromium.org/2596133002/diff/60001/third_party/WebKit/LayoutTests/inspector/console/console-object-preview-expected.txt File third_party/WebKit/LayoutTests/inspector/console/console-object-preview-expected.txt (right): https://codereview.chromium.org/2596133002/diff/60001/third_party/WebKit/LayoutTests/inspector/console/console-object-preview-expected.txt#newcode45 third_party/WebKit/LayoutTests/inspector/console/console-object-preview-expected.txt:45: console-object-preview.html:45 [undefined × 50, 50, undefined × 99] console-message ...
3 years, 11 months ago (2017-01-03 19:24:36 UTC) #10
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/2596133002/100001
3 years, 11 months ago (2017-01-03 21:28:55 UTC) #17
commit-bot: I haz the power
Committed patchset #6 (id:100001)
3 years, 11 months ago (2017-01-03 21:34:04 UTC) #20
commit-bot: I haz the power
3 years, 11 months ago (2017-01-03 21:36:59 UTC) #22
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/05dd76a462c939c4dcdcce29cf29f10943ace9f9
Cr-Commit-Position: refs/heads/master@{#441212}

Powered by Google App Engine
This is Rietveld 408576698