LynxNativeModule
This page documents the LynxNativeModule 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: Lynx-specific
Lynx Extensions
LynxNativeModule.disable
Disables live NativeModule record events for the current Lynx target.
- Origin:
lynx-extension - Source:
devtool/lynx_devtool/agent/domain_agent/inspector_lynx_native_module_agent.cc
Parameters
No parameters.
Returns
No return fields.
Notes
- Recording continues in bounded history while live events are disabled.
- The operation is idempotent and returns an empty result object.
Examples
Disable live NativeModule records
Request:
Response:
LynxNativeModule.enable
Enables live NativeModule record events for the current Lynx target.
- Origin:
lynx-extension - Source:
devtool/lynx_devtool/agent/domain_agent/inspector_lynx_native_module_agent.cc
Parameters
No parameters.
Returns
No return fields.
Events
LynxNativeModule.recordAdded: Emitted when a NativeModule invocation, callback, or global event record is captured.
Notes
- Existing records remain available through LynxNativeModule.getRecords.
- The operation is idempotent and returns an empty result object.
Examples
Enable live NativeModule records
Request:
Response:
LynxNativeModule.getRecords
Returns the bounded NativeModule record history for the current Lynx target.
- Origin:
lynx-extension - Source:
devtool/lynx_devtool/agent/domain_agent/inspector_lynx_native_module_agent.cc
Parameters
No parameters.
Returns
Notes
- History retains at most 200 records and 4 MiB of serialized record data.
- Fetching records does not change whether live reporting is enabled.
Examples
Read NativeModule history
Request:
Response: