Skip to content

Commit af8115b

Browse files
author
Dmitrijs Munda
committed
feat(devices): add iPhone 16 and iPhone 17 device families
Add portrait and landscape descriptors for the iPhone 16 and iPhone 17 generations (10 devices, 20 entries): iPhone 16 393x852 scale 3 iPhone 16 Plus 430x932 scale 3 iPhone 16 Pro 402x874 scale 3 iPhone 16 Pro Max 440x956 scale 3 iPhone 16e 390x844 scale 3 iPhone 17 402x874 scale 3 iPhone Air 420x912 scale 3 iPhone 17 Pro 402x874 scale 3 iPhone 17 Pro Max 440x956 scale 3 iPhone 17e 390x844 scale 3 Screen and scale values are taken from ios-resolution.com. Browser-chrome subtraction follows the existing iPhone 15 entries in this file (193 px portrait / 118 + 50 px landscape). UA string mirrors the existing iPhone 15 entries: Mozilla/5.0 (iPhone; CPU iPhone OS 18_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.4 Mobile/15E148 Safari/604.1 "iPhone OS 18_7" reflects Apple's UA OS-version freeze introduced in iOS 26: https://www.kochava.com/blog/ios-26-apple-freezes-os-version/ The Version/26.4 segment will be auto-normalised by doclint to whatever WebKit version Playwright currently bundles.
1 parent 3acf045 commit af8115b

1 file changed

Lines changed: 300 additions & 0 deletions

File tree

packages/playwright-core/src/server/deviceDescriptorsSource.json

Lines changed: 300 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1185,6 +1185,306 @@
11851185
"hasTouch": true,
11861186
"defaultBrowserType": "webkit"
11871187
},
1188+
"iPhone 16": {
1189+
"userAgent": "Mozilla/5.0 (iPhone; CPU iPhone OS 18_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.4 Mobile/15E148 Safari/604.1",
1190+
"screen": {
1191+
"width": 393,
1192+
"height": 852
1193+
},
1194+
"viewport": {
1195+
"width": 393,
1196+
"height": 659
1197+
},
1198+
"deviceScaleFactor": 3,
1199+
"isMobile": true,
1200+
"hasTouch": true,
1201+
"defaultBrowserType": "webkit"
1202+
},
1203+
"iPhone 16 landscape": {
1204+
"userAgent": "Mozilla/5.0 (iPhone; CPU iPhone OS 18_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.4 Mobile/15E148 Safari/604.1",
1205+
"screen": {
1206+
"width": 393,
1207+
"height": 852
1208+
},
1209+
"viewport": {
1210+
"width": 734,
1211+
"height": 343
1212+
},
1213+
"deviceScaleFactor": 3,
1214+
"isMobile": true,
1215+
"hasTouch": true,
1216+
"defaultBrowserType": "webkit"
1217+
},
1218+
"iPhone 16 Plus": {
1219+
"userAgent": "Mozilla/5.0 (iPhone; CPU iPhone OS 18_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.4 Mobile/15E148 Safari/604.1",
1220+
"screen": {
1221+
"width": 430,
1222+
"height": 932
1223+
},
1224+
"viewport": {
1225+
"width": 430,
1226+
"height": 739
1227+
},
1228+
"deviceScaleFactor": 3,
1229+
"isMobile": true,
1230+
"hasTouch": true,
1231+
"defaultBrowserType": "webkit"
1232+
},
1233+
"iPhone 16 Plus landscape": {
1234+
"userAgent": "Mozilla/5.0 (iPhone; CPU iPhone OS 18_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.4 Mobile/15E148 Safari/604.1",
1235+
"screen": {
1236+
"width": 430,
1237+
"height": 932
1238+
},
1239+
"viewport": {
1240+
"width": 814,
1241+
"height": 380
1242+
},
1243+
"deviceScaleFactor": 3,
1244+
"isMobile": true,
1245+
"hasTouch": true,
1246+
"defaultBrowserType": "webkit"
1247+
},
1248+
"iPhone 16 Pro": {
1249+
"userAgent": "Mozilla/5.0 (iPhone; CPU iPhone OS 18_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.4 Mobile/15E148 Safari/604.1",
1250+
"screen": {
1251+
"width": 402,
1252+
"height": 874
1253+
},
1254+
"viewport": {
1255+
"width": 402,
1256+
"height": 681
1257+
},
1258+
"deviceScaleFactor": 3,
1259+
"isMobile": true,
1260+
"hasTouch": true,
1261+
"defaultBrowserType": "webkit"
1262+
},
1263+
"iPhone 16 Pro landscape": {
1264+
"userAgent": "Mozilla/5.0 (iPhone; CPU iPhone OS 18_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.4 Mobile/15E148 Safari/604.1",
1265+
"screen": {
1266+
"width": 402,
1267+
"height": 874
1268+
},
1269+
"viewport": {
1270+
"width": 756,
1271+
"height": 352
1272+
},
1273+
"deviceScaleFactor": 3,
1274+
"isMobile": true,
1275+
"hasTouch": true,
1276+
"defaultBrowserType": "webkit"
1277+
},
1278+
"iPhone 16 Pro Max": {
1279+
"userAgent": "Mozilla/5.0 (iPhone; CPU iPhone OS 18_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.4 Mobile/15E148 Safari/604.1",
1280+
"screen": {
1281+
"width": 440,
1282+
"height": 956
1283+
},
1284+
"viewport": {
1285+
"width": 440,
1286+
"height": 763
1287+
},
1288+
"deviceScaleFactor": 3,
1289+
"isMobile": true,
1290+
"hasTouch": true,
1291+
"defaultBrowserType": "webkit"
1292+
},
1293+
"iPhone 16 Pro Max landscape": {
1294+
"userAgent": "Mozilla/5.0 (iPhone; CPU iPhone OS 18_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.4 Mobile/15E148 Safari/604.1",
1295+
"screen": {
1296+
"width": 440,
1297+
"height": 956
1298+
},
1299+
"viewport": {
1300+
"width": 838,
1301+
"height": 390
1302+
},
1303+
"deviceScaleFactor": 3,
1304+
"isMobile": true,
1305+
"hasTouch": true,
1306+
"defaultBrowserType": "webkit"
1307+
},
1308+
"iPhone 16e": {
1309+
"userAgent": "Mozilla/5.0 (iPhone; CPU iPhone OS 18_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.4 Mobile/15E148 Safari/604.1",
1310+
"screen": {
1311+
"width": 390,
1312+
"height": 844
1313+
},
1314+
"viewport": {
1315+
"width": 390,
1316+
"height": 651
1317+
},
1318+
"deviceScaleFactor": 3,
1319+
"isMobile": true,
1320+
"hasTouch": true,
1321+
"defaultBrowserType": "webkit"
1322+
},
1323+
"iPhone 16e landscape": {
1324+
"userAgent": "Mozilla/5.0 (iPhone; CPU iPhone OS 18_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.4 Mobile/15E148 Safari/604.1",
1325+
"screen": {
1326+
"width": 390,
1327+
"height": 844
1328+
},
1329+
"viewport": {
1330+
"width": 726,
1331+
"height": 340
1332+
},
1333+
"deviceScaleFactor": 3,
1334+
"isMobile": true,
1335+
"hasTouch": true,
1336+
"defaultBrowserType": "webkit"
1337+
},
1338+
"iPhone 17": {
1339+
"userAgent": "Mozilla/5.0 (iPhone; CPU iPhone OS 18_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.4 Mobile/15E148 Safari/604.1",
1340+
"screen": {
1341+
"width": 402,
1342+
"height": 874
1343+
},
1344+
"viewport": {
1345+
"width": 402,
1346+
"height": 681
1347+
},
1348+
"deviceScaleFactor": 3,
1349+
"isMobile": true,
1350+
"hasTouch": true,
1351+
"defaultBrowserType": "webkit"
1352+
},
1353+
"iPhone 17 landscape": {
1354+
"userAgent": "Mozilla/5.0 (iPhone; CPU iPhone OS 18_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.4 Mobile/15E148 Safari/604.1",
1355+
"screen": {
1356+
"width": 402,
1357+
"height": 874
1358+
},
1359+
"viewport": {
1360+
"width": 756,
1361+
"height": 352
1362+
},
1363+
"deviceScaleFactor": 3,
1364+
"isMobile": true,
1365+
"hasTouch": true,
1366+
"defaultBrowserType": "webkit"
1367+
},
1368+
"iPhone Air": {
1369+
"userAgent": "Mozilla/5.0 (iPhone; CPU iPhone OS 18_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.4 Mobile/15E148 Safari/604.1",
1370+
"screen": {
1371+
"width": 420,
1372+
"height": 912
1373+
},
1374+
"viewport": {
1375+
"width": 420,
1376+
"height": 719
1377+
},
1378+
"deviceScaleFactor": 3,
1379+
"isMobile": true,
1380+
"hasTouch": true,
1381+
"defaultBrowserType": "webkit"
1382+
},
1383+
"iPhone Air landscape": {
1384+
"userAgent": "Mozilla/5.0 (iPhone; CPU iPhone OS 18_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.4 Mobile/15E148 Safari/604.1",
1385+
"screen": {
1386+
"width": 420,
1387+
"height": 912
1388+
},
1389+
"viewport": {
1390+
"width": 794,
1391+
"height": 370
1392+
},
1393+
"deviceScaleFactor": 3,
1394+
"isMobile": true,
1395+
"hasTouch": true,
1396+
"defaultBrowserType": "webkit"
1397+
},
1398+
"iPhone 17 Pro": {
1399+
"userAgent": "Mozilla/5.0 (iPhone; CPU iPhone OS 18_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.4 Mobile/15E148 Safari/604.1",
1400+
"screen": {
1401+
"width": 402,
1402+
"height": 874
1403+
},
1404+
"viewport": {
1405+
"width": 402,
1406+
"height": 681
1407+
},
1408+
"deviceScaleFactor": 3,
1409+
"isMobile": true,
1410+
"hasTouch": true,
1411+
"defaultBrowserType": "webkit"
1412+
},
1413+
"iPhone 17 Pro landscape": {
1414+
"userAgent": "Mozilla/5.0 (iPhone; CPU iPhone OS 18_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.4 Mobile/15E148 Safari/604.1",
1415+
"screen": {
1416+
"width": 402,
1417+
"height": 874
1418+
},
1419+
"viewport": {
1420+
"width": 756,
1421+
"height": 352
1422+
},
1423+
"deviceScaleFactor": 3,
1424+
"isMobile": true,
1425+
"hasTouch": true,
1426+
"defaultBrowserType": "webkit"
1427+
},
1428+
"iPhone 17 Pro Max": {
1429+
"userAgent": "Mozilla/5.0 (iPhone; CPU iPhone OS 18_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.4 Mobile/15E148 Safari/604.1",
1430+
"screen": {
1431+
"width": 440,
1432+
"height": 956
1433+
},
1434+
"viewport": {
1435+
"width": 440,
1436+
"height": 763
1437+
},
1438+
"deviceScaleFactor": 3,
1439+
"isMobile": true,
1440+
"hasTouch": true,
1441+
"defaultBrowserType": "webkit"
1442+
},
1443+
"iPhone 17 Pro Max landscape": {
1444+
"userAgent": "Mozilla/5.0 (iPhone; CPU iPhone OS 18_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.4 Mobile/15E148 Safari/604.1",
1445+
"screen": {
1446+
"width": 440,
1447+
"height": 956
1448+
},
1449+
"viewport": {
1450+
"width": 838,
1451+
"height": 390
1452+
},
1453+
"deviceScaleFactor": 3,
1454+
"isMobile": true,
1455+
"hasTouch": true,
1456+
"defaultBrowserType": "webkit"
1457+
},
1458+
"iPhone 17e": {
1459+
"userAgent": "Mozilla/5.0 (iPhone; CPU iPhone OS 18_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.4 Mobile/15E148 Safari/604.1",
1460+
"screen": {
1461+
"width": 390,
1462+
"height": 844
1463+
},
1464+
"viewport": {
1465+
"width": 390,
1466+
"height": 651
1467+
},
1468+
"deviceScaleFactor": 3,
1469+
"isMobile": true,
1470+
"hasTouch": true,
1471+
"defaultBrowserType": "webkit"
1472+
},
1473+
"iPhone 17e landscape": {
1474+
"userAgent": "Mozilla/5.0 (iPhone; CPU iPhone OS 18_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.4 Mobile/15E148 Safari/604.1",
1475+
"screen": {
1476+
"width": 390,
1477+
"height": 844
1478+
},
1479+
"viewport": {
1480+
"width": 726,
1481+
"height": 340
1482+
},
1483+
"deviceScaleFactor": 3,
1484+
"isMobile": true,
1485+
"hasTouch": true,
1486+
"defaultBrowserType": "webkit"
1487+
},
11881488
"Kindle Fire HDX": {
11891489
"userAgent": "Mozilla/5.0 (Linux; U; en-us; KFAPWI Build/JDQ39) AppleWebKit/535.19 (KHTML, like Gecko) Silk/3.13 Safari/535.19 Silk-Accelerated=true",
11901490
"viewport": {

0 commit comments

Comments
 (0)