File tree Expand file tree Collapse file tree 4 files changed +7
-3
lines changed
Expand file tree Collapse file tree 4 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -948,14 +948,15 @@ Here are some permissions that may be supported by some browsers:
948948* ` 'clipboard-write' `
949949* ` 'geolocation' `
950950* ` 'gyroscope' `
951+ * ` 'local-fonts' `
952+ * ` 'local-network-access' `
951953* ` 'magnetometer' `
952954* ` 'microphone' `
953955* ` 'midi-sysex' ` (system-exclusive midi)
954956* ` 'midi' `
955957* ` 'notifications' `
956958* ` 'payment-handler' `
957959* ` 'storage-access' `
958- * ` 'local-fonts' `
959960
960961### option: BrowserContext.grantPermissions.origin
961962* since: v1.8
Original file line number Diff line number Diff line change @@ -8991,14 +8991,15 @@ export interface BrowserContext {
89918991 * - `'clipboard-write'`
89928992 * - `'geolocation'`
89938993 * - `'gyroscope'`
8994+ * - `'local-fonts'`
8995+ * - `'local-network-access'`
89948996 * - `'magnetometer'`
89958997 * - `'microphone'`
89968998 * - `'midi-sysex'` (system-exclusive midi)
89978999 * - `'midi'`
89989000 * - `'notifications'`
89999001 * - `'payment-handler'`
90009002 * - `'storage-access'`
9001- * - `'local-fonts'`
90029003 * @param options
90039004 */
90049005 grantPermissions(permissions: ReadonlyArray<string>, options?: {
Original file line number Diff line number Diff line change @@ -435,6 +435,7 @@ export class CRBrowserContext extends BrowserContext {
435435 [ 'midi-sysex' , 'midiSysex' ] ,
436436 [ 'storage-access' , 'storageAccess' ] ,
437437 [ 'local-fonts' , 'localFonts' ] ,
438+ [ 'local-network-access' , 'localNetworkAccess' ] ,
438439 ] ) ;
439440 const filtered = permissions . map ( permission => {
440441 const protocolPermission = webPermissionToProtocol . get ( permission ) ;
Original file line number Diff line number Diff line change @@ -8991,14 +8991,15 @@ export interface BrowserContext {
89918991 * - `'clipboard-write'`
89928992 * - `'geolocation'`
89938993 * - `'gyroscope'`
8994+ * - `'local-fonts'`
8995+ * - `'local-network-access'`
89948996 * - `'magnetometer'`
89958997 * - `'microphone'`
89968998 * - `'midi-sysex'` (system-exclusive midi)
89978999 * - `'midi'`
89989000 * - `'notifications'`
89999001 * - `'payment-handler'`
90009002 * - `'storage-access'`
9001- * - `'local-fonts'`
90029003 * @param options
90039004 */
90049005 grantPermissions(permissions: ReadonlyArray<string>, options?: {
You can’t perform that action at this time.
0 commit comments