Skip to content

Commit 1cabb31

Browse files
committed
Rename Feature Policy to Permissions Policy
See w3c/webappsec-permissions-policy#379 for more info
1 parent 0b68c59 commit 1cabb31

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

data/feature-policy.json

Lines changed: 0 additions & 7 deletions
This file was deleted.

data/permissions-policy.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"url": "https://www.w3.org/TR/permissions-policy-1/",
3+
"impl": {
4+
"caniuse": "permissions-policy",
5+
"chromestatus": 5745992911552512
6+
}
7+
}

js/translations.zh.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,6 @@
186186
"Element Timing API": "元素计时 API",
187187
"Encrypted Media Extensions": "加密媒体扩展",
188188
"Event Timing API": "事件计时 API",
189-
"Feature Policy": "特性策略",
190189
"Fetch": "Fetch",
191190
"File API": "文件 API",
192191
"Frame Timing": "帧计时",
@@ -236,6 +235,7 @@
236235
"Payment Method: Basic Card": "支付方式:基本卡",
237236
"Payment Request API": "支付请求API",
238237
"Performance Timeline": "性能时间线",
238+
"Permissions Policy": "权限策略",
239239
"Permissions": "权限API",
240240
"Picture-in-Picture": "画中画",
241241
"Pointer Events": "指针事件",

mobile/security.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ <h2>Technologies in progress</h2>
6262

6363
<p data-feature="Sandboxing">The <a data-featureid="uisecurity">User Interface Security and the Visibility API</a> document proposes to eliminate clickjacking by assuring element visibility at the graphics rendering level. For instance, a developer deploying it can assure that users clicking their site's "pay" button aren't being tricked into transferring their bank balances to an imposter instead.</p>
6464

65-
<div data-feature="Feature policy">
66-
<p>As more powerful features keep being exposed to applications, site authors need more fine-grained control over features that are enabled/disabled in their application as well as in own or third-party content that their application may embed (in iframes), to reinforce security. The <a data-featureid="feature-policy">Feature Policy</a> defines mechanisms (the <code>Feature-Policy</code> HTTP header and the <code>allow</code> attribute on an <code>iframe</code> element) to selectively enable and disable use of various browser features and APIs. Developers may also use the policy to assert a promise to a client or an embedder about the use — or lack of thereof — of certain features and APIs.</p>
65+
<div data-feature="Permissions policy">
66+
<p>As more powerful features keep being exposed to applications, site authors need more fine-grained control over features that are enabled/disabled in their application as well as in own or third-party content that their application may embed (in iframes), to reinforce security. The <a data-featureid="permissions-policy">Permissions Policy</a> defines mechanisms (the <code>Permissions-Policy</code> HTTP header and the <code>allow</code> attribute on an <code>iframe</code> element) to selectively enable and disable use of various browser features and APIs. Developers may also use the policy to assert a promise to a client or an embedder about the use — or lack of thereof — of certain features and APIs.</p>
6767
</div>
6868
</section>
6969

mobile/security.zh.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ <h2>开发中的技术</h2>
6363

6464
<p data-feature="沙盒"><a data-featureid="uisecurity">用户界面安全性和可见性 API</a> 文档建议通过确保图形渲染级别的元素可见性来消除点击劫持。例如,一个开发者部署它可以确保用户点击他们的网站的“支付”按钮不被欺骗,而不会把他们的银行余额转移给冒名顶替者。</p>
6565

66-
<div data-feature="特性策略">
67-
<p>随着更强大的特性不断地暴露在应用中,站点作者需要更加细化地控制应用中启用/禁用的特性,以及应用可以嵌入(在 iframe 中)的自己或第三方的内容,以增强安全性。<a data-featureid="feature-policy">特性策略</a>定义了一种选择性地启用和禁用各种浏览器特性和API的机制<code>Feature-Policy</code> HTTP头和 <code>iframe</code> 元素的 <code>allow</code> 属性)。开发者还可以使用该策略对客户端或嵌入者的某些特性和 API 的使用(或缺乏)作出承诺。</p>
66+
<div data-feature="权限策略">
67+
<p>随着更强大的特性不断地暴露在应用中,网站需要更精细地控制应用中启用/禁用的特性,以及应用可以嵌入(在 iframe 中)的自己的或来自第三方的内容,以增强安全性。<a data-featureid="permissions-policy">权限策略</a>定义了一种选择性地启用和禁用各种浏览器特性和 API 的机制<code>Permissions-Policy</code> HTTP头和 <code>iframe</code> 元素的 <code>allow</code> 属性)。开发者还可以使用该策略对客户端或嵌入者的某些特性和 API 的使用(或缺乏)作出承诺。</p>
6868
</div>
6969
</section>
7070

0 commit comments

Comments
 (0)