commit | 0d19d019934ff13438dbaad6545e77a26c32b1b2 | [log] [tgz] |
---|---|---|
author | Mario Sanchez Prada <mario@igalia.com> | Fri Jan 10 23:19:06 2020 |
committer | Commit Bot <commit-bot@chromium.org> | Fri Jan 10 23:19:06 2020 |
tree | ac4b01bd915f0d3f58200f5974289af97935fcee | |
parent | 9d89754815421abab87c648d059b85db23e56368 [diff] |
Add extra null-checks for return value of WebContents::FromRenderFrameHost() The result value of WebContents::FromRenderFrameHost() can be a nullptr if the RenderFrameHost's delegate is not a WebContents, so we need to add this extra check in all the binders method that still don't have it to prevent potential crashes. Bug: 936482,1006361, 1040649 Change-Id: I688015361d34ec50e43feac0b88053159fbe941c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1995161 Reviewed-by: Dominick Ng <dominickn@chromium.org> Reviewed-by: Oksana Zhuravlova <oksamyt@chromium.org> Commit-Queue: Mario Sanchez Prada <mario@igalia.com> Cr-Commit-Position: refs/heads/master@{#730338}
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 .