Lynx

Page

This page documents the Page CDP domain supported by Lynx DevTool.

Experimental reference

This generated reference is still being completed.

  • CDP events are not included yet.
  • Some Lynx extensions are listed but do not yet have detailed documentation.
  • Method descriptions are not automatically verified against the implementation and may be incomplete or inaccurate.

Verify behavior against the implementation and the linked upstream CDP reference before relying on it.

Overview

  • Scope: instance
  • CDP domain: Page

Standard Methods

Lynx Extensions

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
Parameters

No parameters.

Returns
NameTypeDescription
resultbooleanAlways true when the request is dispatched to the UI executor.
Notes
  • 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.
Examples

Check emulation support

Request:

{
  "id": 1,
  "method": "Page.canEmulate"
}

Response:

{
  "id": 1,
  "result": {
    "result": true
  }
}

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
Parameters

No parameters.

Returns
NameTypeDescription
resultbooleanAlways true when the request is dispatched to the UI executor.
Notes
  • 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.
Examples

Check screencast support

Request:

{
  "id": 1,
  "method": "Page.canScreencast"
}

Response:

{
  "id": 1,
  "result": {
    "result": true
  }
}
Except as otherwise noted, this work is licensed under a Creative Commons Attribution 4.0 International License, and code samples are licensed under the Apache License 2.0.