commit | e58d4344005a556409d314662403e9df6fc2c060 | [log] [tgz] |
---|---|---|
author | Yuki Shiino <yukishiino@chromium.org> | Wed Sep 19 12:09:29 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Wed Sep 19 12:09:29 2018 |
tree | 01b331bbf0f135013dc4c814118923c237e9dea5 | |
parent | 7769feaf4594253ea7b0479269b7e8d359221f1f [diff] |
v8binding: Handles a cross origin object as IDL callback interface. Since any object can be an IDL callback interface, web author can pass a cross origin object as an IDL callback interface. However, in case of a remote context (e.g. oopif/site-per-process), the cross origin object does not have a creation context of v8::Context, and it causes crash. This patch fixes the issue by checking whether an object has a non-empty creation context. http/tests/dom/eventlistener-with-remote-context.html demonstrates the issue and its fix. Change-Id: I3251f1caf8df3add3505afa75a1a056786c87c7c Bug: 883643, 886588 Reviewed-on: https://chromium-review.googlesource.com/1226893 Reviewed-by: Kentaro Hara <haraken@chromium.org> Reviewed-by: Hitoshi Yoshida <peria@chromium.org> Commit-Queue: Yuki Shiino <yukishiino@chromium.org> Cr-Commit-Position: refs/heads/master@{#592369}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .