Limited availability
Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.
When the getAvailability()
method is called, the user agent MUST run the following steps:
presentationUrls, a list of presentation request URLs
P, a Promise
If one of the following conditions is true:
"Prohibits Mixed Security Contexts"
and presentationUrl is an a priori unauthenticated URL.Run the following substeps:
SecurityError
DOMException
.Let P be a new Promise.
Return P, but continue running these steps in parallel.
If the user agent is unable to monitor the list of available presentation displays for the entire duration of the controlling browsing context (e.g., because the user has disabled this feature), then:
PresentationAvailability
object with its value
property set to false
.If the user agent is unable to continuously monitor the list of available presentation displays but can find presentation displays in order to start a connection, then:
NotSupportedError
DOMException
.If there exists a tuple (A, presentationUrls) in the set of availability objects, then:
Let A be a new PresentationAvailability
object with its value
property set as follows:
false
if the list of available presentation displays is empty.true
if there is at least one compatible presentation display for some member of presentationUrls. Meaning there is an entry (presentationUrl, display) in the list of available presentation displays for some presentationUrl in presentationUrls.false
otherwise.Create a tuple (A, presentationUrls) and add it to the set of availability objects.
Run the algorithm to monitor the list of available presentation displays.
Resolve P with A.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4