Prevent UAF of RenderFrames from GuestViewContainer
commit4d29dd615212c539463a4e4a02188aa34d06e96f
authorraymes <raymes@chromium.org>
Mon, 19 Jan 2015 20:56:15 +0000 (19 12:56 -0800)
committerCommit bot <commit-bot@chromium.org>
Mon, 19 Jan 2015 20:57:12 +0000 (19 20:57 +0000)
treed9b226be69a9d6b5c36889bf6415733a8224324e
parent3da2c32a8e348cf62f6f2b561ce469f068d20bdf
Prevent UAF of RenderFrames from GuestViewContainer

Current the RenderFrame a GuestViewContainer is associated with can be
accessed even after it is destroyed. We should track the destruction with
a RenderFrameObserver and avoid accesses in that case.

BUG=449574

Review URL: https://codereview.chromium.org/822483007

Cr-Commit-Position: refs/heads/master@{#312143}
extensions/renderer/guest_view/extensions_guest_view_container.cc
extensions/renderer/guest_view/guest_view_container.cc
extensions/renderer/guest_view/guest_view_container.h
extensions/renderer/guest_view/mime_handler_view/mime_handler_view_container.cc