Changeset 243804 in webkit
- Timestamp:
- Apr 3, 2019, 9:40:16 AM (7 years ago)
- Location:
- trunk
- Files:
-
- 4 deleted
- 10 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/fast/forms/editing-value-expected.txt (deleted)
-
LayoutTests/fast/forms/editing-value-null-renderer-expected.txt (deleted)
-
LayoutTests/fast/forms/editing-value-null-renderer.html (deleted)
-
LayoutTests/fast/forms/editing-value.html (deleted)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/html/HTMLInputElement.cpp (modified) (1 diff)
-
Source/WebCore/html/HTMLInputElement.h (modified) (1 diff)
-
Source/WebCore/testing/Internals.cpp (modified) (1 diff)
-
Source/WebCore/testing/Internals.h (modified) (1 diff)
-
Source/WebCore/testing/Internals.idl (modified) (1 diff)
-
Source/WebKit/ChangeLog (modified) (1 diff)
-
Source/WebKit/WebProcess/InjectedBundle/API/glib/DOM/WebKitDOMElement.cpp (modified) (2 diffs)
-
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLInputElement.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r243802 r243804 1 2019-04-03 Michael Catanzaro <mcatanzaro@igalia.com> 2 3 Get rid of HTMLInputElement::setEditingValue 4 https://bugs.webkit.org/show_bug.cgi?id=196402 5 6 Reviewed by Darin Adler. 7 8 * fast/forms/editing-value-expected.txt: Removed. 9 * fast/forms/editing-value-null-renderer-expected.txt: Removed. 10 * fast/forms/editing-value-null-renderer.html: Removed. 11 * fast/forms/editing-value.html: Removed. 12 1 13 2019-04-03 Shawn Roberts <sroberts@apple.com> 2 14 -
trunk/Source/WebCore/ChangeLog
r243799 r243804 1 2019-04-03 Michael Catanzaro <mcatanzaro@igalia.com> 2 3 Get rid of HTMLInputElement::setEditingValue 4 https://bugs.webkit.org/show_bug.cgi?id=196402 5 6 Reviewed by Darin Adler. 7 8 HTMLInputElement::setEditingValue is only used for Epiphany password autofill. We did it 9 this way because that's what Chrome uses for autofill, but Apple uses 10 HTMLInputElement::setValueForUser. Let's switch to that instead, then we can get rid of 11 setEditingValue. 12 13 This fixes logging into ting.com after username and password are autofilled by Epiphany. 14 Before this change, the login would fail unless you first manually edit either the username 15 or the password field. 16 17 * html/HTMLInputElement.cpp: 18 (WebCore::HTMLInputElement::setEditingValue): Deleted. 19 * html/HTMLInputElement.h: 20 * testing/Internals.cpp: 21 (WebCore::Internals::setEditingValue): Deleted. 22 * testing/Internals.h: 23 * testing/Internals.idl: 24 1 25 2019-04-03 Pablo Saavedra <psaavedra@igalia.com> 2 26 -
trunk/Source/WebCore/html/HTMLInputElement.cpp
r243647 r243804 1035 1035 } 1036 1036 1037 void HTMLInputElement::setEditingValue(const String& value)1038 {1039 if (!isTextField())1040 return;1041 1042 setInnerTextValue(value);1043 subtreeHasChanged();1044 1045 unsigned max = value.length();1046 if (focused())1047 setSelectionRange(max, max);1048 else1049 cacheSelectionInResponseToSetValue(max);1050 1051 dispatchInputEvent();1052 }1053 1054 1037 ExceptionOr<void> HTMLInputElement::setValue(const String& value, TextFieldEventBehavior eventBehavior) 1055 1038 { -
trunk/Source/WebCore/html/HTMLInputElement.h
r240452 r243804 186 186 String visibleValue() const; 187 187 188 WEBCORE_EXPORT void setEditingValue(const String&);189 190 188 WEBCORE_EXPORT double valueAsDate() const; 191 189 WEBCORE_EXPORT ExceptionOr<void> setValueAsDate(double); -
trunk/Source/WebCore/testing/Internals.cpp
r243674 r243804 1815 1815 } 1816 1816 1817 void Internals::setEditingValue(HTMLInputElement& element, const String& value)1818 {1819 element.setEditingValue(value);1820 }1821 1822 1817 void Internals::setAutofilled(HTMLInputElement& element, bool enabled) 1823 1818 { -
trunk/Source/WebCore/testing/Internals.h
r243674 r243804 256 256 ExceptionOr<bool> wasLastChangeUserEdit(Element& textField); 257 257 bool elementShouldAutoComplete(HTMLInputElement&); 258 void setEditingValue(HTMLInputElement&, const String&);259 258 void setAutofilled(HTMLInputElement&, bool enabled); 260 259 enum class AutoFillButtonType { None, Contacts, Credentials, StrongPassword, CreditCard }; -
trunk/Source/WebCore/testing/Internals.idl
r243674 r243804 275 275 [MayThrowException] boolean wasLastChangeUserEdit(Element textField); 276 276 boolean elementShouldAutoComplete(HTMLInputElement inputElement); 277 void setEditingValue(HTMLInputElement inputElement, DOMString value);278 277 void setAutofilled(HTMLInputElement inputElement, boolean enabled); 279 278 void setShowAutoFillButton(HTMLInputElement inputElement, AutoFillButtonType autoFillButtonType); -
trunk/Source/WebKit/ChangeLog
r243800 r243804 1 2019-04-03 Michael Catanzaro <mcatanzaro@igalia.com> 2 3 Get rid of HTMLInputElement::setEditingValue 4 https://bugs.webkit.org/show_bug.cgi?id=196402 5 6 Reviewed by Darin Adler. 7 8 * WebProcess/InjectedBundle/API/glib/DOM/WebKitDOMElement.cpp: 9 (webkit_dom_element_html_input_element_set_editing_value): 10 * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLInputElement.cpp: 11 (webkit_dom_html_input_element_set_editing_value): 12 1 13 2019-04-03 Wenson Hsieh <wenson_hsieh@apple.com> 2 14 -
trunk/Source/WebKit/WebProcess/InjectedBundle/API/glib/DOM/WebKitDOMElement.cpp
r229973 r243804 149 149 * @value: the text to set 150 150 * 151 * Set editing value of an HTML input element. If @element is not an HTML input element this function does nothing. 151 * Set the value of an HTML input element as if it had been edited by 152 * the user, triggering a change event. If @element is not an HTML input 153 * element this function does nothing. 152 154 * 153 155 * Since: 2.22 … … 161 163 return; 162 164 163 downcast<WebCore::HTMLInputElement>(*node).set EditingValue(String::fromUTF8(value));165 downcast<WebCore::HTMLInputElement>(*node).setValueForUser(String::fromUTF8(value)); 164 166 } -
trunk/Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLInputElement.cpp
r234586 r243804 1008 1008 g_return_if_fail(value); 1009 1009 1010 WebKit::core(self)->set EditingValue(WTF::String::fromUTF8(value));1010 WebKit::core(self)->setValueForUser(WTF::String::fromUTF8(value)); 1011 1011 } 1012 1012 G_GNUC_END_IGNORE_DEPRECATIONS;
Note:
See TracChangeset
for help on using the changeset viewer.