iframe allow - Policy Controlled Features

403 阅读3分钟

在iframe中,特定功能需要开启相应的权限才可以使用,以下是相对完整的权限列表。

转自链接:github.com/w3c/webapps… 有需要的可以持续关注

Policy Controlled Features

This document lists policy-controlled features being implemented in browsers. It is broken into sections based on the standardization state of each feature. The names used here should be consistent between browsers implementing a particular feature, but there is no requirement that all browsers implement any single feature.

The exact definition of the behaviour controlled by each feature belongs in the spec which defines the feature. Those are linked where available.

Standardized Features

These features have been declared in a published version of the respective specification.

Feature nameSpec link(s)Browser Support
accelerometerGeneric Sensor APIChrome 66
ambient-light-sensorGeneric Sensor APIChrome 66
autoplayHTMLChrome 64
batteryBattery Status APIStatus "Open" in Chrome
bluetoothWeb BluetoothChrome 104
cameraMedia CaptureChrome 64
ch-uaUser-Agent Client HintsChrome 89
ch-ua-archUser-Agent Client HintsChrome 89
ch-ua-bitnessUser-Agent Client HintsChrome 89
ch-ua-full-versionUser-Agent Client HintsChrome 89
ch-ua-full-version-listUser-Agent Client HintsChrome 89
ch-ua-mobileUser-Agent Client HintsChrome 89
ch-ua-modelUser-Agent Client HintsChrome 89
ch-ua-platformUser-Agent Client HintsChrome 89
ch-ua-platform-versionUser-Agent Client HintsChrome 89
ch-ua-wow64User-Agent Client HintsChrome 89
cross-origin-isolatedHTMLExperimental in Chrome 85
display-captureMedia Capture: Screen ShareChrome 94
encrypted-mediaEncrypted Media ExtensionsChrome 64
execution-while-not-renderedPage LifecycleBehind a flag in Chrome1
execution-while-out-of-viewportPage LifecycleBehind a flag in Chrome1
fullscreenFullscreen APIChrome 62
geolocationGeolocation APIChrome 64
gyroscopeGeneric Sensor APIChrome 66
hidWebHID APIChrome 89
idle-detectionIdle Detection APIChrome 94
keyboard-mapKeyboard APIChrome 97
magnetometerGeneric Sensor APIChrome 66
microphoneMedia CaptureChrome 64
midiWeb MIDIChrome 64
navigation-overrideCSS Spatial Navigation
paymentPayment Request APIChrome 60
picture-in-picturePicture-in-PictureShipped in Chrome
publickey-credentials-getWeb Authentication APIChrome 84
screen-wake-lockWake Lock APIChrome 84
serialWeb Serial APIChrome 89
sync-xhrXMLHttpRequestChrome 65
usbWebUSBChrome 60
web-shareWeb Share APIChrome 86
xr-spatial-tracking2WebXR Device APIAvailable as a Chrome Origin Trial

Proposed Features

These features have been proposed, but the definitions have not yet been integrated into their respective specs.

Feature nameSpec/PR link(s)Browser Support
clipboard-readgithub.com/w3c/clipboa…Chrome 86
clipboard-writegithub.com/w3c/clipboa…Chrome 86
gamepadgithub.com/w3c/gamepad…
shared-autofillgithub.com/schwering/s…
speaker-selectiongithub.com/w3c/mediaca…

Experimental Features

These features generally have an explainer only, but may be available for experimentation by web developers.

Feature nameLink(s)Browser Support
browsing-topicsExplainerStatus "Started" in Chrome
conversion-measurement ExplainerExperimental in Chrome3
focus-without-user-activationfocus-without-user-activation.mdStatus "Open" in Chrome
join-ad-interest-groupFLEDGEBehind a flag in Chrome6
local-fontsLocal Font Access API and ExplainerExperimental in Chrome
run-ad-auctionFLEDGEBehind a flag in Chrome6
sync-scriptBehind a flag in Chrome1
trust-token-redemptionExplainerIn Origin Trial in Chrome 84-87
unloadExplainerStatus "Started in Chrome
vertical-scrollvertical_scroll.mdBehind a flag in Chrome1
window-placementExplainerIn Origin Trial in Chrome 93-96

Retired Features

These features were once standardized or proposed, but their specification and/or implementations have been removed.

Feature nameSpec link(s)Browser Support
document-domainHTMLFormerly in Chrome, behind a flag

Notes

[1]: To enable these, use the Chrome command line flag --enable-blink-features=ExperimentalProductivityFeatures.

[2]: Implemented in Chrome as vr prior to Chrome 79.

[3]: To enable this, use the Chrome command line flag --enable-blink-features=ConversionMeasurement.

[6]: To enable this, use the Chrome command line flag --enable-features=AdInterestGroupAPI,InterestGroupStorage,Fledge.