From c0226020134b52209d78e67a0978f0198d01c77d Mon Sep 17 00:00:00 2001 From: Eitan Isaacson Date: Fri, 27 Apr 2012 10:44:15 -0700 Subject: [PATCH] Bug 747270 - Make UtteranceGenerator return string arrays in all generator methods. r=davidb --- accessible/src/jsat/Presenters.jsm | 2 +- accessible/src/jsat/UtteranceGenerator.jsm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/accessible/src/jsat/Presenters.jsm b/accessible/src/jsat/Presenters.jsm index e1cac5a86b7e..0db19040882d 100644 --- a/accessible/src/jsat/Presenters.jsm +++ b/accessible/src/jsat/Presenters.jsm @@ -237,7 +237,7 @@ AndroidPresenter.prototype.actionInvoked = function(aObject, aActionName) { gecko: { type: 'Accessibility:Event', eventType: ANDROID_TYPE_VIEW_CLICKED, - text: [UtteranceGenerator.genForAction(aObject, aActionName)] + text: UtteranceGenerator.genForAction(aObject, aActionName) } }); }; diff --git a/accessible/src/jsat/UtteranceGenerator.jsm b/accessible/src/jsat/UtteranceGenerator.jsm index aeada36f8c3d..fd0ef363fb20 100644 --- a/accessible/src/jsat/UtteranceGenerator.jsm +++ b/accessible/src/jsat/UtteranceGenerator.jsm @@ -54,7 +54,7 @@ var UtteranceGenerator = { }, genForAction: function(aObject, aActionName) { - return gStringBundle.GetStringFromName(this.gActionMap[aActionName]); + return [gStringBundle.GetStringFromName(this.gActionMap[aActionName])]; }, verbosityRoleMap: {