Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove page macro from some documents #7906

Merged
merged 2 commits into from
Aug 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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) 进行了讨论。
6 changes: 1 addition & 5 deletions files/zh-cn/web/api/audiolistener/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
18 changes: 11 additions & 7 deletions files/zh-cn/web/http/headers/feature-policy/autoplay/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,16 @@ For more details on autoplay and autoplay blocking, see the article [Autoplay gu

## 语法

```plain
Feature-Policy: autoplay <可选>;
```
Feature-Policy: autoplay <allowlist>;
```

- \<allowlist>
- : {{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'`。

## 规范

Expand All @@ -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)
18 changes: 9 additions & 9 deletions files/zh-cn/web/http/headers/feature-policy/camera/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <allowlist>;
```

- \<allowlist>
- : {{page("Web/HTTP/Feature_Policy/Using_Feature_Policy", "allowlist")}}
- : 允许使用此特性的来源(origin)列表。参见 [`Feature-Policy`](/zh-CN/docs/Web/HTTP/Headers/Feature-Policy#语法)。

## 默认策略

默认值为 `'self'。`
默认允许的 `camera` 列表为 `'self'`。

## 规范

Expand All @@ -27,8 +27,8 @@ Feature-Policy: camera <allowlist>;

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