-
Notifications
You must be signed in to change notification settings - Fork 173
Closed
Labels
Description
As per https://github.com/w3c/webappsec-feature-policy/issues/282#issuecomment-486267212 the idea is to divide features across different policies. Here's an initial take on that using https://github.com/w3c/webappsec-feature-policy/blob/master/features.md as source:
Existing features
| Feature name | Delegating permissions | Document sandboxing | Full sandboxing |
|---|---|---|---|
accelerometer |
✓ | ||
ambient-light-sensor |
✓ | ||
autoplay |
? | ||
camera |
✓ | ||
document-domain |
? (I think this is a new primitive and I'm not convinced it's worth it) | ✓ | |
fullscreen |
✓ | ||
gyroscope |
✓ | ||
magnetometer |
✓ | ||
microphone |
✓ | ||
midi |
✓ | ||
picture-in-picture |
✓ | ||
sync-xhr |
✓ | ✓ | |
usb |
✓ | ||
wake-lock |
✓ | ||
xr |
✓ |
Proposed features
| Feature name | Delegating permissions | Document sandboxing | Full sandboxing |
|---|---|---|---|
| Client Hints | |||
encrypted-media |
? | ||
geolocation |
✓ | ||
payment |
✓ | ||
speaker |
✓ |
Experimental features
| Feature name | Delegating permissions | Document sandboxing | Full sandboxing |
|---|---|---|---|
document-write |
✓ | ✓ | |
font-display-late-swap |
✓ | ✓ | |
layout-animations |
✓ | ✓ | |
lazyload |
✓ | ✓ | |
legacy-image-formats |
✓ | ✓ | |
oversized-images |
✓ | ✓ | |
sync-script |
✓ | ✓ | |
unoptimized-images |
✓ | ✓ | |
unsized-media |
✓ | ✓ | |
vertical-scroll |
✓ | ✓ | |
serial |
(I'm not entirely sure about all of these, let's try to keep this comment updated as we reach firmer conclusions on each of them.)