rem: var clipboard = getServiceById( "{8B5314BA-DB01-11d2-96CE-0060B0FB9956}", "nsIClipboard" ); 
add: var clipboard = Components .classes["component: .getService ( Components.interfaces.nsIClipboard ); 
context:     copyToClipboard : function ( text ) {        // Get clipboard.        var clipboard = getServiceById( "{8B5314BA-DB01-11d2-96CE-0060B0FB9956}",                                        "nsIClipboard" );        // Create tranferable that will transfer the text.        var transferable = createInstanceById( "{8B5314BC-DB01-11d2-96CE-0060B0FB9956}",                                               "nsITransferable" );        transferable.addDataFlavor( "text/plain" );        // Create wrapper for text.        var data = createInstance( "component://netscape/supports-string",                                   "nsISupportsString" );        data.data = text ;        transferable.setTransferData( "text/plain", data, text.length * 2 );        // Put on clipboard.        clipboard.setData( transferable, null );    },
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/034b27694c64fe840c9507b294a0b9dc16b0a0b8/nsContextMenu.js/buggy/xpfe/browser/resources/content/nsContextMenu.js