commit | c80f42d60b730623d7fea80b70b92987226ca581 | [log] [tgz] |
---|---|---|
author | Bret Sepulveda <bsep@chromium.org> | Fri Mar 22 23:42:15 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Fri Mar 22 23:42:15 2019 |
tree | f449bc064eafb84a42dedb33be4f7a66f14653e2 | |
parent | 63f598a1904005ddbd3681bcf1baadd4f19b7e92 [diff] |
Validate TestRenderViewHost downcast in TestWebContents. crrev.com/c/1515904 managed to land with an invalid downcast in TestWebContents::GetRenderViewHost which was only caught by the CFI bot. This patch adds some manual RTTI and checks the cast, to avoid a future test using TestWebContents without the right dependencies. Change-Id: I40cd2a9ae22cc611f94a5b11050d1eb06f428c6d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1529912 Reviewed-by: Scott Violet <sky@chromium.org> Reviewed-by: Ken Buchanan <kenrb@chromium.org> Commit-Queue: Bret Sepulveda <bsep@chromium.org> Cr-Commit-Position: refs/heads/master@{#643610}
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 .