B2G/gecko/browser/components/thumbnails/PageThumbsProtocol.js
/**
   * Creates a new URI object that is suitable for loading by this protocol.
   * @param aSpec The URI string in UTF8 encoding.
   * @param aOriginCharset The charset of the document from which the URI originated.
   * @return The newly created URI.
   */
Creates a new URI object that is suitable for loading by this protocol.
@param aSpec The URI string in UTF8 encoding.
@param aOriginCharset The charset of the document from which the URI originated.
@return The newly created URI.
Creates a new URI object that is suitable for loading by this protocol . @param aSpec The URI string in UTF8 encoding . @param aOriginCharset The charset of the document from which the URI originated . @return The newly created URI .
function Proto_newURI(aSpec, aOriginCharset) {
    let uri = Cc["@mozilla.org/network/simple-uri;1"].createInstance(Ci.nsIURI);
    uri.spec = aSpec;
    return uri;
  }
function Proto_newURI ( aSpec , aOriginCharset ) { let uri = Cc [ "@mozilla.org/network/simple-uri;1" ] . createInstance ( Ci . nsIURI ) ; uri . spec = aSpec ; return uri ; }
Creates a new URI object that is suitable for loading by this protocol.
Creates a new URI object that is suitable for loading by this protocol .