Add support of setPasswordEchoEnabled and setPasswordEchoDuration for password echo...
authorAdemar de Souza Reis Jr <ademar.reis@openbossa.org>
Wed, 24 Aug 2011 14:23:22 +0000 (11:23 -0300)
committerAdemar de Souza Reis Jr <ademar.reis@openbossa.org>
Thu, 25 Aug 2011 14:25:53 +0000 (11:25 -0300)
commit985a8fa875e9f8c46d2cd379d55983e8ab8d839f
treee8d90e2d4c82feee7c26725c7e82d3fe23f48a52
parent2777535ba73a764640da9fac79f0f8d4ee5355ab
Add support of setPasswordEchoEnabled and setPasswordEchoDuration for password echo feature
https://bugs.webkit.org/show_bug.cgi?id=66052

Patch by Chang Shu <cshu@webkit.org> on 2011-08-18
Reviewed by Alexey Proskuryakov.

Source/WebCore:

Added runtime settings in WebCore.
Added support in window.internals for testing.

Tests: editing/input/password-echo-passnode.html
       editing/input/password-echo-passnode2.html
       editing/input/password-echo-passnode3.html
       editing/input/password-echo-textnode.html

* page/Settings.cpp:
(WebCore::Settings::Settings):
* page/Settings.h:
(WebCore::Settings::setPasswordEchoEnabled):
(WebCore::Settings::passwordEchoEnabled):
(WebCore::Settings::setPasswordEchoDurationInSeconds):
(WebCore::Settings::passwordEchoDurationInSeconds):
* testing/Internals.cpp:
(WebCore::Internals::Internals):
(WebCore::Internals::setPasswordEchoEnabled):
(WebCore::Internals::setPasswordEchoDurationInSeconds):
(WebCore::Internals::reset):
* testing/Internals.h:
* testing/Internals.idl:

Source/WebKit/qt:

Enable password echo under the build flag.

* Api/qwebsettings.cpp:
(QWebSettingsPrivate::apply):

LayoutTests:

Added tests.

* editing/input/password-echo-passnode-expected.txt: Added.
* editing/input/password-echo-passnode.html: Added.
* editing/input/password-echo-passnode2-expected.txt: Added.
* editing/input/password-echo-passnode2.html: Added.
* editing/input/password-echo-passnode3-expected.txt: Added.
* editing/input/password-echo-passnode3.html: Added.
* editing/input/password-echo-textnode-expected.txt: Added.
* editing/input/password-echo-textnode.html: Added.
* editing/input/resources: Added.
* editing/input/resources/password-echo.js: Added.
(secureChar):
(secureText):
(log):
(assert):
(run.else):
(run):
(init):
* platform/wk2/Skipped: No support yet.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@93291 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Conflicts:

LayoutTests/platform/wk2/Skipped
Source/WebCore/page/Settings.cpp
Source/WebCore/page/Settings.h
Source/WebCore/testing/Internals.cpp
Source/WebCore/testing/Internals.h
Source/WebCore/testing/Internals.idl
18 files changed:
LayoutTests/ChangeLog
LayoutTests/editing/input/password-echo-passnode-expected.txt [new file with mode: 0644]
LayoutTests/editing/input/password-echo-passnode.html [new file with mode: 0644]
LayoutTests/editing/input/password-echo-passnode2-expected.txt [new file with mode: 0644]
LayoutTests/editing/input/password-echo-passnode2.html [new file with mode: 0644]
LayoutTests/editing/input/password-echo-passnode3-expected.txt [new file with mode: 0644]
LayoutTests/editing/input/password-echo-passnode3.html [new file with mode: 0644]
LayoutTests/editing/input/password-echo-textnode-expected.txt [new file with mode: 0644]
LayoutTests/editing/input/password-echo-textnode.html [new file with mode: 0644]
LayoutTests/editing/input/resources/password-echo.js [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/page/Settings.cpp
Source/WebCore/page/Settings.h
Source/WebCore/testing/Internals.cpp
Source/WebCore/testing/Internals.h
Source/WebCore/testing/Internals.idl
Source/WebKit/qt/Api/qwebsettings.cpp
Source/WebKit/qt/ChangeLog