struct Protocol::Browser::PermissionDescriptor

Overview

Definition of PermissionDescriptor defined in the Permissions API: https://w3c.github.io/permissions/#dictdef-permissiondescriptor.

Included Modules

Defined in:

protocol/browser.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def allow_without_sanitization : Bool | Nil #

For "clipboard" permission, may specify allowWithoutSanitization.


[View source]
def name : String #

Name of permission. See https://cs.chromium.org/chromium/src/third_party/blink/renderer/modules/permissions/permission_descriptor.idl for valid permission names.


[View source]
def pan_tilt_zoom : Bool | Nil #

For "camera" permission, may specify panTiltZoom.


[View source]
def sysex : Bool | Nil #

For "midi" permission, may also specify sysex control.


[View source]
def user_visible_only : Bool | Nil #

For "push" permission, may specify userVisibleOnly. Note that userVisibleOnly = true is the only currently supported type.


[View source]