Prevent use-after-free of ContentBrowserClient.
I observed the use after free in WebContentsImplTest.LoadResourceWithEmptySecurityInfo. It was triggered by some downstream code that is not present in chromium, but the root cause is that the test sets ContentBrowserClient that is destroyed at the end of the test body. This CL extends the lifetime of this object in WebContentsImplTest. Bug: Change-Id: I8d6b553a20b497c346b47aeb043dedcd84e94abb Reviewed-on: https://chromium-review.googlesource.com/563380Reviewed-by:John Abd-El-Malek <jam@chromium.org> Commit-Queue: Alexander Semashko <ahest@yandex-team.ru> Cr-Commit-Position: refs/heads/master@{#488680}
Showing
Please register or sign in to comment