[SCM] WebKit Debian packaging branch, debian/unstable, updated. debian/1.1.15-1-40151-g37bb677
trey
trey at 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Sat Sep 26 07:37:24 UTC 2009
The following commit has been merged in the debian/unstable branch:
commit 46cb114a22f21694f54ba6cbe116558367a4d74a
Author: trey <trey at 268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date: Wed Apr 16 00:28:22 2003 +0000
3210061 - Forms auto-fill ignores maxlength attribute
Reviewed by Maciej.
* kwq/KWQTextField.mm:
(-[KWQTextField setStringValue:]): We now trim down incoming values
to fit the maxlength criteria. Matches the way we enforce this constraint
when maxlength is set.
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@4116 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/WebCore/ChangeLog-2003-10-25 b/WebCore/ChangeLog-2003-10-25
index 42bd8e1..327176c 100644
--- a/WebCore/ChangeLog-2003-10-25
+++ b/WebCore/ChangeLog-2003-10-25
@@ -1,3 +1,14 @@
+2003-04-15 Trey Matteson <trey at apple.com>
+
+ 3210061 - Forms auto-fill ignores maxlength attribute
+
+ Reviewed by Maciej.
+
+ * kwq/KWQTextField.mm:
+ (-[KWQTextField setStringValue:]): We now trim down incoming values
+ to fit the maxlength criteria. Matches the way we enforce this constraint
+ when maxlength is set.
+
2003-04-15 David Hyatt <hyatt at apple.com>
Fix 3227983 and 3229592, both the same bug involving a movable type
diff --git a/WebCore/ChangeLog-2005-08-23 b/WebCore/ChangeLog-2005-08-23
index 42bd8e1..327176c 100644
--- a/WebCore/ChangeLog-2005-08-23
+++ b/WebCore/ChangeLog-2005-08-23
@@ -1,3 +1,14 @@
+2003-04-15 Trey Matteson <trey at apple.com>
+
+ 3210061 - Forms auto-fill ignores maxlength attribute
+
+ Reviewed by Maciej.
+
+ * kwq/KWQTextField.mm:
+ (-[KWQTextField setStringValue:]): We now trim down incoming values
+ to fit the maxlength criteria. Matches the way we enforce this constraint
+ when maxlength is set.
+
2003-04-15 David Hyatt <hyatt at apple.com>
Fix 3227983 and 3229592, both the same bug involving a movable type
diff --git a/WebCore/kwq/KWQTextField.mm b/WebCore/kwq/KWQTextField.mm
index ecb0676..c7e8ae8 100644
--- a/WebCore/kwq/KWQTextField.mm
+++ b/WebCore/kwq/KWQTextField.mm
@@ -281,6 +281,10 @@
- (void)setStringValue:(NSString *)string
{
+ int maxLength = [formatter maximumLength];
+ if ((int)[string length] > maxLength) {
+ string = [string substringToIndex:maxLength];
+ }
[secureField setStringValue:string];
[super setStringValue:string];
widget->textChanged();
--
WebKit Debian packaging
More information about the Pkg-webkit-commits
mailing list