WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 49848
Make it possible to display the last character of a secure text field unobscured
https://bugs.webkit.org/show_bug.cgi?id=49848
Summary
Make it possible to display the last character of a secure text field unobscured
David Kilzer (:ddkilzer)
Reported
2010-11-19 18:03:22 PST
Created
attachment 74451
[details]
Patch Reviewed by NOBODY (OOPS!). * JavaScriptCore.exp: * wtf/text/StringImpl.cpp: (WTF::StringImpl::secure): Added argument that controls whether the last character is obscured or not. Implemented behavior. * wtf/text/StringImpl.h: (WTF::StringImpl::LastCharacterBehavior): Added enum. (WTF::StringImpl::secure): Updated method signature. --- 4 files changed, 26 insertions(+), 5 deletions(-)
Attachments
Patch
(3.18 KB, patch)
2010-11-19 18:03 PST
,
David Kilzer (:ddkilzer)
darin
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Darin Adler
Comment 1
2010-11-19 20:35:59 PST
Comment on
attachment 74451
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=74451&action=review
> JavaScriptCore/wtf/text/StringImpl.cpp:277 > + if (m_length) {
I think it would be better to say: if (!m_length) return this; At the start of the function, even before the createUninitialized call.
> JavaScriptCore/wtf/text/StringImpl.cpp:278 > + const unsigned lastCharacterIndex = m_length - 1;
We normally don’t use const for local variables like this one.
Darin Adler
Comment 2
2010-11-19 20:36:20 PST
Comment on
attachment 74451
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=74451&action=review
> JavaScriptCore/wtf/text/StringImpl.h:290 > + PassRefPtr<StringImpl> secure(UChar, LastCharacterBehavior behavior = HideLastCharacter);
We could omit the argument name “behavior” here.
David Kilzer (:ddkilzer)
Comment 3
2010-11-20 11:03:14 PST
Committed
r72477
: <
http://trac.webkit.org/changeset/72477
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug