Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(591)

Unified Diff: Source/core/rendering/RenderFullScreen.cpp

Issue 414303006: Fix use-after-free related to RenderFullScreen (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: new deal Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/dom/FullscreenElementStack.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/RenderFullScreen.cpp
diff --git a/Source/core/rendering/RenderFullScreen.cpp b/Source/core/rendering/RenderFullScreen.cpp
index 484e9c38be8d8082b7dff63d339a5bf0418f58e3..58c2b5c9ac9cd9eb8162002898ff191b37b6c384 100644
--- a/Source/core/rendering/RenderFullScreen.cpp
+++ b/Source/core/rendering/RenderFullScreen.cpp
@@ -169,7 +169,7 @@ void RenderFullScreen::unwrapRenderer()
if (placeholder())
placeholder()->remove();
remove();
- FullscreenElementStack::from(document()).setFullScreenRenderer(0);
+ destroy();
}
void RenderFullScreen::setPlaceholder(RenderBlock* placeholder)
« no previous file with comments | « Source/core/dom/FullscreenElementStack.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698