mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1178761 - Fix DesktopUserAgent regex to account for Android version. r=mfinkle
This commit is contained in:
parent
2d7ca5c227
commit
bf4f0709fe
@ -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");
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user