Bug 1178761 - Fix DesktopUserAgent regex to account for Android version. r=mfinkle

This commit is contained in:
Mike Taylor 2015-06-30 08:54:00 -04:00
parent 2d7ca5c227
commit bf4f0709fe

View File

@ -3203,7 +3203,7 @@ var DesktopUserAgent = {
// See https://developer.mozilla.org/en/Gecko_user_agent_string_reference
this.DESKTOP_UA = Cc["@mozilla.org/network/protocol;1?name=http"]
.getService(Ci.nsIHttpProtocolHandler).userAgent
.replace(/Android; [a-zA-Z]+/, "X11; Linux x86_64")
.replace(/Android \d.+?; [a-zA-Z]+/, "X11; Linux x86_64")
.replace(/Gecko\/[0-9\.]+/, "Gecko/20100101");
},