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

Unified Diff: third_party/WebKit/Source/core/html/HTMLObjectElement.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, 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
Index: third_party/WebKit/Source/core/html/HTMLObjectElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLObjectElement.cpp b/third_party/WebKit/Source/core/html/HTMLObjectElement.cpp
index 93edf5259fc78dae8113b4c50a3858a80418317c..5b6a9d1edfdf7a25fd9065312c9427c8756f0d37 100644
--- a/third_party/WebKit/Source/core/html/HTMLObjectElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLObjectElement.cpp
@@ -327,6 +327,9 @@ void HTMLObjectElement::UpdatePluginInternal() {
DispatchErrorEvent();
if (HasFallbackContent())
RenderFallbackContent();
+ } else {
+ if (IsErrorplaceholder())
+ DispatchErrorEvent();
}
}

Powered by Google App Engine
This is Rietveld 408576698