mirror of
https://github.com/servo/servo.git
synced 2025-08-16 19:05:33 +01:00
Permission API
This commit is contained in:
parent
e394334739
commit
5ca3ee9474
10 changed files with 449 additions and 3 deletions
14
components/script/dom/webidls/Permissions.webidl
Normal file
14
components/script/dom/webidls/Permissions.webidl
Normal file
|
@ -0,0 +1,14 @@
|
|||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
// https://w3c.github.io/permissions/#permissions-interface
|
||||
|
||||
[Exposed=(Window,Worker)]
|
||||
interface Permissions {
|
||||
Promise<PermissionStatus> query(object permissionDesc);
|
||||
|
||||
Promise<PermissionStatus> request(object permissionDesc);
|
||||
|
||||
Promise<PermissionStatus> revoke(object permissionDesc);
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue