rem: .classes["component: 
add: .classes["@mozilla.org/widget/clipboard;1"] 
context:   function readFromClipboard()  {    try {      // Get clipboard.      var clipboard = Components                        .classes["component://netscape/widget/clipboard"]                          .getService ( Components.interfaces.nsIClipboard );      // Create tranferable that will transfer the text.      var trans = Components                     .classes["component://netscape/widget/transferable"]                       .createInstance( Components.interfaces.nsITransferable );      if ( !clipboard || !trans )        return null;      trans.addDataFlavor( "text/unicode" );      clipboard.getData(trans, clipboard.kSelectionClipboard);      var data = new Object();      var dataLen = new Object();      trans.getTransferData("text/unicode", data, dataLen);      var url = null;      if (data)      {        data = data.value.QueryInterface(Components.interfaces                                                      .nsISupportsWString);        url = data.data.substring(0, dataLen.value / 2);      }      return url;    } catch(ex) {      return null;    }  }
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/0257791053c2b38e1dfaf2ee11afae973e82e394/navigator.js/buggy/xpfe/browser/resources/content/navigator.js