Android: Fix a WebContents UAF exception
Removes unnecessary indirection through WebContentsImpl for Activity instance, which may access it after destruction. We already have a null check for safe access to content layer in native ContextMenuHelper (when getting RenderFrameHost in CMH::RetrieveImageInternal) we can rely on, in case the WebContents gets destroyed before the context menu action is performed. Bug: 915953 Change-Id: I508f07f664b3d09bfba35748ba30afae991aae00 Reviewed-on: https://chromium-review.googlesource.com/c/1382712 Commit-Queue: Jinsuk Kim <jinsukkim@chromium.org> Reviewed-by:Theresa <twellington@chromium.org> Cr-Commit-Position: refs/heads/master@{#618408}
Showing
Please register or sign in to comment