Index: Source/core/html/HTMLSelectElement.cpp |
diff --git a/Source/core/html/HTMLSelectElement.cpp b/Source/core/html/HTMLSelectElement.cpp |
index 93af0b216963e078bdb62f8c9b3a07511ae8bae7..59c17bbc8a1c3bc0778a792ff166ca24c0cb4494 100644 |
--- a/Source/core/html/HTMLSelectElement.cpp |
+++ b/Source/core/html/HTMLSelectElement.cpp |
@@ -1052,6 +1052,7 @@ void HTMLSelectElement::dispatchFocusEvent(Element* oldFocusedElement, WebFocusT |
void HTMLSelectElement::dispatchBlurEvent(Element* newFocusedElement, WebFocusType type, InputDeviceCapabilities* sourceCapabilities) |
{ |
+ m_typeAhead.resetSession(); |
// We only need to fire change events here for menu lists, because we fire |
// change events for list boxes whenever the selection change is actually made. |
// This matches other browsers' behavior. |
@@ -1951,4 +1952,9 @@ void HTMLSelectElement::detach(const AttachContext& context) |
m_popup = nullptr; |
} |
+void HTMLSelectElement::resetTypeAheadSessionForTesting() |
+{ |
+ m_typeAhead.resetSession(); |
+} |
+ |
} // namespace blink |