Add script setting check in IsCallbackFunctionRunnable.
The incumbent realm schedules the currently-running callback although it may not correspond to the currently-running function object. The goal for this CL to is check whether the script setting is disabled before invoking JS callback, then checking the context which originally schedules the current-running callback seems to make more sense. Please notice that this CL changes the behavior of the method IsCallbackFunctionRunnable to require the execution context of the incumbent environment to be not empty, not paused and enabled for JavaScript. Bug: 849600,849601,849730,848086,849915,851357 Change-Id: Id8ab0f9f67f9602635b295b414d2d0026c87e4ab Reviewed-on: https://chromium-review.googlesource.com/1087536 Commit-Queue: Johnny Ding <jnd@chromium.org> Reviewed-by:Kentaro Hara <haraken@chromium.org> Reviewed-by:
Yuki Shiino <yukishiino@chromium.org> Reviewed-by:
Aleksey Kozyatinskiy <kozyatinskiy@chromium.org> Cr-Commit-Position: refs/heads/master@{#568799}
Showing
This diff is collapsed.
Please register or sign in to comment