在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.
Proposed Features
These features have been proposed, but the definitions have not yet been integrated into their respective specs.
| Feature name | Spec/PR link(s) | Browser Support |
|---|---|---|
clipboard-read | github.com/w3c/clipboa… | Chrome 86 |
clipboard-write | github.com/w3c/clipboa… | Chrome 86 |
gamepad | github.com/w3c/gamepad… | |
shared-autofill | github.com/schwering/s… | |
speaker-selection | github.com/w3c/mediaca… |
Experimental Features
These features generally have an explainer only, but may be available for experimentation by web developers.
| Feature name | Link(s) | Browser Support |
|---|---|---|
browsing-topics | Explainer | Status "Started" in Chrome |
conversion-measurement | Explainer | Experimental in Chrome3 |
focus-without-user-activation | focus-without-user-activation.md | Status "Open" in Chrome |
join-ad-interest-group | FLEDGE | Behind a flag in Chrome6 |
local-fonts | Local Font Access API and Explainer | Experimental in Chrome |
run-ad-auction | FLEDGE | Behind a flag in Chrome6 |
sync-script | Behind a flag in Chrome1 | |
trust-token-redemption | Explainer | In Origin Trial in Chrome 84-87 |
unload | Explainer | Status "Started in Chrome |
vertical-scroll | vertical_scroll.md | Behind a flag in Chrome1 |
window-placement | Explainer | In 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 name | Spec link(s) | Browser Support |
|---|---|---|
document-domain | HTML | Formerly 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.