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

Issue 1399763004: NPObject should not be retrieved as ScriptWrappable

Created:
5 years, 2 months ago by haraken
Modified:
3 years, 8 months ago
Reviewers:
vivekg, Yuki, rwlbuis
CC:
chromium-reviews, blink-reviews, blink-reviews-bindings_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

NPObject should not be retrieved as ScriptWrappable NPObject does not inherit from ScriptWrappable. Thus it is unsafe to retrieve a NPObject* pointer from a wrapper as a ScriptWrappable* pointer. This CL adds an ASSERT to check it. BUG=

Patch Set 1 #

Total comments: 1

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -11 lines) Patch
M third_party/WebKit/Source/bindings/core/v8/NPV8Object.h View 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8NPObject.cpp View 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/WrapperTypeInfo.h View 1 1 chunk +18 lines, -8 lines 0 comments Download

Messages

Total messages: 20 (9 generated)
haraken
PTAL
5 years, 2 months ago (2015-10-15 11:10:50 UTC) #2
vivekg
lgtm https://codereview.chromium.org/1399763004/diff/1/third_party/WebKit/Source/bindings/core/v8/WrapperTypeInfo.h File third_party/WebKit/Source/bindings/core/v8/WrapperTypeInfo.h (right): https://codereview.chromium.org/1399763004/diff/1/third_party/WebKit/Source/bindings/core/v8/WrapperTypeInfo.h#newcode251 third_party/WebKit/Source/bindings/core/v8/WrapperTypeInfo.h:251: // NPObject is not ScriptWrappable. We must not ...
5 years, 2 months ago (2015-10-15 11:23:22 UTC) #3
haraken
https://codereview.chromium.org/1399763004/diff/1/third_party/WebKit/Source/bindings/core/v8/WrapperTypeInfo.h > File third_party/WebKit/Source/bindings/core/v8/WrapperTypeInfo.h (right): > > https://codereview.chromium.org/1399763004/diff/1/third_party/WebKit/Source/bindings/core/v8/WrapperTypeInfo.h#newcode251 > third_party/WebKit/Source/bindings/core/v8/WrapperTypeInfo.h:251: // NPObject is > not ...
5 years, 2 months ago (2015-10-15 11:35:29 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1399763004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1399763004/20001
5 years, 2 months ago (2015-10-15 13:05:54 UTC) #6
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_clang_dbg_recipe on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_clang_dbg_recipe/builds/133729)
5 years, 2 months ago (2015-10-15 13:36:10 UTC) #8
Yuki
lgtm
5 years, 2 months ago (2015-10-15 13:37:57 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1399763004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1399763004/20001
5 years, 2 months ago (2015-10-15 13:42:41 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/110449)
5 years, 2 months ago (2015-10-15 13:56:20 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1399763004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1399763004/20001
5 years, 2 months ago (2015-10-16 04:24:38 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg_recipe on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_clang_dbg_recipe/builds/134188)
5 years, 2 months ago (2015-10-16 04:49:09 UTC) #18
rwlbuis
3 years, 8 months ago (2017-04-13 20:32:44 UTC) #20
@haraken I think this can be closed since support for NPObjects was removed?

Powered by Google App Engine
This is Rietveld 408576698