summaryrefslogtreecommitdiffstats
path: root/WebKit/android
diff options
context:
space:
mode:
Diffstat (limited to 'WebKit/android')
-rw-r--r--WebKit/android/WebCoreSupport/autofill/FormManagerAndroid.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/WebKit/android/WebCoreSupport/autofill/FormManagerAndroid.cpp b/WebKit/android/WebCoreSupport/autofill/FormManagerAndroid.cpp
index ea389f7..bd10eb8 100644
--- a/WebKit/android/WebCoreSupport/autofill/FormManagerAndroid.cpp
+++ b/WebKit/android/WebCoreSupport/autofill/FormManagerAndroid.cpp
@@ -91,6 +91,12 @@ string16 FindChildTextInner(Node* node, int depth) {
if (!node || depth <= 0)
return element_text;
+ // FIXME: Temporary ANDROID workaround for regression introduced by
+ // Chromium change 64761 on sites that have script inbetween form controls.
+ // Need to understand why Chromium doesn't need this.
+ if (node->hasTagName(scriptTag))
+ return element_text;
+
string16 node_text = WTFStringToString16(node->nodeValue());
TrimWhitespace(node_text, TRIM_ALL, &node_text);
if (!node_text.empty())
@@ -216,7 +222,7 @@ string16 InferLabelFromTable(const HTMLFormControlElement& element) {
}
previous = previous->previousSibling();
}
- return inferred_label;
+ return inferred_label;
}
// Helper for |InferLabelForElement()| that infers a label, if possible, from