Changeset 285982 in webkit
- Timestamp:
- Nov 17, 2021, 10:26:50 PM (5 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/fast/forms/input-autofilled-and-viewable-expected.txt (added)
-
LayoutTests/fast/forms/input-autofilled-and-viewable.html (added)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/html/HTMLInputElement.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r285967 r285982 1 2021-11-17 Ricky Mondello <rmondello@apple.com> 2 3 When an "autofilled and viewable" field becomes empty, turn "autofilled and viewable" off 4 https://bugs.webkit.org/show_bug.cgi?id=233239 5 6 Reviewed by Darin Adler. 7 8 * fast/forms/input-autofilled-and-viewable-expected.txt: Added. 9 * fast/forms/input-autofilled-and-viewable.html: Added. 10 1 11 2021-11-17 John Wilander <wilander@apple.com> 2 12 -
trunk/Source/WebCore/ChangeLog
r285980 r285982 1 2021-11-17 Ricky Mondello <rmondello@apple.com> 2 3 When an "autofilled and viewable" field becomes empty, turn "autofilled and viewable" off 4 https://bugs.webkit.org/show_bug.cgi?id=233239 5 6 Reviewed by Darin Adler. 7 8 Test: fast/forms/input-autofilled-and-viewable.html 9 10 * html/HTMLInputElement.cpp: 11 (WebCore::HTMLInputElement::setValueFromRenderer): Implement the fix. 12 * testing/Internals.cpp: 13 (WebCore::Internals::setValueFromRenderer): Added. 14 * testing/Internals.h: Declare a member function. 15 1 16 2021-11-17 Alex Christensen <achristensen@webkit.org> 2 17 -
trunk/Source/WebCore/html/HTMLInputElement.cpp
r285654 r285982 1160 1160 updateValidity(); 1161 1161 1162 // Clear auto fill flag (and yellow background) on user edit.1162 // We clear certain AutoFill flags here because this catches user edits. 1163 1163 setAutoFilled(false); 1164 if (m_isAutoFilledAndViewable && value.isEmpty()) 1165 setAutoFilledAndViewable(false); 1164 1166 } 1165 1167
Note:
See TracChangeset
for help on using the changeset viewer.