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

Issue 2586623002: Revert of DevTools: merge array formatting logic (Closed)

Created:
4 years ago by luoe
Modified:
4 years ago
Reviewers:
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

Revert of DevTools: merge array formatting logic (patchset #7 id:120001 of https://codereview.chromium.org/2566443004/ ) Reason for revert: Console previews for arrays have been compromised. When logging an array with 100+ non-empty properties, the overflow properties (after the first 100 in the preview) show up as 'undefined x N' when they are not undefined. Repro case: var b = new Array(200); b.fill(2); console.log(b); crbug.com/675259 Original issue's description: > DevTools: merge array formatting logic > > This CL makes array formatting consistent and prepares > RemoteObjectPreviewFormatter (ROPF) to introduce character cutoff logic. > Today, array formatting is split between two files. The logic in > ConsoleViewMessage has been folded into ROPF.js with all arrays showing gaps > with 'undefined x n' as much as possible then falling back to 'key: value'. > > For background on character cutoff logic, see C1 in the console preview doc. > > BUG=666882 > > Committed: https://crrev.com/50c41a1483a808a3394581c717a18cf00773877e > Cr-Commit-Position: refs/heads/master@{#438294} TBR=lushnikov@chromium.org # Not skipping CQ checks because original CL landed more than 1 days ago. BUG=675259 Committed: https://crrev.com/631b841680800d7ea174cc898a4f0c5884111b91 Cr-Commit-Position: refs/heads/master@{#439286}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+119 lines, -89 lines) Patch
M third_party/WebKit/LayoutTests/inspector/console/console-format-array-prototype-expected.txt View 1 chunk +10 lines, -10 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/console/console-format-collections-expected.txt View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/console/console-format-expected.txt View 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/console/console-log-object-with-getter-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/inspector/console/console-object-preview-expected.txt View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/console/console-save-to-temp-var-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/inspector/console/console-tainted-globals-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/debugger-inline-values-expected.txt View 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 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/components/RemoteObjectPreviewFormatter.js View 4 chunks +27 lines, -55 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/console/ConsoleViewMessage.js View 1 chunk +65 lines, -7 lines 0 comments Download

Messages

Total messages: 18 (11 generated)
luoe
Created Revert of DevTools: merge array formatting logic
4 years ago (2016-12-16 23:27:16 UTC) #2
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/2586623002/1
4 years ago (2016-12-16 23:27:58 UTC) #3
commit-bot: I haz the power
No L-G-T-M from a valid reviewer yet. CQ run can only be started by full ...
4 years ago (2016-12-16 23:28:00 UTC) #5
lushnikov
lgtm
4 years ago (2016-12-16 23:29:51 UTC) #9
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/2586623002/1
4 years ago (2016-12-17 01:07:12 UTC) #13
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years ago (2016-12-17 02:19:01 UTC) #16
commit-bot: I haz the power
4 years ago (2016-12-17 02:22:34 UTC) #18
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/631b841680800d7ea174cc898a4f0c5884111b91
Cr-Commit-Position: refs/heads/master@{#439286}

Powered by Google App Engine
This is Rietveld 408576698