Skip to content

Commit

Permalink
Make Permissions.request() only take a single descriptor.
Browse files Browse the repository at this point in the history
This matches the current Chromium implementation
(https://code.google.com/p/chromium/codesearch/#chromium/src/third_party/WebKit/Source/modules/permissions/Permissions.idl),
which has a requestAll() function to handle a sequence of permissions. A
sequence could also be handled with Promise.all(), like query() suggests.
  • Loading branch information
jyasskin committed Mar 23, 2016
1 parent e275885 commit 119deb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,7 @@ <h2>
interface Permissions {
Promise&lt;PermissionStatus&gt; query(PermissionDescriptor permission);

Promise&lt;PermissionStatus&gt; request((PermissionDescriptor or sequence&lt;PermissionDescriptor&gt;) permissions);
Promise&lt;PermissionStatus&gt; request(PermissionDescriptor permission);

Promise&lt;PermissionStatus&gt; revoke(PermissionDescriptor permission);
};
Expand Down

0 comments on commit 119deb4

Please sign in to comment.