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

Issue 1117383002: Changing serviceuri param to be url from string in Blink and tagging requests to speech recognizer

Created:
5 years, 7 months ago by kirtia
Modified:
5 years, 6 months ago
CC:
blink-reviews, dglazkov+blink, igreene_google.com
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Changing serviceuri param in SpeechRecognition to be url rather than string. Also tagging the requests coming from browser by prepending chromium to client param in serviceURI, if there is any. Any malformed strings/urls will be ignored and not sent further to the speech recognizer. BUG=480516

Patch Set 1 #

Patch Set 2 : Pulling the base changes #

Patch Set 3 : Fixing compile errors #

Total comments: 8

Patch Set 4 : Adding layout tests and forward declaring KURL #

Total comments: 4

Patch Set 5 : Modifying tests to add better examples and removing the unnecessary comment #

Total comments: 2

Patch Set 6 : Removing the exception on invalid urls, adding chromium to client param of serviceURI, and changing… #

Unified diffs Side-by-side diffs Delta from patch set Stats (+79 lines, -10 lines) Patch
M LayoutTests/fast/speech/scripted/speechrecognition-basics.html View 1 2 3 4 5 1 chunk +39 lines, -1 line 0 comments Download
M LayoutTests/fast/speech/scripted/speechrecognition-basics-expected.txt View 1 2 3 4 5 1 chunk +17 lines, -0 lines 0 comments Download
M LayoutTests/fast/speech/scripted/start-exception.html View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M Source/modules/speech/SpeechRecognition.cpp View 1 2 3 4 5 2 chunks +12 lines, -1 line 0 comments Download
M Source/modules/speech/SpeechRecognitionClient.h View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M Source/modules/speech/SpeechRecognitionController.h View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M Source/web/SpeechRecognitionClientProxy.h View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M Source/web/SpeechRecognitionClientProxy.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M public/web/WebSpeechRecognitionParams.h View 1 4 chunks +4 lines, -3 lines 0 comments Download

Messages

Total messages: 20 (4 generated)
kirtia
Please take a look. Thanks!!!
5 years, 7 months ago (2015-05-01 22:09:08 UTC) #2
dmazzoni
lgtm for Source/modules/speech +jochen for public/web
5 years, 7 months ago (2015-05-04 16:23:58 UTC) #4
jochen (gone - plz use gerrit)
can you add a layout test for this please? please also update the cl description ...
5 years, 7 months ago (2015-05-05 13:57:54 UTC) #5
kirtia
Thanks so much! PTAL =) https://codereview.chromium.org/1117383002/diff/40001/Source/modules/speech/SpeechRecognition.cpp File Source/modules/speech/SpeechRecognition.cpp (right): https://codereview.chromium.org/1117383002/diff/40001/Source/modules/speech/SpeechRecognition.cpp#newcode65 Source/modules/speech/SpeechRecognition.cpp:65: exceptionState.throwDOMException(SyntaxError, "serviceuri is invalid"); ...
5 years, 7 months ago (2015-05-05 23:12:30 UTC) #6
jochen (gone - plz use gerrit)
+tommi/gshires for spec question https://codereview.chromium.org/1117383002/diff/60001/Source/modules/speech/SpeechRecognition.cpp File Source/modules/speech/SpeechRecognition.cpp (right): https://codereview.chromium.org/1117383002/diff/60001/Source/modules/speech/SpeechRecognition.cpp#newcode63 Source/modules/speech/SpeechRecognition.cpp:63: // Throw an error if ...
5 years, 7 months ago (2015-05-06 13:03:59 UTC) #8
kirtia
Thanks for the quick review! PTAL :-) I have made a couple of changes in ...
5 years, 7 months ago (2015-05-06 14:57:13 UTC) #9
jochen (gone - plz use gerrit)
what's gshires' take on the spec question?
5 years, 7 months ago (2015-05-07 11:50:38 UTC) #10
gshires1
On 2015/05/07 11:50:38, jochen wrote: > what's gshires' take on the spec question? I agree ...
5 years, 7 months ago (2015-05-07 21:00:39 UTC) #11
domenic
On 2015/05/07 at 21:00:39, gshires wrote: > On 2015/05/07 11:50:38, jochen wrote: > > what's ...
5 years, 7 months ago (2015-05-07 21:22:51 UTC) #12
esprehn
Please bring this to the standards body first. We shouldn't be inventing vendor:// urls for ...
5 years, 7 months ago (2015-05-08 19:41:05 UTC) #13
gshires1
domenic #12: So instead of throwing an exception, do you recommend that it ignore any ...
5 years, 7 months ago (2015-05-20 20:52:23 UTC) #14
gshires1
https://codereview.chromium.org/1117383002/diff/80001/LayoutTests/fast/speech/scripted/speechrecognition-basics.html File LayoutTests/fast/speech/scripted/speechrecognition-basics.html (right): https://codereview.chromium.org/1117383002/diff/80001/LayoutTests/fast/speech/scripted/speechrecognition-basics.html#newcode33 LayoutTests/fast/speech/scripted/speechrecognition-basics.html:33: evalAndLog("r.serviceURI = 'vendor://com.google?foo=bar&client=chromium/com.example'"); Change this to "chrome://speech-recognition?foo=bar&client=com.example" (Please also ...
5 years, 7 months ago (2015-05-20 20:55:09 UTC) #15
kirtia
On 2015/05/20 20:52:23, gshires1 wrote: > domenic #12: So instead of throwing an exception, do ...
5 years, 7 months ago (2015-05-26 21:42:14 UTC) #16
jochen (gone - plz use gerrit)
On 2015/05/26 at 21:42:14, kirtia wrote: > On 2015/05/20 20:52:23, gshires1 wrote: > > domenic ...
5 years, 7 months ago (2015-05-27 15:01:28 UTC) #17
kirtia
Please take another look. Thanks! K https://codereview.chromium.org/1117383002/diff/60001/Source/modules/speech/SpeechRecognition.cpp File Source/modules/speech/SpeechRecognition.cpp (right): https://codereview.chromium.org/1117383002/diff/60001/Source/modules/speech/SpeechRecognition.cpp#newcode65 Source/modules/speech/SpeechRecognition.cpp:65: exceptionState.throwDOMException(SyntaxError, "serviceURI is ...
5 years, 6 months ago (2015-06-02 20:56:58 UTC) #19
jochen (gone - plz use gerrit)
5 years, 6 months ago (2015-06-05 12:08:03 UTC) #20
(waiting for the result on the blink-dev thread)

Powered by Google App Engine
This is Rietveld 408576698