DescriptionAllow webkitSpeechRecognition work from an app's background page.
The manifest would already decide whether or not to allow the request (via
audioCapture permission).
Note that I'm enabling it only for speech coming through JS API. Speech
coming through <input> element are still discarded since the showing speech
bubble is not trivial as is, especially from popups.
BUG=291140
Test=From a chrome v2 packaged app with audioCapture permission, speech
api (webkitSpeechRecognition) should work from the app's background page.
Added browser_test that makes sure onerror ("not-allowed") doesn't get
called as it used to.
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=225866
Patch Set 1 #
Total comments: 8
Patch Set 2 : Address comments from kalman@, add test w/o permission. #
Total comments: 2
Patch Set 3 : Sync. #Patch Set 4 : Use FakeSpeechRecognitionManager for first test to pass on bots. #
Total comments: 4
Patch Set 5 : Address comments form tapted@ #Patch Set 6 : Sync + add ctor/dtor for test class. #
Messages
Total messages: 24 (0 generated)
|