Skip to content

Dividing features across different types of policies #296

@annevk

Description

@annevk

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.)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions