WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
42047
Add click handler to the input element's speech button.
https://bugs.webkit.org/show_bug.cgi?id=42047
Summary
Add click handler to the input element's speech button.
Satish Sampath
Reported
2010-07-11 14:57:38 PDT
Adds code to handle clicks on the input element's speech button and invoke speech recognition. The speech button now implements SpeechInputListener to receive progress events and the recognized text. All code changes are behind the speech input compile time flag (disabled by default). More information about the speech input API proposal can be found in the following links: Parent bug:
https://bugs.webkit.org/show_bug.cgi?id=39485
Full API proposal:
https://docs.google.com/View?id=dcfg79pz_5dhnp23f5
Relevant discussions in the WHATWG list: -
http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2010-May/026338.html
-
http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2010-June/026747.html
Attachments
Patch
(5.75 KB, patch)
2010-07-14 01:42 PDT
,
Satish Sampath
no flags
Details
Formatted Diff
Diff
Patch
(6.32 KB, patch)
2010-07-14 02:25 PDT
,
Satish Sampath
no flags
Details
Formatted Diff
Diff
Patch
(6.32 KB, patch)
2010-07-14 02:35 PDT
,
Satish Sampath
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Satish Sampath
Comment 1
2010-07-14 01:42:18 PDT
Created
attachment 61486
[details]
Patch
Kent Tamura
Comment 2
2010-07-14 02:03:05 PDT
Comment on
attachment 61486
[details]
Patch WebCore/rendering/TextControlInnerElements.cpp:353 + input->focus(); focus() dispatches a focus event, and an event handler might remove 'input' node. So the next input->select() can use a deleted object. Please look at SpinButtonElement::defaultEventHandler() of the latest revision of TextControlInnerElements.cpp. WebCore/rendering/TextControlInnerElements.cpp:392 + input->dispatchFormControlChangeEvent(); This has a similar problem. An event handler of the event might remove the 'input' node. So this InputFieldSpeechButtonElement instance might be removed. So, we need RefPtr<InputFieldSpeechButtonElement> protector(this); before input->dispatchFormControlChangeEvent().
Satish Sampath
Comment 3
2010-07-14 02:25:39 PDT
Created
attachment 61494
[details]
Patch Address Kent's comments
WebKit Review Bot
Comment 4
2010-07-14 02:31:23 PDT
Attachment 61494
[details]
did not pass style-queue: Failed to run "['WebKitTools/Scripts/check-webkit-style']" exit_code: 1 WebCore/rendering/TextControlInnerElements.cpp:356: hold_ref is incorrectly named. Don't use underscores in your identifier names. [readability/naming] [4] WebCore/rendering/TextControlInnerElements.cpp:398: hold_ref is incorrectly named. Don't use underscores in your identifier names. [readability/naming] [4] Total errors found: 2 in 3 files If any of these errors are false positives, please file a bug against check-webkit-style.
Satish Sampath
Comment 5
2010-07-14 02:35:20 PDT
Created
attachment 61495
[details]
Patch Address Kent's comments (2nd try)
Kent Tamura
Comment 6
2010-07-14 03:26:39 PDT
Comment on
attachment 61495
[details]
Patch OK.
WebKit Commit Bot
Comment 7
2010-07-14 06:57:58 PDT
Comment on
attachment 61495
[details]
Patch Clearing flags on attachment: 61495 Committed
r63315
: <
http://trac.webkit.org/changeset/63315
>
WebKit Commit Bot
Comment 8
2010-07-14 06:58:09 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug