B2G/gecko/browser/components/feeds/src/FeedWriter.js
/**
   * Get moz-icon url for a file
   * @param   file
   *          A nsIFile object for which the moz-icon:// is returned
   * @returns moz-icon url of the given file as a string
   */
Get moz-icon url for a file
@param   file
A nsIFile object for which the moz-icon:// is returned
@returns moz-icon url of the given file as a string
Get moz - icon url for a file @param file A nsIFile object for which the moz - icon : // is returned @returns moz - icon url of the given file as a string
function FW__getFileIconURL(file) {
    var ios = Cc["@mozilla.org/network/io-service;1"].
              getService(Ci.nsIIOService);
    var fph = ios.getProtocolHandler("file")
                 .QueryInterface(Ci.nsIFileProtocolHandler);
    var urlSpec = fph.getURLSpecFromFile(file);
    return "moz-icon://" + urlSpec + "?size=16";
  }
function FW__getFileIconURL ( file ) { var ios = Cc [ "@mozilla.org/network/io-service;1" ] . getService ( Ci . nsIIOService ) ; var fph = ios . getProtocolHandler ( "file" ) . QueryInterface ( Ci . nsIFileProtocolHandler ) ; var urlSpec = fph . getURLSpecFromFile ( file ) ; return "moz-icon://" + urlSpec + "?size=16" ; }
Get moz-icon url for a file
 @param   file
          A nsIFile object for which the moz-icon:// is returned
 @returns moz-icon url of the given file as a string
Get moz - icon url for a file @param file A nsIFile object for which the moz - icon : // is returned @returns moz - icon url of the given file as a string