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

Issue 388093002: DevTools: Do not crash or hang on console.log() (Closed)

Created:
6 years, 5 months ago by aandrey
Modified:
6 years, 5 months ago
Reviewers:
yurys
CC:
blink-reviews, caseq+blink_chromium.org, loislo+blink_chromium.org, eustas+blink_chromium.org, malch+blink_chromium.org, yurys+blink_chromium.org, lushnikov+blink_chromium.org, vsevik+blink_chromium.org, pfeldman+blink_chromium.org, paulirish+reviews_chromium.org, apavlov+blink_chromium.org, devtools-reviews_chromium.org, sergeyv+blink_chromium.org, aandrey+blink_chromium.org
Project:
blink
Visibility:
Public.

Description

DevTools: Do not crash or hang on console.log() Now we try to build a string representation of a V8 value without causing side effects. In 99% cases this will be the same result as before, but we won't crash or hang any more in 99% reported cases. The crash still possible if redefined, for example, function.toString(). Would have been ideal if V8 also exposed FunctionProtoToString, RegExpProtoToString and etc. We use V8's ObjectProtoToString on almost all Objects and mimic V8's ArrayToString on small arrays. For other types we call ToString. BUG=391475 R=yurys Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=178449

Patch Set 1 : #

Total comments: 4

Patch Set 2 : addressed #

Patch Set 3 : compile fix #

Messages

Total messages: 19 (0 generated)
aandrey
6 years, 5 months ago (2014-07-13 11:25:46 UTC) #1
yurys
lgtm https://codereview.chromium.org/388093002/diff/100001/LayoutTests/http/tests/inspector-enabled/console-clear-arguments-on-frame-remove-expected.txt File LayoutTests/http/tests/inspector-enabled/console-clear-arguments-on-frame-remove-expected.txt (right): https://codereview.chromium.org/388093002/diff/100001/LayoutTests/http/tests/inspector-enabled/console-clear-arguments-on-frame-remove-expected.txt#newcode3 LayoutTests/http/tests/inspector-enabled/console-clear-arguments-on-frame-remove-expected.txt:3: CONSOLE MESSAGE: line 4: [object global] It is ...
6 years, 5 months ago (2014-07-14 16:36:09 UTC) #2
aandrey
https://codereview.chromium.org/388093002/diff/100001/LayoutTests/http/tests/inspector-enabled/console-clear-arguments-on-frame-remove-expected.txt File LayoutTests/http/tests/inspector-enabled/console-clear-arguments-on-frame-remove-expected.txt (right): https://codereview.chromium.org/388093002/diff/100001/LayoutTests/http/tests/inspector-enabled/console-clear-arguments-on-frame-remove-expected.txt#newcode3 LayoutTests/http/tests/inspector-enabled/console-clear-arguments-on-frame-remove-expected.txt:3: CONSOLE MESSAGE: line 4: [object global] On 2014/07/14 16:36:09, ...
6 years, 5 months ago (2014-07-18 08:54:48 UTC) #3
aandrey
The CQ bit was checked by aandrey@chromium.org
6 years, 5 months ago (2014-07-18 08:55:35 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aandrey@chromium.org/388093002/120001
6 years, 5 months ago (2014-07-18 08:56:37 UTC) #5
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_blink_dbg on tryserver.blink ...
6 years, 5 months ago (2014-07-18 10:05:14 UTC) #6
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-18 10:44:08 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/linux_chromium_gn_rel/builds/4345)
6 years, 5 months ago (2014-07-18 10:44:09 UTC) #8
aandrey
The CQ bit was checked by aandrey@chromium.org
6 years, 5 months ago (2014-07-18 11:20:36 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aandrey@chromium.org/388093002/120001
6 years, 5 months ago (2014-07-18 11:21:37 UTC) #10
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_chromium_gn_rel on tryserver.blink ...
6 years, 5 months ago (2014-07-18 12:25:21 UTC) #11
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-18 13:09:21 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/linux_chromium_gn_rel/builds/4367)
6 years, 5 months ago (2014-07-18 13:09:22 UTC) #13
aandrey
The CQ bit was checked by aandrey@chromium.org
6 years, 5 months ago (2014-07-18 13:31:40 UTC) #14
aandrey
The CQ bit was unchecked by aandrey@chromium.org
6 years, 5 months ago (2014-07-18 13:31:51 UTC) #15
aandrey
The CQ bit was checked by aandrey@chromium.org
6 years, 5 months ago (2014-07-18 13:34:23 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aandrey@chromium.org/388093002/140001
6 years, 5 months ago (2014-07-18 13:35:25 UTC) #17
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_blink_rel on tryserver.blink ...
6 years, 5 months ago (2014-07-18 14:47:50 UTC) #18
commit-bot: I haz the power
6 years, 5 months ago (2014-07-18 15:26:55 UTC) #19
Message was sent while issue was closed.
Change committed as 178449

Powered by Google App Engine
This is Rietveld 408576698