RESOLVED FIXED 219021
Add a default action for SpeechRecognition permission request
https://bugs.webkit.org/show_bug.cgi?id=219021
Summary Add a default action for SpeechRecognition permission request
Sihui Liu
Reported 2020-11-16 21:35:41 PST
...
Attachments
Patch (22.92 KB, patch)
2020-11-16 21:48 PST, Sihui Liu
no flags
Patch (26.16 KB, patch)
2020-11-17 10:34 PST, Sihui Liu
ews-feeder: commit-queue-
Patch (27.43 KB, patch)
2020-11-17 11:02 PST, Sihui Liu
ews-feeder: commit-queue-
Patch (27.45 KB, patch)
2020-11-17 11:26 PST, Sihui Liu
no flags
Sihui Liu
Comment 1 2020-11-16 21:48:40 PST
youenn fablet
Comment 2 2020-11-17 09:34:02 PST
Comment on attachment 414306 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=414306&action=review > Source/WebKit/UIProcess/Cocoa/UserMediaPermissionRequestProxy.mm:29 > #if ENABLE(MEDIA_STREAM) UserMediaPermissionRequestProxy.mm can probably be removed if we move the alter code in MediaPermissionUtilities.mm. > Source/WebKit/UIProcess/MediaPermissionUtilities.h:77 > +template<> struct EnumTraits<WebKit::MediaPermissionType> { Do we need to send this over IPC? > Source/WebKit/UIProcess/WebPageProxy.cpp:10251 > +void WebPageProxy::decidePolicyForSpeechRecognitionPermission(const WebCore::SecurityOrigin& origin, CompletionHandler<void(bool)>&& completionHandler) Maybe the name could be more descriptive here. I don't have a good name though.
Sihui Liu
Comment 3 2020-11-17 09:58:43 PST
(In reply to youenn fablet from comment #2) > Comment on attachment 414306 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=414306&action=review > > > Source/WebKit/UIProcess/Cocoa/UserMediaPermissionRequestProxy.mm:29 > > #if ENABLE(MEDIA_STREAM) > > UserMediaPermissionRequestProxy.mm can probably be removed if we move the > alter code in MediaPermissionUtilities.mm. Yes, will try removing it. > > > Source/WebKit/UIProcess/MediaPermissionUtilities.h:77 > > +template<> struct EnumTraits<WebKit::MediaPermissionType> { > > Do we need to send this over IPC? Nope, will remove. > > > Source/WebKit/UIProcess/WebPageProxy.cpp:10251 > > +void WebPageProxy::decidePolicyForSpeechRecognitionPermission(const WebCore::SecurityOrigin& origin, CompletionHandler<void(bool)>&& completionHandler) > > Maybe the name could be more descriptive here. I don't have a good name > though. hmm, will change to requestSpeechRecognitionPermissionByDefaultAction.
Sihui Liu
Comment 4 2020-11-17 10:34:47 PST
Sihui Liu
Comment 5 2020-11-17 11:02:11 PST
Sihui Liu
Comment 6 2020-11-17 11:26:55 PST
EWS
Comment 7 2020-11-17 13:01:09 PST
Committed r269918: <https://trac.webkit.org/changeset/269918> All reviewed patches have been landed. Closing bug and clearing flags on attachment 414356 [details].
Radar WebKit Bug Importer
Comment 8 2020-11-17 13:02:18 PST
Note You need to log in before you can comment on or make changes to this bug.