[bindings] Attach after setting the listener object
Missing out on Attach after setting the listener reference to the JavaScript function means that a garbage collection can collect the Blink listener object. To avoid such errors we immediately call Attach in SetListener. Bug: chromium:843903 Change-Id: I2c2ec8b0942853ee7e6c29e8c4850b075a398c53 Reviewed-on: https://chromium-review.googlesource.com/1155586Reviewed-by:Kentaro Hara <haraken@chromium.org> Reviewed-by:
Yuki Shiino <yukishiino@chromium.org> Commit-Queue: Michael Lippautz <mlippautz@chromium.org> Cr-Commit-Position: refs/heads/master@{#579347}
Showing
Please register or sign in to comment