Changeset 66878 in webkit
- Timestamp:
- Sep 7, 2010 5:47:17 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r66877 r66878 1 2010-09-07 Satish Sampath <satish@chromium.org> 2 3 Reviewed by Jeremy Orlow. 4 5 Ignore programmatic clicks on speech input button for security reasons. 6 https://bugs.webkit.org/show_bug.cgi?id=45181 7 8 * fast/speech/speech-button-ignore-generated-events-expected.txt: Added. 9 * fast/speech/speech-button-ignore-generated-events.html: Added. 10 1 11 2010-09-07 Pavel Podivilov <podivilov@chromium.org> 2 12 -
trunk/WebCore/ChangeLog
r66875 r66878 1 2010-09-07 Satish Sampath <satish@chromium.org> 2 3 Reviewed by Jeremy Orlow. 4 5 Ignore programmatic clicks on speech input button for security reasons. 6 https://bugs.webkit.org/show_bug.cgi?id=45181 7 8 Test: fast/speech/speech-button-ignore-generated-events.html 9 10 * rendering/TextControlInnerElements.cpp: 11 (WebCore::InputFieldSpeechButtonElement::defaultEventHandler): 12 1 13 2010-09-07 Kent Hansen <kent.hansen@nokia.com> 2 14 -
trunk/WebCore/rendering/TextControlInnerElements.cpp
r66007 r66878 396 396 void InputFieldSpeechButtonElement::defaultEventHandler(Event* event) 397 397 { 398 // For privacy reasons, only allow clicks directly coming from the user. 399 if (!event->fromUserGesture()) { 400 HTMLDivElement::defaultEventHandler(event); 401 return; 402 } 403 398 404 // On mouse down, select the text and set focus. 399 405 HTMLInputElement* input = static_cast<HTMLInputElement*>(shadowAncestorNode());
Note: See TracChangeset
for help on using the changeset viewer.