Skip to content

Commit

Permalink
add more API reference
Browse files Browse the repository at this point in the history
  • Loading branch information
rubberyuzu committed May 13, 2024
1 parent c684b97 commit 195542d
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions source
Expand Up @@ -3473,6 +3473,7 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
<li><dfn data-x-href="https://w3c.github.io/mediacapture-main/getusermedia.html#idl-def-mediastream"><code>MediaStream</code></dfn> interface</li>
<li><dfn data-x-href="https://w3c.github.io/mediacapture-main/getusermedia.html#mediastreamtrack"><code>MediaStreamTrack</code></dfn></li>
<li><dfn data-x-href="https://w3c.github.io/mediacapture-main/getusermedia.html#idl-def-MediaStreamTrackState.live">live state</dfn></li>
<li><dfn data-x-href="https://w3c.github.io/mediacapture-main/getusermedia.html#dom-mediadevices-getusermedia"><code>getUserMedia()</code></dfn></li>
</ul>
</dd>

Expand Down Expand Up @@ -95637,14 +95638,16 @@ interface <dfn interface>NotRestoredReasons</dfn> {
<span data-x="ua-specific-blocking-reasons">user-agent specific blocking reasons</span>.
</dl>

<p>In addition to the list above, a user agent might prevent the page from being restored from
<a href="note-bfcache">back/forward cache</a> for <dfn
<p>In addition to the list above, a user agent might choose to expose a reason that prevented
the page from being restored from <a href="note-bfcache">back/forward cache</a> for <dfn
data-x="ua-specific-blocking-reasons">user-agent specific blocking reasons</dfn>. These are one
of the following strings:</p>

<dl>
<dt>"<dfn data-x="blocking-audio-capture" export><code>audio-capture</code></dfn>"</dt>
<dd>The <code>Document</code> requested audio capture permission before unloading.</dd>
<dd>The <code>Document</code> requested audio capture permission by using Media Capture and
Streams API's <code>getUserMedia()</code> with audio before unloading.
<ref>MEDIASTREAM</ref></dd>

<dt>"<dfn data-x="blocking-background-work" export><code>background-work</code></dfn>"</dt>
<dd>The <code>Document</code> requested Background Fetch, Web Background Sync or Web Periodic
Expand Down Expand Up @@ -95688,7 +95691,8 @@ interface <dfn interface>NotRestoredReasons</dfn> {
<ref>MEDIASTREAM</ref></dd>

<dt>"<dfn data-x="blocking-midi" export><code>midi</code></dfn>"</dt>
<dd>The <code>Document</code> requested a MIDI permission before unloading.</dd>
<dd>The <code>Document</code> requested a MIDI permission by using Web MIDI API before
unloading.</dd>

<dt>"<dfn data-x="blocking-modals" export><code>modals</code></dfn>"</dt>
<dd><a href="#user-prompts">User prompts</a> were shown while unloading.</dd>
Expand Down Expand Up @@ -95785,7 +95789,8 @@ interface <dfn interface>NotRestoredReasons</dfn> {
<ref>WEBRTC</ref></dd>

<dt>"<dfn data-x="blocking-sensors" export><code>sensors</code></dfn>"</dt>
<dd>The <code>Document</code> requested sensor permission before unloading.</dd>
<dd>The <code>Document</code> requested sensor permission by using Generic Sensor API before
unloading.</dd>

<dt>"<dfn data-x="sw-added" export><code>serviceworker-added</code></dfn>"</dt>
<dd>The <code>Document</code>'s <span
Expand Down Expand Up @@ -95840,7 +95845,8 @@ interface <dfn interface>NotRestoredReasons</dfn> {
<dd>The <code>Document</code> had an active <code>SpeechRecognition</code> while unloading.</dd>

<dt>"<dfn data-x="blocking-storage" export><code>storageaccess</code></dfn>"</dt>
<dd>The <code>Document</code> requested storage access permission before unloading.</dd>
<dd>The <code>Document</code> requested storage access permission bby using Storage Access API
before unloading.</dd>

<dt>"<dfn data-x="blocking-timeout" export><code>timeout</code></dfn>"</dt>
<dd>The <code>Document</code> was in <a href="#note-bfcache">back/forward cache</a> for a long
Expand All @@ -95851,7 +95857,9 @@ interface <dfn interface>NotRestoredReasons</dfn> {
data-x="event-unload">unload</code> event.</dd>

<dt>"<dfn data-x="blocking-video-capture" export><code>video-capture</code></dfn>"</dt>
<dd>The <code>Document</code> requested video capture permission before unloading.</dd>
<dd>The <code>Document</code> requested video capture permission by using Media Capture and
Streams API's <code>getUserMedia()</code> with video before unloading.
<ref>MEDIASTREAM</ref></dd>

<dt>"<dfn data-x="blocking-webhid" export><code>webhid</code></dfn>"</dt>
<dd>The <code>Document</code> used the WebHID API before unloading.</dd>
Expand Down

0 comments on commit 195542d

Please sign in to comment.