Skip to content

Commit

Permalink
Redirect Feature-Policy/wake-lock to screen-wake-lock
Browse files Browse the repository at this point in the history
There is no “wake-lock” feature-controlled-policy defined in any current
spec, and no “wake-lock” feature-controlled-policy was ever implemented
in any browser. It’s instead called “screen-wake-lock”.

So this change redirects the Feature-Policy/wake-lock article to the
Feature-Policy/screen-wake-lock article.

Related BCD change: mdn/browser-compat-data#10421
  • Loading branch information
sideshowbarker committed May 10, 2021
1 parent 40d8c8f commit 65bb2af
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions files/en-us/_redirects.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11051,6 +11051,7 @@
/en-US/docs/Web/HTTP/HTTP_response_codes /en-US/docs/Web/HTTP/Status
/en-US/docs/Web/HTTP/Headers/Cache-Disposition /en-US/docs/Web/HTTP/Headers/Content-Disposition
/en-US/docs/Web/HTTP/Headers/Feature-Policy/publickey-credentials /en-US/docs/Web/HTTP/Headers/Feature-Policy/publickey-credentials-get
/en-US/docs/Web/HTTP/Headers/Feature-Policy/wake-lock /en-US/docs/Web/HTTP/Headers/Feature-Policy/screen-wake-lock
/en-US/docs/Web/HTTP/Headers/Feature-Policy/webauthn /en-US/docs/Web/HTTP/Headers/Feature-Policy/publickey-credentials-get
/en-US/docs/Web/HTTP/Headers/Ranges /en-US/docs/Web/HTTP/Headers/Range
/en-US/docs/Web/HTTP/History_of_HTTP_versions /en-US/docs/Web/HTTP/Basics_of_HTTP/Evolution_of_HTTP
Expand Down
2 changes: 0 additions & 2 deletions files/en-us/web/http/headers/feature-policy/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,6 @@ <h2 id="Directives">Directives</h2>
<dd>Controls whether the current document is allowed to use the <a href="https://wicg.github.io/webusb/">WebUSB API</a>.</dd>
<dt>{{httpheader('Feature-Policy/vr', 'vr')}} {{deprecated_inline}}</dt>
<dd>Controls whether the current document is allowed to use the <a href="/en-US/docs/Web/API/WebVR_API">WebVR API</a>. When this policy is disabled, the {{jsxref("Promise")}} returned by {{domxref("Navigator.getVRDisplays","Navigator.getVRDisplays()")}} will reject with a {{domxref("DOMException")}}. Keep in mind that the WebVR standard is in the process of being replaced with <a href="/en-US/docs/Web/API/WebXR_Device_API">WebXR</a>.</dd>
<dt>{{httpheader('Feature-Policy/wake-lock', 'wake-lock')}}</dt>
<dd>Controls whether the current document is allowed to use <a href="https://www.w3.org/TR/wake-lock/">Wake Lock API</a> to indicate that device should not enter power-saving mode.</dd>
<dt>{{httpheader('Feature-Policy/screen-wake-lock', 'screen-wake-lock')}}</dt>
<dd>Controls whether the current document is allowed to use <a href="/en-US/docs/Web/API/Screen_Wake_Lock_API">Screen Wake Lock API</a> to indicate that device should not turn off or dim the screen.</dd>
<dt>{{httpheader("Feature-Policy/web-share", "web-share")}}</dt>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<p><span class="seoSummary">The HTTP {{HTTPHeader("Feature-Policy")}} header <strong><code>screen-wake-lock</code></strong> directive controls whether the current document is allowed to use <a href="/en-US/docs/Web/API/Screen_Wake_Lock_API">Screen Wake Lock API</a> to indicate that device should not dim or turn off the screen.</span></p>

<div class="notecard note">
<p><strong>Note:</strong> In earlier specification drafts this directive was called {{HTTPHeader("Feature-Policy/wake-lock","wake-lock")}}.</p>
<p><strong>Note:</strong> In earlier specification drafts this directive was called <code>wake-lock</code>")}}.</p>
</div>

<h2 id="Syntax">Syntax</h2>
Expand Down

0 comments on commit 65bb2af

Please sign in to comment.