这是
实验性技术
检查
浏览器兼容性表格
要小心谨慎在生产中使用这之前。
安全上下文
此特征只可用于
安全上下文
(HTTPS),在某些或所有
支持浏览器
.
在
controlling user agent
,
defaultRequest
属性
MUST
return the
default presentation request
if any, otherwise
null
。在
receiving browsing context
,它
MUST
return
null
.
If set by the
controller
, the value of the
defaultRequest
属性
SHOULD
be used by the
controlling user agent
作为
default presentation request
for that
controlling browsing context
. If the the document object's
active sandboxing flag set
拥有
sandboxed presentation browsing context flag
set, the
controlling user agent
SHOULD
act as if the default request is not set for that browsing context. When the
controlling user agent
wishes to initiate a
PresentationConnection
on the behalf of that browsing context, it
MUST
start a presentation
使用
default presentation request
为
controller
(as if the controller had called
defaultRequest.start()
).
controlling user agent SHOULD initiate presentation using the default presentation request , only when the user has expressed an intention to do so via a user gesture. For example, by clicking a button in the browser.
注意: 某些 controlling user agents may allow the user to initiate a default presentation connection and select a presentation display with the same user gesture. For example, the browser chrome could allow the user to pick a display from a menu, or allow the user to tap on an Near Field Communications (NFC) enabled display. In this case, when the controlling user agent asks for permission while starting a presentation , the browser could offer that display as the default choice, or consider the gesture as granting permission for the display and bypass display selection entirely.
注意:
若
controlling user agent
does not support initiation of a
presentation connection
from the browser chrome, setting
defaultRequest
will have no effect.
| 规范 | 状态 | 注释 |
|---|---|---|
|
Presentation API
The definition of 'defaultRequest' in that specification. |
候选推荐 | 初始定义。 |
| 桌面 | 移动 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
defaultRequest
|
Chrome 48 | Edge ≤79 | Firefox 51 | IE No | Opera Yes | Safari ? | WebView Android No | Chrome Android 48 | Firefox Android 51 | Opera Android Yes | Safari iOS ? | Samsung Internet Android 5.0 |
完整支持
不支持
兼容性未知
实验。期望将来行为有所改变。
用户必须明确启用此特征。
Presentation
defaultRequest
receiver