Observe RenderFrameHostChanged in ThreatDetails to fix race condition
RenderFrameHosts can be deleted when a navigation commits, and this does not call FrameDeleted(). This can trigger the same race condition as https://chromium-review.googlesource.com/1146997. If GetThreatDomDetails completes, then the navigation commits (and the old RenderFrameHosts is deleted), then OnReceivedThreatDOMDetails runs, we will crash. Bug: 817724, 860445 Change-Id: Iae81a1c3dc724113d30e17652b75a88bcd7f4de5 Reviewed-on: https://chromium-review.googlesource.com/1162422 Commit-Queue: Daniel Rubery <drubery@chromium.org> Reviewed-by:Varun Khaneja <vakh@chromium.org> Cr-Commit-Position: refs/heads/master@{#581079}
Showing
Please register or sign in to comment