summaryrefslogtreecommitdiffstats
path: root/chrome/renderer
diff options
context:
space:
mode:
authordmazzoni@chromium.org <dmazzoni@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-14 01:30:23 +0000
committerdmazzoni@chromium.org <dmazzoni@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-14 01:30:23 +0000
commit47058f6fdb07be8b387f9622a687cea15c0f888e (patch)
tree31eed78096edfe9efc7bdd52f7d06eed0b12acc1 /chrome/renderer
parent2a8b52c25832adfb76b42736112cc14c4aaa3c77 (diff)
downloadchromium_src-47058f6fdb07be8b387f9622a687cea15c0f888e.zip
chromium_src-47058f6fdb07be8b387f9622a687cea15c0f888e.tar.gz
chromium_src-47058f6fdb07be8b387f9622a687cea15c0f888e.tar.bz2
Fix some bugs when speak() is called without all of its arguments.
BUG=89255 TEST=Adds TtsApiTest.PlatformSpeakOptionalArgs Review URL: http://codereview.chromium.org/7360006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92461 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer')
-rw-r--r--chrome/renderer/resources/extension_process_bindings.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/renderer/resources/extension_process_bindings.js b/chrome/renderer/resources/extension_process_bindings.js
index 64814c9..298248f 100644
--- a/chrome/renderer/resources/extension_process_bindings.js
+++ b/chrome/renderer/resources/extension_process_bindings.js
@@ -1010,7 +1010,7 @@ var chrome = chrome || {};
apiFunctions["experimental.tts.speak"].handleRequest = function() {
var args = arguments;
- if (args.length > 1 && args[1].onevent) {
+ if (args.length > 1 && args[1] && args[1].onevent) {
var id = GetNextTtsEventId();
args[1].srcId = id;
chromeHidden.tts.handlers[id] = args[1].onevent;