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

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: 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/HTMLObjectElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLObjectElement.cpp b/third_party/WebKit/Source/core/html/HTMLObjectElement.cpp
index 780bb4bb044790368fb6cad303f8804448ae6b31..6d6291243ca984f554243e950ccae018fb6914c5 100644
--- a/third_party/WebKit/Source/core/html/HTMLObjectElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLObjectElement.cpp
@@ -325,6 +325,9 @@ void HTMLObjectElement::updateWidgetInternal() {
dispatchErrorEvent();
if (hasFallbackContent())
renderFallbackContent();
+ } else {
+ if (isPlaceholder())
+ dispatchErrorEvent();
}
}

Powered by Google App Engine
This is Rietveld 408576698