Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(42)

Issue 24292004: Allow webkitSpeechRecognition work from an app's background page. (Closed)

Created:
7 years, 3 months ago by lazyboy
Modified:
7 years, 2 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Allow 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)
lazyboy
+kalman for checking from apps/background_page point of view.
7 years, 3 months ago (2013-09-20 22:21:39 UTC) #1
not at google - send to devlin
it seems ok but just those 2 little questions. https://chromiumcodereview.appspot.com/24292004/diff/1/chrome/browser/speech/chrome_speech_recognition_manager_delegate.cc File chrome/browser/speech/chrome_speech_recognition_manager_delegate.cc (right): https://chromiumcodereview.appspot.com/24292004/diff/1/chrome/browser/speech/chrome_speech_recognition_manager_delegate.cc#newcode425 chrome/browser/speech/chrome_speech_recognition_manager_delegate.cc:425: ...
7 years, 3 months ago (2013-09-20 22:36:46 UTC) #2
lazyboy
https://chromiumcodereview.appspot.com/24292004/diff/1/chrome/browser/speech/chrome_speech_recognition_manager_delegate.cc File chrome/browser/speech/chrome_speech_recognition_manager_delegate.cc (right): https://chromiumcodereview.appspot.com/24292004/diff/1/chrome/browser/speech/chrome_speech_recognition_manager_delegate.cc#newcode425 chrome/browser/speech/chrome_speech_recognition_manager_delegate.cc:425: ask_permission = true; On 2013/09/20 22:36:46, kalman wrote: > ...
7 years, 3 months ago (2013-09-20 22:49:08 UTC) #3
not at google - send to devlin
https://chromiumcodereview.appspot.com/24292004/diff/1/chrome/browser/speech/chrome_speech_recognition_manager_delegate.cc File chrome/browser/speech/chrome_speech_recognition_manager_delegate.cc (right): https://chromiumcodereview.appspot.com/24292004/diff/1/chrome/browser/speech/chrome_speech_recognition_manager_delegate.cc#newcode425 chrome/browser/speech/chrome_speech_recognition_manager_delegate.cc:425: ask_permission = true; On 2013/09/20 22:49:08, lazyboy wrote: > ...
7 years, 3 months ago (2013-09-20 23:03:41 UTC) #4
lazyboy
https://chromiumcodereview.appspot.com/24292004/diff/1/chrome/browser/speech/chrome_speech_recognition_manager_delegate.cc File chrome/browser/speech/chrome_speech_recognition_manager_delegate.cc (right): https://chromiumcodereview.appspot.com/24292004/diff/1/chrome/browser/speech/chrome_speech_recognition_manager_delegate.cc#newcode425 chrome/browser/speech/chrome_speech_recognition_manager_delegate.cc:425: ask_permission = true; On 2013/09/20 23:03:41, kalman wrote: > ...
7 years, 3 months ago (2013-09-21 00:48:04 UTC) #5
not at google - send to devlin
lgtm https://chromiumcodereview.appspot.com/24292004/diff/9001/chrome/test/data/extensions/platform_apps/speech/background_page/test.js File chrome/test/data/extensions/platform_apps/speech/background_page/test.js (right): https://chromiumcodereview.appspot.com/24292004/diff/9001/chrome/test/data/extensions/platform_apps/speech/background_page/test.js#newcode13 chrome/test/data/extensions/platform_apps/speech/background_page/test.js:13: return; so.. you shouldn't need this anymore right? ...
7 years, 3 months ago (2013-09-21 04:13:55 UTC) #6
lazyboy
+xians for chrome/browser/speech/ +tapted for chrome/browser/apps/ https://chromiumcodereview.appspot.com/24292004/diff/9001/chrome/test/data/extensions/platform_apps/speech/background_page/test.js File chrome/test/data/extensions/platform_apps/speech/background_page/test.js (right): https://chromiumcodereview.appspot.com/24292004/diff/9001/chrome/test/data/extensions/platform_apps/speech/background_page/test.js#newcode13 chrome/test/data/extensions/platform_apps/speech/background_page/test.js:13: return; On 2013/09/21 ...
7 years, 3 months ago (2013-09-21 06:07:19 UTC) #7
tapted
c/b/apps lgtm
7 years, 3 months ago (2013-09-23 00:05:51 UTC) #8
no longer working on chromium
On 2013/09/23 00:05:51, tapted wrote: > c/b/apps lgtm lgtm on speech c++ code.
7 years, 3 months ago (2013-09-23 08:11:52 UTC) #9
lazyboy
FYI, I had to change the test to use FakeSpeechRecognitionManager to pass on bots. changes ...
7 years, 3 months ago (2013-09-24 02:32:02 UTC) #10
tapted
slgtm with some minor nits https://chromiumcodereview.appspot.com/24292004/diff/24001/chrome/browser/apps/speech_recognition_browsertest.cc File chrome/browser/apps/speech_recognition_browsertest.cc (right): https://chromiumcodereview.appspot.com/24292004/diff/24001/chrome/browser/apps/speech_recognition_browsertest.cc#newcode34 chrome/browser/apps/speech_recognition_browsertest.cc:34: private: nit: blank line ...
7 years, 3 months ago (2013-09-24 02:53:41 UTC) #11
lazyboy
https://chromiumcodereview.appspot.com/24292004/diff/24001/chrome/browser/apps/speech_recognition_browsertest.cc File chrome/browser/apps/speech_recognition_browsertest.cc (right): https://chromiumcodereview.appspot.com/24292004/diff/24001/chrome/browser/apps/speech_recognition_browsertest.cc#newcode34 chrome/browser/apps/speech_recognition_browsertest.cc:34: private: On 2013/09/24 02:53:41, tapted wrote: > nit: blank ...
7 years, 3 months ago (2013-09-24 07:03:53 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/lazyboy@chromium.org/24292004/38001
7 years, 3 months ago (2013-09-24 07:05:18 UTC) #13
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 3 months ago (2013-09-24 07:49:27 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/lazyboy@chromium.org/24292004/66001
7 years, 2 months ago (2013-09-27 21:47:28 UTC) #15
commit-bot: I haz the power
Retried try job too often on linux_aura for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_aura&number=82738
7 years, 2 months ago (2013-09-28 01:21:41 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/lazyboy@chromium.org/24292004/66001
7 years, 2 months ago (2013-09-28 01:47:05 UTC) #17
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos&number=159971
7 years, 2 months ago (2013-09-28 03:00:35 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/lazyboy@chromium.org/24292004/66001
7 years, 2 months ago (2013-09-28 03:07:43 UTC) #19
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos&number=160036
7 years, 2 months ago (2013-09-28 04:20:38 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/lazyboy@chromium.org/24292004/66001
7 years, 2 months ago (2013-09-28 14:29:50 UTC) #21
commit-bot: I haz the power
Retried try job too often on linux_aura for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_aura&number=83052
7 years, 2 months ago (2013-09-28 17:44:19 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/lazyboy@chromium.org/24292004/66001
7 years, 2 months ago (2013-09-28 19:01:16 UTC) #23
commit-bot: I haz the power
7 years, 2 months ago (2013-09-29 00:08:32 UTC) #24
Message was sent while issue was closed.
Change committed as 225866

Powered by Google App Engine
This is Rietveld 408576698