From 4135a606fa9dfabbf47e9e495d0031f7109b9761 Mon Sep 17 00:00:00 2001 From: Konstantin Tokarev Date: Thu, 17 Sep 2015 16:34:30 +0300 Subject: Return non-empty surroundingText for password fields. Input method should support Qt::ImhHiddenText hint which is set to true in this case. Change-Id: If45b25e7f1699e6eca58afa00f788253fd16517a Reviewed-by: Allan Sandfeld Jensen --- Source/WebKit2/WebProcess/WebPage/WebPage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/WebKit2/WebProcess/WebPage/WebPage.cpp') diff --git a/Source/WebKit2/WebProcess/WebPage/WebPage.cpp b/Source/WebKit2/WebProcess/WebPage/WebPage.cpp index 3496083e2..1351a095d 100644 --- a/Source/WebKit2/WebProcess/WebPage/WebPage.cpp +++ b/Source/WebKit2/WebProcess/WebPage/WebPage.cpp @@ -679,7 +679,7 @@ EditorState WebPage::editorState() const // FIXME: We should only transfer innerText when it changes and do this on the UI side. - if (result.isContentEditable && !result.isInPasswordField) { + if (result.isContentEditable) { if (isHTMLTextFormControlElement(scope)) result.surroundingText = toHTMLTextFormControlElement(scope)->innerTextValue(); else -- cgit v1.2.1