From 50a5d1faf6d87bc96bb8d5a028cc9347d274a546 Mon Sep 17 00:00:00 2001 From: Edward Lee Date: Sun, 21 Nov 2010 22:35:26 -0800 Subject: [PATCH] Bug 613767 - Return in tab modal prompts doesn't trigger default action [r=dolske a=dolske] Pass the number instead of the xul:button. --HG-- extra : rebase_source : 4ef8ddbf765efe40ccb6e4e389112926cef82749 --- toolkit/components/prompts/content/tabprompts.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toolkit/components/prompts/content/tabprompts.xml b/toolkit/components/prompts/content/tabprompts.xml index ff0e3ba93519..c3d31ad8dca1 100644 --- a/toolkit/components/prompts/content/tabprompts.xml +++ b/toolkit/components/prompts/content/tabprompts.xml @@ -208,7 +208,7 @@ let button = this.ui["button" + bnum]; if (!button.hasAttribute("default")) return; - this.onButtonClick(button); + this.onButtonClick(bnum); } else { // action == "cancel" this.onButtonClick(1); // Cancel button }