commit | 6c500722c5a1d317c823fafb6367fd50d35d0259 | [log] [tgz] |
---|---|---|
author | Alex Clarke <alexclarke@chromium.org> | Thu Jan 10 13:22:59 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Thu Jan 10 13:22:59 2019 |
tree | cd162271ff11c25f7a7f17649d0991aa13d2b4fc | |
parent | 59b327735fac25743c61745df49cb2d3caf399b9 [diff] |
Fix stack splat in MessagePumpMacTest If IncrementInModeAndExpect posted a task it didn't expect to run within the CFRunLoopRunInMode that task would still run and splat something on the stack. Due to luck this doesn't matter with the MessageLoop but it causes crashes with the SequenceManager. This patch fixes it by introducing a weak pointer in the test task to make sure it doesn't run when it shouldn't. Bug: 891670 Change-Id: I175903d977ee92adb2aee9461dce209dd387510a Reviewed-on: https://chromium-review.googlesource.com/c/1403414 Commit-Queue: Alex Clarke <alexclarke@chromium.org> Reviewed-by: Sami Kyöstilä <skyostil@chromium.org> Reviewed-by: Gabriel Charette <gab@chromium.org> Cr-Commit-Position: refs/heads/master@{#621560}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .