diff --git a/files/zh-cn/mozilla/add-ons/webextensions/native_messaging/index.md b/files/zh-cn/mozilla/add-ons/webextensions/native_messaging/index.md index 5655b25c48ca31..753c5853f5b594 100644 --- a/files/zh-cn/mozilla/add-ons/webextensions/native_messaging/index.md +++ b/files/zh-cn/mozilla/add-ons/webextensions/native_messaging/index.md @@ -307,4 +307,4 @@ while True: ## 与 Chrome 的兼容问题 -{{Page("Mozilla/Add-ons/WebExtensions/Chrome_incompatibilities", "Native_messaging")}} +浏览器之间存在许多影响 Web 扩展与本地应用通信的差异,包括到本地应用的参数传递、清单文件的位置,等等。这些差异在 [Chrome 不兼容情况 > Native messaging](/zh-CN/docs/Mozilla/Add-ons/WebExtensions/Chrome_incompatibilities#native_messaging) 进行了讨论。 diff --git a/files/zh-cn/web/api/audiolistener/index.md b/files/zh-cn/web/api/audiolistener/index.md index 8edc3bff182da8..9eeb5d637845be 100644 --- a/files/zh-cn/web/api/audiolistener/index.md +++ b/files/zh-cn/web/api/audiolistener/index.md @@ -59,17 +59,13 @@ Because of these issues, these properties and methods have been removed. The `setOrientation()` and `setPosition()` methods have been replaced by setting their property value equivilents. For example `setPosition(x, y, z)` can be achieved by setting `positionX.value`, `positionY.value`, and `positionZ.value` respectively. -## Example - -{{page("/en-US/docs/Web/API/AudioContext.createPanner","Example")}} - ## Specifications {{Specifications}} ## Browser compatibility -{{Compat("api.AudioListener")}} +{{Compat}} ## See also diff --git a/files/zh-cn/web/http/headers/feature-policy/autoplay/index.md b/files/zh-cn/web/http/headers/feature-policy/autoplay/index.md index cecbc456c4a3cb..1b6609e6114f48 100644 --- a/files/zh-cn/web/http/headers/feature-policy/autoplay/index.md +++ b/files/zh-cn/web/http/headers/feature-policy/autoplay/index.md @@ -10,12 +10,16 @@ For more details on autoplay and autoplay blocking, see the article [Autoplay gu ## 语法 -```plain -Feature-Policy: autoplay <可选>; +``` +Feature-Policy: autoplay ; ``` - \ - - : {{page("Web/HTTP/Feature_Policy/Using_Feature_Policy", "allowlist")}} 默认值是`'self'`. + - : 允许使用此特性的来源(origin)列表。参见 [`Feature-Policy`](/zh-CN/docs/Web/HTTP/Headers/Feature-Policy#语法)。 + +## 默认策略 + +[Google Chrome](https://chromestatus.com/feature/5100524789563392) 的默认值是 `'self'`。 ## 规范 @@ -25,8 +29,8 @@ Feature-Policy: autoplay <可选>; {{Compat}} -## See also +## 参见 -- {{HTTPHeader("Feature-Policy")}} header -- [Feature Policy](/en-US/docs/Web/HTTP/Feature_Policy) -- [Using Feature Policy](/en-US/docs/Web/HTTP/Feature_Policy/Using_Feature_Policy) +- {{HTTPHeader("Feature-Policy")}} 标头 +- [Feature Policy](/zh-CN/docs/Web/HTTP/Feature_Policy) +- [使用 Feature Policy](/zh-CN/docs/Web/HTTP/Feature_Policy/Using_Feature_Policy) diff --git a/files/zh-cn/web/http/headers/feature-policy/camera/index.md b/files/zh-cn/web/http/headers/feature-policy/camera/index.md index 0ef351a4be5f4f..c054938eccca3a 100644 --- a/files/zh-cn/web/http/headers/feature-policy/camera/index.md +++ b/files/zh-cn/web/http/headers/feature-policy/camera/index.md @@ -4,20 +4,20 @@ slug: Web/HTTP/Headers/Feature-Policy/camera --- {{HTTPSidebar}} -HTTP{{HTTPHeader("Feature-Policy")}} 头当中的`camera`指令控制着当前的文档是否允许使用视频输入设备。当这些策略被开启时,由{{domxref("MediaDevices.getUserMedia()")}} 返回的{{jsxref("Promise")}}将会 reject 一个 {{domxref("NotAllowedError")}}错误。 +HTTP {{HTTPHeader("Feature-Policy")}} 标头当中的 `camera` 指令控制着当前的文档是否允许使用视频输入设备。当该策略被开启时,由 {{domxref("MediaDevices.getUserMedia()")}} 返回的 {{jsxref("Promise")}} 将会以一个 `NotAllowedError` {{domxref("DOMException")}} 拒绝。 -## 语法结构 +## 语法 -```plain +``` Feature-Policy: camera ; ``` - \ - - : {{page("Web/HTTP/Feature_Policy/Using_Feature_Policy", "allowlist")}} + - : 允许使用此特性的来源(origin)列表。参见 [`Feature-Policy`](/zh-CN/docs/Web/HTTP/Headers/Feature-Policy#语法)。 ## 默认策略 -默认值为 `'self'。` +默认允许的 `camera` 列表为 `'self'`。 ## 规范 @@ -27,8 +27,8 @@ Feature-Policy: camera ; {{Compat}} -## See also +## 参见 -- {{HTTPHeader("Feature-Policy")}} header -- [Feature Policy](/en-US/docs/Web/HTTP/Feature_Policy) -- [Using Feature Policy](/en-US/docs/Web/HTTP/Feature_Policy/Using_Feature_Policy) +- {{HTTPHeader("Feature-Policy")}} 标头 +- [Feature Policy](/zh-CN/docs/Web/HTTP/Feature_Policy) +- [使用 Feature Policy](/zh-CN/docs/Web/HTTP/Feature_Policy/Using_Feature_Policy)