rem: var cmdController; try 
add: if (controller instanceof Components.interfaces.nsICommandController) 
context: function goDoCommandParams(command, params){  try  {    var controller = top.document.commandDispatcher.getControllerForCommand(command);    if (controller && controller.isCommandEnabled(command))    {      var cmdController;      try      {        cmdController = controller.QueryInterface(Components.interfaces.nsICommandController);      } catch(e) {}      if (cmdController)      {        cmdController.doCommandWithParams(command, params);        // the following two lines should be removed when we implement observers        if (params)          cmdController.getCommandStateWithParams(command, params);      }      else      {        controller.doCommand(command);      }      ResetStructToolbar();    }  }  catch (e)  {    dump("An error occurred executing the "+command+" command\n");  }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/463ef3d5d42d07a90c06f7b34f7dd81d9cb3b2da/ComposerCommands.js/buggy/editor/ui/composer/content/ComposerCommands.js