Add support of setPasswordEchoEnabled and setPasswordEchoDuration for password echo...
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 18 Aug 2011 10:19:50 +0000 (10:19 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 18 Aug 2011 10:19:50 +0000 (10:19 +0000)
commitfaa4f1169b4145694ff8c68b94699964c257fe85
tree5c0cbb0b2a7304f1f3254a17a159a526b85854ce
parent3e0351318a54c7a47fba706bb81e9458a3bdc30a
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: https://svn.webkit.org/repository/webkit/trunk@93291 268f45cc-cd09-0410-ab3c-d52691b4dbfc
19 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]
LayoutTests/platform/wk2/Skipped
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