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

Unified Diff: third_party/WebKit/Source/core/html/HTMLPlugInElement.cpp

Issue 1866153002: Don't persist plugins across reattach for widget updates. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 | « third_party/WebKit/LayoutTests/plugins/plugin-reload-data-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/html/HTMLPlugInElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLPlugInElement.cpp b/third_party/WebKit/Source/core/html/HTMLPlugInElement.cpp
index c856856417e4aebab1cce45e6c9c79053095bd63..65303926a7e209d1e38c3755cc22594303932ca0 100644
--- a/third_party/WebKit/Source/core/html/HTMLPlugInElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLPlugInElement.cpp
@@ -633,8 +633,10 @@ bool HTMLPlugInElement::useFallbackContent() const
void HTMLPlugInElement::lazyReattachIfNeeded()
{
- if (!useFallbackContent() && needsWidgetUpdate() && layoutObject() && !isImageType())
+ if (!useFallbackContent() && needsWidgetUpdate() && layoutObject() && !isImageType()) {
lazyReattachIfAttached();
+ setPersistedPluginWidget(nullptr);
+ }
}
} // namespace blink
« no previous file with comments | « third_party/WebKit/LayoutTests/plugins/plugin-reload-data-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698