v8binding: Fixes Geolocation to hold wrapper-tracing objects during the use.
Geolocation::HandleError discards TraceWrapperMembers (notifiers) in the middle of their use, so wrapper-tracing stops working. If V8 GC runs while the callbacks are running, as TraceWrapperMembers are already cleared, the underlying V8 objects will be gone. This patch fixes the issue making Geolocation hold TraceWrapperMembers during the invocation of the callbacks. Bug: 792604 Change-Id: I6eedc5bc3d82806b1ab0ee2cf2fc3d7a8a018e14 Reviewed-on: https://chromium-review.googlesource.com/824322Reviewed-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@{#525283}
Showing
Please register or sign in to comment