@@ -62,21 +62,25 @@ testIframe(
62
62
cssHas : true ,
63
63
reliableTrDimensions : false
64
64
} ,
65
- chrome : {
65
+ chrome_111 : {
66
66
cssHas : false ,
67
67
reliableTrDimensions : true
68
68
} ,
69
- safari : {
69
+ chrome : {
70
+ cssHas : true ,
71
+ reliableTrDimensions : true
72
+ } ,
73
+ safari_16_3 : {
70
74
cssHas : false ,
71
75
reliableTrDimensions : true
72
76
} ,
73
- webkit : {
77
+ safari : {
74
78
cssHas : true ,
75
79
reliableTrDimensions : true
76
80
} ,
77
- firefox_102 : {
81
+ webkit : {
78
82
cssHas : true ,
79
- reliableTrDimensions : false
83
+ reliableTrDimensions : true
80
84
} ,
81
85
firefox : {
82
86
cssHas : true ,
@@ -86,9 +90,13 @@ testIframe(
86
90
cssHas : true ,
87
91
reliableTrDimensions : true
88
92
} ,
89
- ios : {
93
+ ios_15_4_16_3 : {
90
94
cssHas : false ,
91
95
reliableTrDimensions : true
96
+ } ,
97
+ ios : {
98
+ cssHas : true ,
99
+ reliableTrDimensions : true
92
100
}
93
101
} ;
94
102
@@ -101,17 +109,19 @@ testIframe(
101
109
102
110
if ( document . documentMode ) {
103
111
expected = expectedMap . ie_11 ;
104
- } else if ( / c h r o m e / i. test ( userAgent ) ) {
112
+ } else if ( / \b (?: h e a d l e s s ) ? c h r o m e \/ (?: 1 0 \d | 1 1 [ 0 1 ] ) \b / i. test ( userAgent ) ) {
113
+ expected = expectedMap . chrome_111 ;
114
+ } else if ( / \b (?: h e a d l e s s ) ? c h r o m e \/ / i. test ( userAgent ) ) {
105
115
106
116
// Catches Edge, Chrome on Android & Opera as well.
107
117
expected = expectedMap . chrome ;
108
- } else if ( / f i r e f o x \/ 1 0 2 \. / i. test ( userAgent ) ) {
109
- expected = expectedMap . firefox_102 ;
110
- } else if ( / f i r e f o x / i. test ( userAgent ) ) {
118
+ } else if ( / \b f i r e f o x \/ / i. test ( userAgent ) ) {
111
119
expected = expectedMap . firefox ;
112
- } else if ( / i p h o n e o s (?: 1 4 _ | 1 5 _ [ 0 1 2 3 ] ) / i. test ( userAgent ) ) {
120
+ } else if ( / \b i p h o n e o s (?: 1 4 _ | 1 5 _ [ 0 1 2 3 ] ) / i. test ( userAgent ) ) {
113
121
expected = expectedMap . ios_14_15_3 ;
114
- } else if ( / (?: i p h o n e | i p a d ) ; .* (?: i p h o n e ) ? o s \d + _ / i. test ( userAgent ) ) {
122
+ } else if ( / \b i p h o n e o s (?: 1 5 _ | 1 6 _ [ 0 1 2 3 ] ) / i. test ( userAgent ) ) {
123
+ expected = expectedMap . ios_15_4_16_3 ;
124
+ } else if ( / \b (?: i p h o n e | i p a d ) ; .* (?: i p h o n e ) ? o s \d + _ / i. test ( userAgent ) ) {
115
125
expected = expectedMap . ios ;
116
126
} else if ( typeof URLSearchParams !== "undefined" &&
117
127
@@ -125,7 +135,9 @@ testIframe(
125
135
) === "Playwright"
126
136
) {
127
137
expected = expectedMap . webkit ;
128
- } else if ( / \b \d + ( \. \d + ) + s a f a r i / i. test ( userAgent ) ) {
138
+ } else if ( / \b v e r s i o n \/ (?: 1 5 | 1 6 \. [ 0 1 2 3 ] ) (?: \. \d + ) * s a f a r i / i. test ( userAgent ) ) {
139
+ expected = expectedMap . safari_16_3 ;
140
+ } else if ( / \b v e r s i o n \/ \d + (?: \. \d + ) + s a f a r i / i. test ( userAgent ) ) {
129
141
expected = expectedMap . safari ;
130
142
}
131
143
0 commit comments