Skip to content

Commit e4b51b6

Browse files
author
Orta Therox
authored
Merge pull request #930 from zhouhanseng/hancheng.zhou/fix-permission-name-clipboard
Fix PermissionName for clipboard
2 parents b441061 + 0e4f1b0 commit e4b51b6

File tree

3 files changed

+19
-5
lines changed

3 files changed

+19
-5
lines changed

baselines/dom.generated.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20138,7 +20138,7 @@ type OverSampleType = "2x" | "4x" | "none";
2013820138
type PanningModelType = "HRTF" | "equalpower";
2013920139
type PaymentComplete = "fail" | "success" | "unknown";
2014020140
type PaymentShippingType = "delivery" | "pickup" | "shipping";
20141-
type PermissionName = "accelerometer" | "ambient-light-sensor" | "background-sync" | "bluetooth" | "camera" | "clipboard" | "device-info" | "geolocation" | "gyroscope" | "magnetometer" | "microphone" | "midi" | "notifications" | "persistent-storage" | "push" | "speaker";
20141+
type PermissionName = "accelerometer" | "ambient-light-sensor" | "background-fetch" | "background-sync" | "bluetooth" | "camera" | "clipboard-read" | "clipboard-write" | "device-info" | "display-capture" | "geolocation" | "gyroscope" | "magnetometer" | "microphone" | "midi" | "nfc" | "notifications" | "persistent-storage" | "push" | "speaker";
2014220142
type PermissionState = "denied" | "granted" | "prompt";
2014320143
type PlaybackDirection = "alternate" | "alternate-reverse" | "normal" | "reverse";
2014420144
type PositionAlignSetting = "auto" | "center" | "line-left" | "line-right";

baselines/webworker.generated.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6001,7 +6001,7 @@ type KeyUsage = "decrypt" | "deriveBits" | "deriveKey" | "encrypt" | "sign" | "u
60016001
type NotificationDirection = "auto" | "ltr" | "rtl";
60026002
type NotificationPermission = "default" | "denied" | "granted";
60036003
type OffscreenRenderingContextId = "2d" | "bitmaprenderer" | "webgl" | "webgl2";
6004-
type PermissionName = "accelerometer" | "ambient-light-sensor" | "background-sync" | "bluetooth" | "camera" | "clipboard" | "device-info" | "geolocation" | "gyroscope" | "magnetometer" | "microphone" | "midi" | "notifications" | "persistent-storage" | "push" | "speaker";
6004+
type PermissionName = "accelerometer" | "ambient-light-sensor" | "background-fetch" | "background-sync" | "bluetooth" | "camera" | "clipboard-read" | "clipboard-write" | "device-info" | "display-capture" | "geolocation" | "gyroscope" | "magnetometer" | "microphone" | "midi" | "nfc" | "notifications" | "persistent-storage" | "push" | "speaker";
60056005
type PermissionState = "denied" | "granted" | "prompt";
60066006
type PremultiplyAlpha = "default" | "none" | "premultiply";
60076007
type PushEncryptionKeyName = "auth" | "p256dh";

inputfiles/idl/Permissions.widl

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ interface PermissionStatus : EventTarget {
1616

1717
[Exposed=(Window)]
1818
partial interface Navigator {
19-
readonly attribute Permissions permissions;
19+
[SameObject] readonly attribute Permissions permissions;
2020
};
2121

2222
[Exposed=(Worker)]
2323
partial interface WorkerNavigator {
24-
readonly attribute Permissions permissions;
24+
[SameObject] readonly attribute Permissions permissions;
2525
};
2626

2727
[Exposed=(Window,Worker)]
@@ -38,14 +38,18 @@ enum PermissionName {
3838
"microphone",
3939
"speaker",
4040
"device-info",
41+
"background-fetch",
4142
"background-sync",
4243
"bluetooth",
4344
"persistent-storage",
4445
"ambient-light-sensor",
4546
"accelerometer",
4647
"gyroscope",
4748
"magnetometer",
48-
"clipboard",
49+
"clipboard-read",
50+
"clipboard-write",
51+
"display-capture",
52+
"nfc",
4953
};
5054

5155
dictionary PushPermissionDescriptor : PermissionDescriptor {
@@ -59,3 +63,13 @@ dictionary MidiPermissionDescriptor : PermissionDescriptor {
5963
dictionary DevicePermissionDescriptor : PermissionDescriptor {
6064
DOMString deviceId;
6165
};
66+
67+
dictionary CameraDevicePermissionDescriptor : DevicePermissionDescriptor {
68+
boolean panTiltZoom = false;
69+
};
70+
71+
dictionary PermissionSetParameters {
72+
required PermissionDescriptor descriptor;
73+
required PermissionState state;
74+
boolean oneRealm = false;
75+
};

0 commit comments

Comments
 (0)