B2G/gecko/b2g/components/YoutubeProtocolHandler.js
// Note that there is no hostname, so we use URLTYPE_NO_AUTHORITY
Note that there is no hostname, so we use URLTYPE_NO_AUTHORITY
Note that there is no hostname so we use URLTYPE_NO_AUTHORITY
function yt_phNewURI(aSpec, aOriginCharset, aBaseURI) {
    let uri = Cc["@mozilla.org/network/standard-url;1"]
              .createInstance(Ci.nsIStandardURL);
    uri.init(Ci.nsIStandardURL.URLTYPE_NO_AUTHORITY, this.defaultPort,
             aSpec, aOriginCharset, aBaseURI);
    return uri.QueryInterface(Ci.nsIURI);
  }
function yt_phNewURI ( aSpec , aOriginCharset , aBaseURI ) { let uri = Cc [ "@mozilla.org/network/standard-url;1" ] . createInstance ( Ci . nsIStandardURL ) ; uri . init ( Ci . nsIStandardURL . URLTYPE_NO_AUTHORITY , this . defaultPort , aSpec , aOriginCharset , aBaseURI ) ; return uri . QueryInterface ( Ci . nsIURI ) ; }
Note that there is no hostname, so we use URLTYPE_NO_AUTHORITY
Note that there is no hostname so we use URLTYPE_NO_AUTHORITY