diff --git a/mobile/android/chrome/content/browser.js b/mobile/android/chrome/content/browser.js index bfada6a2aa80..2875be2fad85 100644 --- a/mobile/android/chrome/content/browser.js +++ b/mobile/android/chrome/content/browser.js @@ -1717,6 +1717,10 @@ var NativeWindow = { * the checked state as an argument. */ show: function(aMessage, aValue, aButtons, aTabID, aOptions) { + if (aButtons == null) { + aButtons = []; + } + aButtons.forEach((function(aButton) { this._callbacks[this._callbacksId] = { cb: aButton.callback, prompt: this._promptId }; aButton.callback = this._callbacksId;