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

Issue 2815373002: Revert of Move securityCheck out of V8WrapperInstantiationScope (Closed)

Created:
3 years, 8 months ago by adithyas
Modified:
3 years, 8 months ago
CC:
blink-reviews, blink-reviews-bindings_chromium.org, chasej+watch_chromium.org, chromium-reviews, iclelland+watch_chromuim.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Revert of Move securityCheck out of V8WrapperInstantiationScope (patchset #13 id:240001 of https://codereview.chromium.org/2745313003/ ) Reason for revert: https://bugs.chromium.org/p/chromium/issues/detail?id=711373 The DCHECK in ScriptWrappable::Wrap indicates that we do not properly handle an empty wrapper being returned by V8DOMWrapper::CreateWrapper. So a failed security check would cause this crash. A potential short-term fix would be to just return a wrapper regardless of whether the security check passed or failed (which is what the previous implementation did)? Original issue's description: > Move securityCheck out of V8WrapperInstantiationScope > > Moving V8DOMWrapper.h/cpp to platform/bindings is blocked by V8WrapperInstantiationScope::securityCheck and V8WrapperInstantiationScope::convertException. Both of these methods use toLocalFrame/toDOMWindow, and cannot be moved to platform/. > > This CL moves the security check into WrapperCreationSecurityCheck. WrapperCreationSecurityCheck only holds a function pointer and will be moved into platform/bindings. The implementation of the security check is moved to BindingSecurity (in bindings/core), and the function pointer is set to point to the implementation inside core/. > > BUG=682322 > > Review-Url: https://codereview.chromium.org/2745313003 > Cr-Commit-Position: refs/heads/master@{#463621} > Committed: https://chromium.googlesource.com/chromium/src/+/3f7eac384ee02371be4972ba0647082bf6599eb1 TBR=haraken@chromium.org,jbroman@chromium.org,jochen@chromium.org,yukishiino@chromium.org # Not skipping CQ checks because original CL landed more than 1 days ago. BUG=682322, 711373 Review-Url: https://codereview.chromium.org/2815373002 Cr-Commit-Position: refs/heads/master@{#464786} Committed: https://chromium.googlesource.com/chromium/src/+/2636f41f63df88af492932e306bae2553f73d1ce

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+84 lines, -205 lines) Patch
M third_party/WebKit/Source/bindings/bindings.gni View 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/BindingSecurity.h View 2 chunks +0 lines, -18 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/BindingSecurity.cpp View 3 chunks +1 line, -62 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8DOMWrapper.h View 4 chunks +20 lines, -29 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8DOMWrapper.cpp View 3 chunks +63 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8Initializer.cpp View 2 chunks +0 lines, -3 lines 0 comments Download
D third_party/WebKit/Source/bindings/core/v8/WrapperCreationSecurityCheck.h View 1 chunk +0 lines, -46 lines 0 comments Download
D third_party/WebKit/Source/bindings/core/v8/WrapperCreationSecurityCheck.cpp View 1 chunk +0 lines, -41 lines 0 comments Download

Messages

Total messages: 13 (6 generated)
adithyas
Created Revert of Move securityCheck out of V8WrapperInstantiationScope
3 years, 8 months ago (2017-04-13 18:40:23 UTC) #1
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/2815373002/1
3 years, 8 months ago (2017-04-13 18:41:50 UTC) #3
haraken
LGTM
3 years, 8 months ago (2017-04-13 22:08:06 UTC) #5
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/421940)
3 years, 8 months ago (2017-04-13 22:43:02 UTC) #7
Yuki
LGTM.
3 years, 8 months ago (2017-04-14 06:44:18 UTC) #8
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/2815373002/1
3 years, 8 months ago (2017-04-14 18:26:26 UTC) #10
commit-bot: I haz the power
3 years, 8 months ago (2017-04-14 20:20:59 UTC) #13
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/2636f41f63df88af492932e306ba...

Powered by Google App Engine
This is Rietveld 408576698