Bug 778561 - Remove YouTube UA hack. r=mfinkle

This commit is contained in:
Brian Nicholson 2012-07-30 21:19:04 -07:00
parent 23dd23ff11
commit ed5dda2b46

View File

@ -1960,13 +1960,6 @@ var UserAgent = {
if (tab == null)
break;
if (channel.URI.host.indexOf("youtube") != -1) {
let ua = Cc["@mozilla.org/network/protocol;1?name=http"].getService(Ci.nsIHttpProtocolHandler).userAgent;
#expand let version = "__MOZ_APP_VERSION__";
ua += " Fennec/" + version;
channel.setRequestHeader("User-Agent", ua, false);
}
// Send desktop UA if "Request Desktop Site" is enabled
if (tab.desktopMode)
channel.setRequestHeader("User-Agent", this.DESKTOP_UA, false);