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; |