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

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

Issue 2733083004: Emit error events if the loading of an object element failed (Closed)
Patch Set: Emit error events if the loading of an object element failed Created 3 years, 9 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
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 acbe2d537a7697ade62daf4111ad04a2c5831b58..4d656220dafdcae076ba5e298db063aec24d4d6d 100644
--- a/third_party/WebKit/Source/core/html/HTMLPlugInElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLPlugInElement.cpp
@@ -428,6 +428,13 @@ bool HTMLPlugInElement::isPluginElement() const {
return true;
}
+bool HTMLPlugInElement::isErrorPlaceholder() {
+ if (pluginWidget() && (pluginWidget()->isPluginContainer()) &&
+ ((pluginWidget()->isErrorPlaceholder())))
+ return true;
+ return false;
+}
+
void HTMLPlugInElement::disconnectContentFrame() {
HTMLFrameOwnerElement::disconnectContentFrame();
setPersistedPluginWidget(nullptr);

Powered by Google App Engine
This is Rietveld 408576698