Check script execution is forbidden or not only in MainWorld
We should not forbid script execution in isolated worlds when dispatching events (it should be operated by disabling Chrome extension), so checking execution setting is necessary only in main world. V8EventListenerOrEventHandler::CallListenerFunction() already implements this, so this CL make GeneratedCodeHelper::IsCallbackRunnable() to do the same conditional check for other callbacks generated by IDL files. Test for this is already exists: https://cs.chromium.org/chromium/src/third_party/WebKit/LayoutTests/fast/events/events-in-isolated-world.html Bug: 872138, 608286, 608641 Change-Id: Ibc38e6033d6d0462362012f1c49271548c26a8ec Reviewed-on: https://chromium-review.googlesource.com/1186212Reviewed-by:Kentaro Hara <haraken@chromium.org> Reviewed-by:
Yuki Shiino <yukishiino@chromium.org> Commit-Queue: Yuki Yamada <yukiy@google.com> Cr-Commit-Position: refs/heads/master@{#585449}
Showing
Please register or sign in to comment