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

Unified Diff: components/plugins/renderer/loadable_plugin_placeholder.cc

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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/plugins/object-onerror-placeholder.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/plugins/renderer/loadable_plugin_placeholder.cc
diff --git a/components/plugins/renderer/loadable_plugin_placeholder.cc b/components/plugins/renderer/loadable_plugin_placeholder.cc
index 8bffae8705f710771a838e011580c2cc4896ff16..296852aa4d791946565124a05e20afc8f54c4000 100644
--- a/components/plugins/renderer/loadable_plugin_placeholder.cc
+++ b/components/plugins/renderer/loadable_plugin_placeholder.cc
@@ -71,7 +71,9 @@ LoadablePluginPlaceholder::LoadablePluginPlaceholder(
premade_throttler_(nullptr),
allow_loading_(false),
finished_loading_(false),
- weak_factory_(this) {}
+ weak_factory_(this) {
+ plugin()->markAsPlaceholder();
Bernhard Bauer 2017/03/08 14:03:14 If there is a way that the plugin might run eventu
George Joseph 2017/03/08 14:45:57 Hello Bernhard, Thanks for reviewing the change.T
Bernhard Bauer 2017/03/08 18:01:13 Okay, being consistent with Firefox is probably a
George Joseph 2017/03/08 21:20:42 Hello Tommycli and Berhhard, Thanks for getting ba
+}
LoadablePluginPlaceholder::~LoadablePluginPlaceholder() {
}
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/plugins/object-onerror-placeholder.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698