Fix a potential UaF in MimeHandlerViewContainerBase
The method MHVCB::GetEmbedderRenderFrame() is virtual *and* used inside the dtor of MHVCB which is a mistake. Currently the references to MHVCB inside an embedder frame do not get cleaned up after destruction (causing leaks inside g_mime_handler_view_container_base_map). This bug is also a potential root cause of some crashes which only show themselves when the NetworkService is enabled (the corresponding codepath is triggered when the feature is on). Bug: 882645 Change-Id: I8c06184ac65054dc7e43d7582f99b2f7162280f0 Reviewed-on: https://chromium-review.googlesource.com/1225470Reviewed-by:James MacLean <wjmaclean@chromium.org> Commit-Queue: Ehsan Karamad <ekaramad@chromium.org> Cr-Commit-Position: refs/heads/master@{#591341}
Showing
Please register or sign in to comment