This repository was archived by the owner on Feb 17, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -536,6 +536,11 @@ var uastrings = []struct {
536
536
ua : "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/53.0.2785.143 Chrome/53.0.2785.143 Safari/537.36" ,
537
537
expected : "Mozilla:5.0 Platform:X11 OS:Linux x86_64 Browser:Chromium-53.0.2785.143 Engine:AppleWebKit-537.36 Bot:false Mobile:false" ,
538
538
},
539
+ {
540
+ title : "Firefox for iOS" ,
541
+ ua : "Mozilla/5.0 (iPhone; CPU iPhone OS 8_3 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) FxiOS/1.0 Mobile/12F69 Safari/600.1.4" ,
542
+ expected : "Mozilla:5.0 Platform:iPhone OS:CPU iPhone OS 8_3 like Mac OS X Browser:Firefox-1.0 Engine:AppleWebKit-600.1.4 Bot:false Mobile:true" ,
543
+ },
539
544
540
545
// Dalvik
541
546
{
Original file line number Diff line number Diff line change @@ -79,6 +79,8 @@ func (p *UserAgent) detectBrowser(sections []section) {
79
79
p .browser .Name = "Chrome"
80
80
case "Chromium" :
81
81
p .browser .Name = "Chromium"
82
+ case "FxiOS" :
83
+ p .browser .Name = "Firefox"
82
84
default :
83
85
p .browser .Name = "Safari"
84
86
}
You can’t perform that action at this time.
0 commit comments