Fix UAF in closures posted from InProcessWorkerObjectProxy
Tasks posted by InProcessWorkerObjectProxy can be arbitrarily delayed so it's not safe to post a closure with an crossThreadUnretained pointer to the messaging proxy because we can't guarantee it's still there when the closure eventually gets run. We fix this with a WeakPtr. BUG=660427 Review-Url: https://codereview.chromium.org/2478113002 Cr-Commit-Position: refs/heads/master@{#430251}
Showing
Please register or sign in to comment