-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
testdriver.js: Make set_permission() take a PermissionDescriptor, not…
… a name Making the public API take a permission name only works for permissions that take a `PermissionDescriptor`, and makes it impossible to set permissions that require extra information (i.e. they take a `MidiPermissionDescriptor` or a `PushPermissionDescriptor` instead). Instead of taking a string corresponding to a permission name, take a `PermissionDescriptor` directly so that all required information can be specified. While here, make `set_permission.html` an HTTPS test, as some permissions are only available in a secure context (such as "push", which is being used to test setting a permission that requires extra parameters in the descriptor). Fixes #20672.
- Loading branch information
Raphael Kubo da Costa
committed
Dec 9, 2019
1 parent
445af40
commit 9a540cd
Showing
5 changed files
with
13 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters