File tree Expand file tree Collapse file tree 2 files changed +22
-18
lines changed Expand file tree Collapse file tree 2 files changed +22
-18
lines changed Original file line number Diff line number Diff line change 555
555
if ( / \b S i m u l a t o r \b / i. test ( ua ) ) {
556
556
product = ( product ? product + ' ' : '' ) + 'Simulator' ;
557
557
}
558
+ // detect Firefox OS
559
+ if ( ( / \( M o b i l e | T a b l e t .* F i r e f o x / i) . test ( ua ) ) {
560
+ os = 'Firefox OS' ;
561
+ }
558
562
// detect iOS
559
563
if ( / ^ i P / . test ( product ) ) {
560
564
name || ( name = 'Safari' ) ;
676
680
version = version . replace ( RegExp ( data + '\\+?$' ) , '' ) +
677
681
( prerelease == 'beta' ? beta : alpha ) + ( / \d + \+ ? / . exec ( data ) || '' ) ;
678
682
}
679
- // rename code name "Fennec"
680
- if ( name == 'Fennec' ) {
683
+ // detect Firefox Mobile
684
+ if ( name == 'Fennec' || name == 'Firefox' && / A n d r o i d | F i r e f o x O S / . test ( os ) ) {
681
685
name = 'Firefox Mobile' ;
682
686
}
683
687
// obscure Maxthon's unreliable version
Original file line number Diff line number Diff line change 617
617
'version' : '24.0'
618
618
} ,
619
619
620
+ 'Firefox Mobile#{ }24.0 on Android' : {
621
+ 'ua' : 'Mozilla/5.0 (Android; Tablet; rv:24.0) Gecko/24.0 Firefox/24.0' ,
622
+ 'layout' : 'Gecko' ,
623
+ 'name' : 'Firefox Mobile' ,
624
+ 'os' : 'Android' ,
625
+ 'version' : '24.0'
626
+ } ,
627
+
628
+ 'Firefox Mobile 26.0 on Firefox OS' : {
629
+ 'ua' : 'Mozilla/5.0 (Tablet; rv:26.0) Gecko/26.0 Firefox/26.0' ,
630
+ 'layout' : 'Gecko' ,
631
+ 'name' : 'Firefox Mobile' ,
632
+ 'os' : 'Firefox OS' ,
633
+ 'version' : '26.0'
634
+ } ,
635
+
620
636
'Firefox Mobile 2.0#{beta}1 on Android' : {
621
637
'ua' : 'Mozilla/5.0 (Android; Linux armv7l; rv:2.0b6pre) Gecko/20100907 Firefox/4.0b6pre Fennec/2.0b1pre' ,
622
638
'layout' : 'Gecko' ,
642
658
'version' : '10.0.5'
643
659
} ,
644
660
645
- 'Firefox Mobile 24.0 on Android' : {
646
- 'ua' : 'Mozilla/5.0 (Android; Mobile; rv:24.0) Gecko/24.0 Firefox/24.0' ,
647
- 'layout' : 'Gecko' ,
648
- 'name' : 'Firefox Mobile' ,
649
- 'os' : 'Android' ,
650
- 'version' : '24.0'
651
- } ,
652
-
653
- 'Firefox Mobile 24.0 on Android' : {
654
- 'ua' : 'Mozilla/5.0 (Android; Tablet; rv:24.0) Gecko/24.0 Firefox/24.0' ,
655
- 'layout' : 'Gecko' ,
656
- 'name' : 'Firefox Mobile' ,
657
- 'os' : 'Android' ,
658
- 'version' : '24.0'
659
- } ,
660
-
661
661
'Flock 2.0#{alpha}1 on Linux i686' : {
662
662
'ua' : 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9pre) Gecko/2008051917 Firefox/3.0pre Flock/2.0a1pre' ,
663
663
'layout' : 'Gecko' ,
You can’t perform that action at this time.
0 commit comments