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

Issue 553983007: Blink-in-JS: Allow a stackoverflow error thrown by private scripts (Closed)

Created:
6 years, 3 months ago by haraken
Modified:
6 years, 3 months ago
CC:
abarth-chromium, arv+blink, blink-reviews, blink-reviews-bindings_chromium.org, Inactive
Project:
blink
Visibility:
Public.

Description

Blink-in-JS: Allow a stackoverflow error thrown by private scripts Currently standard JS errors thrown by private scripts are treated as real errors of the private scripts and crash the renderer. However, we need to special-case a stackoverflow error because user's script can create code that causes a stackoverflow error in private scripts. BUG=412143 TEST=fast/dom/private_script_unittest.html Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=181603

Patch Set 1 #

Total comments: 3

Patch Set 2 : #

Total comments: 2

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -0 lines) Patch
M LayoutTests/fast/dom/private_script_unittest.html View 3 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/fast/dom/private_script_unittest-expected.txt View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M Source/bindings/core/v8/PrivateScriptRunner.cpp View 1 chunk +10 lines, -0 lines 0 comments Download
M Source/core/testing/PrivateScriptTest.idl View 3 4 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/testing/PrivateScriptTest.js View 1 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (2 generated)
haraken
PTAL
6 years, 3 months ago (2014-09-09 01:57:14 UTC) #2
vivekg
https://codereview.chromium.org/553983007/diff/1/Source/core/testing/PrivateScriptTest.js File Source/core/testing/PrivateScriptTest.js (right): https://codereview.chromium.org/553983007/diff/1/Source/core/testing/PrivateScriptTest.js#newcode146 Source/core/testing/PrivateScriptTest.js:146: PrivateScriptTestPrototype.voidMethodThrowsReferenceError = function() { voidMethodThrowsStackOverflowError ??
6 years, 3 months ago (2014-09-09 02:04:04 UTC) #3
vivekg
https://codereview.chromium.org/553983007/diff/1/LayoutTests/fast/dom/private_script_unittest.html File LayoutTests/fast/dom/private_script_unittest.html (right): https://codereview.chromium.org/553983007/diff/1/LayoutTests/fast/dom/private_script_unittest.html#newcode73 LayoutTests/fast/dom/private_script_unittest.html:73: shouldThrow('privateScriptTest.voidMethodThrowsStackOverflowError()'); This might be throwing method not found error ...
6 years, 3 months ago (2014-09-09 02:06:47 UTC) #4
haraken
https://codereview.chromium.org/553983007/diff/1/LayoutTests/fast/dom/private_script_unittest.html File LayoutTests/fast/dom/private_script_unittest.html (right): https://codereview.chromium.org/553983007/diff/1/LayoutTests/fast/dom/private_script_unittest.html#newcode73 LayoutTests/fast/dom/private_script_unittest.html:73: shouldThrow('privateScriptTest.voidMethodThrowsStackOverflowError()'); On 2014/09/09 02:06:47, vivekg_ wrote: > This might ...
6 years, 3 months ago (2014-09-09 02:10:04 UTC) #5
vivekg
https://codereview.chromium.org/553983007/diff/20001/LayoutTests/fast/dom/private_script_unittest-expected.txt File LayoutTests/fast/dom/private_script_unittest-expected.txt (right): https://codereview.chromium.org/553983007/diff/20001/LayoutTests/fast/dom/private_script_unittest-expected.txt#newcode39 LayoutTests/fast/dom/private_script_unittest-expected.txt:39: PASS privateScriptTest.voidMethodThrowsStackOverflowError() threw exception TypeError: undefined is not a ...
6 years, 3 months ago (2014-09-09 02:11:35 UTC) #6
vivekg
https://codereview.chromium.org/553983007/diff/20001/Source/bindings/core/v8/PrivateScriptRunner.cpp File Source/bindings/core/v8/PrivateScriptRunner.cpp (right): https://codereview.chromium.org/553983007/diff/20001/Source/bindings/core/v8/PrivateScriptRunner.cpp#newcode257 Source/bindings/core/v8/PrivateScriptRunner.cpp:257: // Standard JS errors thrown by a private script ...
6 years, 3 months ago (2014-09-09 02:28:36 UTC) #7
haraken
Sorry about a lot of confusions. Updated the CL. PTAL. > thrown by a private ...
6 years, 3 months ago (2014-09-09 03:29:45 UTC) #8
vivekg
Also found this case here which probably also should be addressed. https://code.google.com/p/chromium/codesearch#chromium/src/v8/ChangeLog&l=1235
6 years, 3 months ago (2014-09-09 03:34:07 UTC) #9
vivekg
lgtm
6 years, 3 months ago (2014-09-09 03:41:14 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haraken@chromium.org/553983007/80001
6 years, 3 months ago (2014-09-09 03:50:51 UTC) #12
commit-bot: I haz the power
Committed patchset #5 (id:80001) as 181603
6 years, 3 months ago (2014-09-09 04:56:20 UTC) #13
Jens Widell
6 years, 3 months ago (2014-09-09 05:12:21 UTC) #14
Message was sent while issue was closed.
LGTM

Powered by Google App Engine
This is Rietveld 408576698