rem: var selectionData = this.createInstance( "component: 
add: var selectionData = this.createInstance( "@mozilla.org/supports-wstring;1", 
context:     copyToClipboard : function ( text ) {        // Get clipboard.        var clipboard = this.getService( "component://netscape/widget/clipboard",                                         "nsIClipboard" );        // Create tranferable that will transfer the text.        var transferable = this.createInstance( "component://netscape/widget/transferable",                                                "nsITransferable" );        if ( clipboard && transferable ) {          transferable.addDataFlavor( "text/unicode" );          // Create wrapper for text.          var data = this.createInstance( "component://netscape/supports-wstring",                                          "nsISupportsWString" );          if ( data ) {            data.data = text;            transferable.setTransferData( "text/unicode", data, text.length * 2 );            // Put on clipboard.            clipboard.setData( transferable, null, Components.interfaces.nsIClipboard.kGlobalClipboard );          }        }        // Create a second transferable to copy selection.  Unix needs this,        // other OS's will probably map to a no-op.        var transferableForSelection = this.createInstance( "component://netscape/widget/transferable",                                                         "nsITransferable" );                if ( clipboard && transferableForSelection ) {          transferableForSelection.addDataFlavor( "text/unicode" );          // Create wrapper for text.          var selectionData = this.createInstance( "component://netscape/supports-wstring",                                          "nsISupportsWString" );          if ( selectionData ) {            selectionData.data = text;            transferableForSelection.setTransferData( "text/unicode", selectionData, text.length * 2 );            // Put on clipboard.            clipboard.setData( transferableForSelection, null,                                Components.interfaces.nsIClipboard.kSelectionClipboard );          }        }    },
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/6cc70ebd6c97bd0b2fe48c31f579e855387ced9d/nsContextMenu.js/buggy/xpfe/browser/resources/content/nsContextMenu.js