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

Unified Diff: Source/core/html/HTMLObjectElement.cpp

Issue 732783002: Reland HTMLPlugInElement: Use custom focus logic only when there is a plugin. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 6 years, 1 month 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: Source/core/html/HTMLObjectElement.cpp
diff --git a/Source/core/html/HTMLObjectElement.cpp b/Source/core/html/HTMLObjectElement.cpp
index 2bb33528650898666d1c8fbb294e371377b8e694..b47e37060de6a71159ea63af866e71f892565db1 100644
--- a/Source/core/html/HTMLObjectElement.cpp
+++ b/Source/core/html/HTMLObjectElement.cpp
@@ -437,7 +437,9 @@ bool HTMLObjectElement::appendFormData(FormDataList& encoding, bool)
if (name().isEmpty())
return false;
- Widget* widget = pluginWidget();
+ // Widget is needed immediately to satisfy cases like
+ // LayoutTests/plugins/form-value.html.
+ Widget* widget = pluginWidgetForJSBindings();
if (!widget || !widget->isPluginView())
return false;
String value;
« no previous file with comments | « LayoutTests/fast/plugins/plugin-placeholder-focus-expected.txt ('k') | Source/core/html/HTMLPlugInElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698