Bug 599833 URLbar "Paste and Go" isCommandEnabled does not always return a value. r=Neil
authorPhilip Chee <philip.chee@gmail.com>
Mon, 11 Oct 2010 23:02:54 +0800
changeset 6540 c01b6b5f2b8e9c38e4c064f5d1b41731d3c51b27
parent 6539 e78fa272104281a05c15af612be0ebe0b40c2b29
child 6541 ac22bdb43e9945c37a9fb2fa7b4816675302884d
push idunknown
push userunknown
push dateunknown
reviewersNeil
bugs599833
Bug 599833 URLbar "Paste and Go" isCommandEnabled does not always return a value. r=Neil
suite/browser/urlbarBindings.xml
--- a/suite/browser/urlbarBindings.xml
+++ b/suite/browser/urlbarBindings.xml
@@ -114,16 +114,17 @@
           },
           isCommandEnabled: function(aCommand) {
             switch (aCommand) {
               case "cmd_pasteAndGo":
                 return document.commandDispatcher
                                .getControllerForCommand("cmd_paste")
                                .isCommandEnabled("cmd_paste");
             }
+            return false;
           },
           doCommand: function(aCommand) {
             switch (aCommand) {
               case "cmd_pasteAndGo":
                 this.value = "";
                 goDoCommand("cmd_paste");
                 this._fireEvent("textentered", "pasting");
                 break;