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

Issue 2209593002: Stop returning an empty handle from createWrapper() (Closed)

Created:
4 years, 4 months ago by haraken
Modified:
4 years, 1 month ago
Reviewers:
peria, Yuki
CC:
chromium-reviews, sof, eae+blinkwatch, blink-reviews-dom_chromium.org, dglazkov+blink, blink-reviews-bindings_chromium.org, blink-reviews, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Stop returning an empty handle from createWrapper() Function::NewInstance fails only under OOM or stack-overflow. Hence, we can just use ToLocalChecked(). I'll remove all IsEmpty checks from toV8() in a follow-up CL. BUG=625512 Committed: https://crrev.com/120fd684181b5730f243f87189d498ce5f0a1f8d Cr-Commit-Position: refs/heads/master@{#409760}

Patch Set 1 #

Patch Set 2 : temp #

Patch Set 3 : temp #

Patch Set 4 : temp #

Total comments: 3

Patch Set 5 : temp #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -16 lines) Patch
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
D third_party/WebKit/LayoutTests/fast/dom/create-element-after-stack-overflow.html View 1 2 1 chunk +1 line, -1 line 0 comments Download
D third_party/WebKit/LayoutTests/fast/dom/create-element-after-stack-overflow-expected.txt View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/ScriptWrappable.cpp View 1 chunk +1 line, -3 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8DOMWrapper.cpp View 1 chunk +1 line, -4 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Document.cpp View 1 chunk +1 line, -3 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Node.cpp View 1 chunk +1 line, -3 lines 0 comments Download

Messages

Total messages: 34 (17 generated)
haraken
PTAL
4 years, 4 months ago (2016-08-03 08:56:13 UTC) #3
Yuki
lgtm
4 years, 4 months ago (2016-08-03 08:59:05 UTC) #4
peria
lgtm
4 years, 4 months ago (2016-08-03 08:59:35 UTC) #6
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/2209593002/1
4 years, 4 months ago (2016-08-03 08:59:57 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/106189) android_clang_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, ...
4 years, 4 months ago (2016-08-03 09:24:23 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/2209593002/1
4 years, 4 months ago (2016-08-03 09:27:57 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/203171)
4 years, 4 months ago (2016-08-03 10:00:50 UTC) #14
haraken
I removed fast/dom/create-element-after-stack-overflow.html and http/tests/security/xss-DENIED-cross-origin-stack-overflow.html because they're testing toV8() when a stack-overflow happens... I think ...
4 years, 4 months ago (2016-08-03 11:06:32 UTC) #15
haraken
yukishiino@: PTAL https://codereview.chromium.org/2209593002/diff/60001/third_party/WebKit/LayoutTests/TestExpectations File third_party/WebKit/LayoutTests/TestExpectations (right): https://codereview.chromium.org/2209593002/diff/60001/third_party/WebKit/LayoutTests/TestExpectations#newcode1227 third_party/WebKit/LayoutTests/TestExpectations:1227: crbug.com/587136 http/tests/security/xss-DENIED-cross-origin-stack-overflow.html [ Crash ] As discussed ...
4 years, 4 months ago (2016-08-04 04:40:29 UTC) #20
Yuki
LGTM with comments. https://codereview.chromium.org/2209593002/diff/60001/third_party/WebKit/LayoutTests/TestExpectations File third_party/WebKit/LayoutTests/TestExpectations (right): https://codereview.chromium.org/2209593002/diff/60001/third_party/WebKit/LayoutTests/TestExpectations#newcode1227 third_party/WebKit/LayoutTests/TestExpectations:1227: crbug.com/587136 http/tests/security/xss-DENIED-cross-origin-stack-overflow.html [ Crash ] On ...
4 years, 4 months ago (2016-08-04 05:45:45 UTC) #21
haraken
On 2016/08/04 05:45:45, Yuki wrote: > LGTM with comments. > > https://codereview.chromium.org/2209593002/diff/60001/third_party/WebKit/LayoutTests/TestExpectations > File third_party/WebKit/LayoutTests/TestExpectations ...
4 years, 4 months ago (2016-08-04 08:03:32 UTC) #22
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/2209593002/80001
4 years, 4 months ago (2016-08-04 08:03:52 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/271585)
4 years, 4 months ago (2016-08-04 09:29:54 UTC) #27
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/2209593002/80001
4 years, 4 months ago (2016-08-04 09:30:49 UTC) #29
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 4 months ago (2016-08-04 11:00:23 UTC) #31
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/120fd684181b5730f243f87189d498ce5f0a1f8d Cr-Commit-Position: refs/heads/master@{#409760}
4 years, 4 months ago (2016-08-04 11:02:27 UTC) #33
Rick Byers
4 years, 1 month ago (2016-11-09 14:43:43 UTC) #34
Message was sent while issue was closed.
On 2016/08/04 11:02:27, commit-bot: I haz the power wrote:
> Patchset 5 (id:??) landed as
> https://crrev.com/120fd684181b5730f243f87189d498ce5f0a1f8d
> Cr-Commit-Position: refs/heads/master@{#409760}

It looks like this introduced a crash:
https://bugs.chromium.org/p/chromium/issues/detail?id=644237

Powered by Google App Engine
This is Rietveld 408576698