mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-14 02:31:59 +00:00
Bug 778561 - Remove YouTube UA hack. r=mfinkle
This commit is contained in:
parent
23dd23ff11
commit
ed5dda2b46
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user