rem: controller = window.controllers.getControllerById(gComposerJSCommandControllerID); 
add: controller = window.content.controllers.getControllerById(gComposerJSCommandControllerID); 
context: function GetComposerCommandManager(){	var controller;  if (gComposerJSCommandControllerID)  {    try {       controller = window.controllers.getControllerById(gComposerJSCommandControllerID);    } catch (e) {}  }  if (!controller)  {    //create it    controller = Components.classes["@mozilla.org/embedcomp/base-command-controller;1"].createInstance();    window.content.controllers.insertControllerAt(0, controller);      // Store the controller ID so we can be sure to get the right one later    gComposerJSCommandControllerID = window.content.controllers.getControllerId(controller);  }  if (controller)  {    var interfaceRequestor = controller.QueryInterface(Components.interfaces.nsIInterfaceRequestor);    return interfaceRequestor.getInterface(Components.interfaces.nsIControllerCommandManager);  }  return null;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/6b4cb996324e103b8cb4e58172fe6271d4db1bdc/ComposerCommands.js/buggy/editor/ui/composer/content/ComposerCommands.js