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

Issue 931543002: Disallow wrapper creation from visitDOMWrapper (Closed)

Created:
5 years, 10 months ago by kouhei (in TOK)
Modified:
5 years, 9 months ago
Reviewers:
haraken
CC:
blink-reviews, blink-reviews-bindings_chromium.org, vivekg_samsung, arv+blink, vivekg
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Disallow wrapper creation from visitDOMWrapper visitDOMWrapper is called from during V8 GC, and it is not safe to create wrapper there, as it may lead to execution of arbitrary javascript while GC. This CL removes the wrapper creation code from visitDOMWrapper template code, and replaces it with an ASSERT. BUG=None Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=190231

Patch Set 1 #

Total comments: 2

Patch Set 2 : RELEASE_ASSERT #

Total comments: 1

Patch Set 3 : add comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -6 lines) Patch
M Source/bindings/templates/interface.cpp View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M Source/bindings/tests/results/core/V8TestInterface.cpp View 1 1 chunk +1 line, -2 lines 0 comments Download
M Source/bindings/tests/results/modules/V8TestInterface5.cpp View 1 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 14 (3 generated)
kouhei (in TOK)
5 years, 10 months ago (2015-02-16 03:47:39 UTC) #2
haraken
https://codereview.chromium.org/931543002/diff/1/Source/bindings/templates/interface.cpp File Source/bindings/templates/interface.cpp (left): https://codereview.chromium.org/931543002/diff/1/Source/bindings/templates/interface.cpp#oldcode600 Source/bindings/templates/interface.cpp:600: {{set_wrapper_reference_to.name}}->wrap(creationContext, isolate); Another idea would be just to skip ...
5 years, 10 months ago (2015-02-16 03:56:50 UTC) #3
kouhei (in TOK)
https://codereview.chromium.org/931543002/diff/1/Source/bindings/templates/interface.cpp File Source/bindings/templates/interface.cpp (left): https://codereview.chromium.org/931543002/diff/1/Source/bindings/templates/interface.cpp#oldcode600 Source/bindings/templates/interface.cpp:600: {{set_wrapper_reference_to.name}}->wrap(creationContext, isolate); On 2015/02/16 03:56:49, haraken wrote: > > ...
5 years, 10 months ago (2015-02-16 04:03:24 UTC) #4
haraken
On 2015/02/16 04:03:24, kouhei wrote: > https://codereview.chromium.org/931543002/diff/1/Source/bindings/templates/interface.cpp > File Source/bindings/templates/interface.cpp (left): > > https://codereview.chromium.org/931543002/diff/1/Source/bindings/templates/interface.cpp#oldcode600 > ...
5 years, 10 months ago (2015-02-16 04:45:33 UTC) #5
kouhei (in TOK)
Changed to RELEASE_ASSERT. On 2015/02/16 04:45:33, haraken wrote: > On 2015/02/16 04:03:24, kouhei wrote: > ...
5 years, 10 months ago (2015-02-16 05:28:37 UTC) #6
haraken
LGTM https://codereview.chromium.org/931543002/diff/20001/Source/bindings/templates/interface.cpp File Source/bindings/templates/interface.cpp (right): https://codereview.chromium.org/931543002/diff/20001/Source/bindings/templates/interface.cpp#newcode599 Source/bindings/templates/interface.cpp:599: RELEASE_ASSERT(DOMDataStore::containsWrapper({{set_wrapper_reference_to.name}}, isolate)); Add a comment on why this ...
5 years, 10 months ago (2015-02-16 06:05:40 UTC) #7
kouhei (in TOK)
On 2015/02/16 06:05:40, haraken wrote: > LGTM > > https://codereview.chromium.org/931543002/diff/20001/Source/bindings/templates/interface.cpp > File Source/bindings/templates/interface.cpp (right): > ...
5 years, 10 months ago (2015-02-16 06:59:50 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/931543002/40001
5 years, 10 months ago (2015-02-16 08:44:30 UTC) #11
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://src.chromium.org/viewvc/blink?view=rev&revision=190231
5 years, 10 months ago (2015-02-16 08:48:12 UTC) #12
michaeln
A revert of this CL (patchset #3 id:40001) has been created in https://codereview.chromium.org/931333003/ by michaeln@chromium.org. ...
5 years, 10 months ago (2015-02-17 23:08:55 UTC) #13
jsbell
5 years, 9 months ago (2015-03-24 16:52:20 UTC) #14
Message was sent while issue was closed.
Did we ever figure out what was wrong with this CL?

Powered by Google App Engine
This is Rietveld 408576698