Page
本页面介绍 Lynx DevTool 支持的 Page CDP domain。
实验性参考
此生成的参考文档仍在完善中。
- CDP events 尚未包含。
- 部分 Lynx 扩展已列出,但尚未提供详细文档。
- 方法说明尚未根据实现自动校验,可能不完整或不准确。
在依赖本参考前,请根据实现及所链接的 upstream CDP reference 验证实际行为。
概览
- 作用域:
instance - CDP domain:Page
标准方法
- Page.enable
- Page.getResourceContent
- Page.getResourceTree
- Page.navigate
- Page.reload
- Page.screencastFrameAck
- Page.startScreencast
- Page.stopScreencast
Lynx 扩展
Page.canEmulate
Reports that the Lynx page target supports emulation commands.
- Origin:
lynx-extension - Source:
devtool/lynx_devtool/agent/domain_agent/inspector_page_agent_ng.cc
参数
无参数。
返回字段
备注
- Dispatches through LynxDevToolMediator to InspectorUIExecutor on the UI thread.
- The native implementation does not inspect platform state or request params. It returns result.result as true.
- If the mediator has no UI task runner, the current handler does not send an explicit CDP response.
示例
Check emulation support
Request:
Response:
Page.canScreencast
Reports that the Lynx page target supports screencast commands.
- Origin:
lynx-extension - Source:
devtool/lynx_devtool/agent/domain_agent/inspector_page_agent_ng.cc
参数
无参数。
返回字段
备注
- Dispatches through LynxDevToolMediator to InspectorUIExecutor on the UI thread.
- The native implementation does not inspect platform state or request params. It returns result.result as true.
- If the mediator has no UI task runner, the current handler does not send an explicit CDP response.
示例
Check screencast support
Request:
Response: