Change scope according to passed |creation_context|
Current implementation of DOMArrayBuffer::Wrap() returns a object that is created in current realm because v8::ArrayBuffer::New() does not receive |creation_context|, the relevant realm. (current realm is used here: https://cs.chromium.org/chromium/src/v8/src/heap/factory.cc?sq=package:chromium&g=0&l=3056) We have to create event in the relevant realm of event's target in accord with DOM standard: https://dom.spec.whatwg.org/#firing-events This CL set appropriate realm on creating wrapper. A test for this already exists: https://cs.chromium.org/chromium/src/third_party/WebKit/LayoutTests/external/wpt/websockets/multi-globals/message-received.html Change-Id: Ie225d9e45a0e78fcdbb7d86d04674531f9c745ac Reviewed-on: https://chromium-review.googlesource.com/1182913 Commit-Queue: Yuki Yamada <yukiy@google.com> Reviewed-by:Yuki Shiino <yukishiino@chromium.org> Reviewed-by:
Kentaro Hara <haraken@chromium.org> Reviewed-by:
Hitoshi Yoshida <peria@chromium.org> Cr-Commit-Position: refs/heads/master@{#584667}
Showing
Please register or sign in to comment