You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* `top-level-storage-access` - Allow top-level sites to request third-party cookie access on behalf of embedded content originating from another site in the same related website set using the [Storage Access API](https://developer.mozilla.org/en-US/docs/Web/API/Storage_Access_API).
940
940
* `usb` - Expose non-standard Universal Serial Bus (USB) compatible devices services to the web with the [WebUSB API](https://developer.mozilla.org/en-US/docs/Web/API/WebUSB_API).
941
941
* `deprecated-sync-clipboard-read` _Deprecated_ - Request access to run `document.execCommand("paste")`
942
+
* `fileSystem` - Access to read, write, and file management capabilities using the [File System API](https://developer.mozilla.org/en-US/docs/Web/API/File_System_API).
942
943
* `requestingOrigin` string - The origin URL of the permission check
943
944
* `details` Object - Some properties are only available on certain permission types.
944
945
* `embeddingOrigin` string (optional) - The origin of the frame embedding the frame that made the permission check. Only set for cross-origin sub frames making permission checks.
945
946
* `securityOrigin` string (optional) - The security origin of the `media` check.
946
947
* `mediaType` string (optional) - The type of media access being requested, can be `video`,
947
-
`audio` or `unknown`
948
+
`audio` or `unknown`.
948
949
* `requestingUrl` string (optional) - The last URL the requesting frame loaded. This is not provided for cross-origin sub frames making permission checks.
949
-
* `isMainFrame` boolean - Whether the frame making the request is the main frame
950
+
* `isMainFrame` boolean - Whether the frame making the request is the main frame.
951
+
* `filePath` string (optional) - The path of a `fileSystem` request.
952
+
* `isDirectory` boolean (optional) - Whether a `fileSystem` request is a directory.
953
+
* `fileAccessType` string (optional) - The access type of a `fileSystem` request. Can be `writable` or `readable`.
950
954
951
955
Sets the handler which can be used to respond to permission checks for the `session`.
952
956
Returning `true` will allow the permission and `false` will reject it. Please note that
0 commit comments