Chromium Code Reviews
DescriptionRevert 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 #Messages
Total messages: 13 (6 generated)
|