diff options
author | Konstantin Tokarev <annulen@yandex.ru> | 2015-09-17 16:34:30 +0300 |
---|---|---|
committer | Konstantin Tokarev <annulen@yandex.ru> | 2015-09-30 13:57:19 +0000 |
commit | 4135a606fa9dfabbf47e9e495d0031f7109b9761 (patch) | |
tree | 7aacdce04ebd01add5fa319fe3d454283301448c | |
parent | 4630324b92435e0b58375c36c5f8fa2cb0ffade6 (diff) | |
download | qtwebkit-4135a606fa9dfabbf47e9e495d0031f7109b9761.tar.gz |
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 <allan.jensen@theqtcompany.com>
-rw-r--r-- | Source/WebKit2/WebProcess/WebPage/WebPage.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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 |