|
331 | 331 | "color",
|
332 | 332 | "luminosity"
|
333 | 333 | ]
|
334 |
| - }, |
335 |
| - "PermissionName": { |
336 |
| - "name": "PermissionName", |
337 |
| - // This is a subset of the permissions defined in the spec: |
338 |
| - // https://w3c.github.io/powerful-features-registry/#registry-table-of-powerful-features |
339 |
| - // Please add a feature only when it's supported by multiple engines. |
340 |
| - "value": [ |
341 |
| - // https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API#browser_compatibility |
342 |
| - "geolocation", |
343 |
| - // https://developer.mozilla.org/en-US/docs/Web/API/Notifications_API#browser_compatibility |
344 |
| - "notifications", |
345 |
| - // https://developer.mozilla.org/en-US/docs/Web/API/Storage_API#browser_compatibility |
346 |
| - "persistent-storage", |
347 |
| - // https://developer.mozilla.org/en-US/docs/Web/API/Push_API#browser_compatibility |
348 |
| - "push", |
349 |
| - // https://developer.mozilla.org/en-US/docs/Web/API/Screen_Wake_Lock_API#browser_compatibility |
350 |
| - "screen-wake-lock", |
351 |
| - // WebXR is also actually Blink-only |
352 |
| - // https://developer.mozilla.org/en-US/docs/Web/API/WebXR_Device_API#browser_compatibility |
353 |
| - "xr-spatial-tracking" |
354 |
| - ] |
355 | 334 | }
|
356 | 335 | }
|
357 | 336 | },
|
|
1312 | 1291 | }
|
1313 | 1292 | }
|
1314 | 1293 | }
|
| 1294 | + }, |
| 1295 | + // This is a subset of the permissions defined in the spec: |
| 1296 | + // https://w3c.github.io/powerful-features-registry/#registry-table-of-powerful-features |
| 1297 | + // Please add a feature only when it's supported by multiple engines., |
| 1298 | + "PermissionNameMap": { |
| 1299 | + "name": "PermissionNameMap", |
| 1300 | + "exposed": "Window Worker Worklet", |
| 1301 | + "members": { |
| 1302 | + "member": { |
| 1303 | + // https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API#browser_compatibility |
| 1304 | + "geolocation": { |
| 1305 | + "name": "geolocation", |
| 1306 | + "overrideType": "\"geolocation\"", |
| 1307 | + "required": 1 |
| 1308 | + }, |
| 1309 | + // https://developer.mozilla.org/en-US/docs/Web/API/Notifications_API#browser_compatibility |
| 1310 | + "notifications": { |
| 1311 | + "name": "notifications", |
| 1312 | + "overrideType": "\"notifications\"", |
| 1313 | + "required": 1 |
| 1314 | + }, |
| 1315 | + // https://developer.mozilla.org/en-US/docs/Web/API/Storage_API#browser_compatibility |
| 1316 | + "\"persistent-storage\"": { |
| 1317 | + "name": "\"persistent-storage\"", |
| 1318 | + "overrideType": "\"persistent-storage\"", |
| 1319 | + "required": 1 |
| 1320 | + }, |
| 1321 | + // https://developer.mozilla.org/en-US/docs/Web/API/Push_API#browser_compatibility |
| 1322 | + "push": { |
| 1323 | + "name": "push", |
| 1324 | + "overrideType": "\"push\"", |
| 1325 | + "required": 1 |
| 1326 | + }, |
| 1327 | + // https://developer.mozilla.org/en-US/docs/Web/API/Screen_Wake_Lock_API#browser_compatibility |
| 1328 | + "\"screen-wake-lock\"": { |
| 1329 | + "name": "\"screen-wake-lock\"", |
| 1330 | + "overrideType": "\"screen-wake-lock\"", |
| 1331 | + "required": 1 |
| 1332 | + }, |
| 1333 | + // WebXR is also actually Blink-only |
| 1334 | + // https://developer.mozilla.org/en-US/docs/Web/API/WebXR_Device_API#browser_compatibility |
| 1335 | + "\"xr-spatial-tracking\"": { |
| 1336 | + "name": "\"xr-spatial-tracking\"", |
| 1337 | + "overrideType": "\"xr-spatial-tracking\"", |
| 1338 | + "required": 1 |
| 1339 | + } |
| 1340 | + } |
| 1341 | + } |
1315 | 1342 | }
|
1316 | 1343 | }
|
1317 | 1344 | },
|
|
1422 | 1449 | {
|
1423 | 1450 | "name": "EventListenerOrEventListenerObject",
|
1424 | 1451 | "overrideType": "EventListener | EventListenerObject"
|
| 1452 | + }, |
| 1453 | + { |
| 1454 | + "name": "PermissionName", |
| 1455 | + "overrideType": "keyof PermissionNameMap" |
1425 | 1456 | }
|
1426 | 1457 | ]
|
1427 | 1458 | }
|
|
0 commit comments