LynxSetting
This page documents the LynxSetting CDP domain supported by Lynx DevTool.
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:
global - CDP domain: Lynx-specific
Lynx Extensions
LynxSetting.clearMockValues
Clears all platform Lynx setting mock values.
- Origin:
lynx-extension - Source:
devtool/lynx_devtool/agent/domain_agent/inspector_lynx_setting_agent.cc
Parameters
No parameters.
Returns
Notes
- Dispatches on the DevTool task runner and forwards the request to GlobalDevToolPlatformFacade::HandleLynxSetting.
- The forwarded request contains method LynxSetting.clearMockValues and empty key and value fields.
- The C++ handler only requires the platform result JSON to parse as an object. It does not define additional result fields.
- Platform errors are returned as CDP error responses with the platform-provided message.
- If the platform returns invalid JSON or a non-object result, the response is a CDP error with message Invalid LynxSetting result JSON.
Examples
Clear mock values
Request:
Response:
LynxSetting.fetchLatest
Requests the platform Lynx setting backend to fetch the latest setting values.
- Origin:
lynx-extension - Source:
devtool/lynx_devtool/agent/domain_agent/inspector_lynx_setting_agent.cc
Parameters
No parameters.
Returns
Notes
- Dispatches on the DevTool task runner and forwards the request to GlobalDevToolPlatformFacade::HandleLynxSetting.
- The forwarded request contains method LynxSetting.fetchLatest and empty key and value fields.
- The C++ handler only requires the platform result JSON to parse as an object. It does not define additional result fields.
- Platform errors are returned as CDP error responses with the platform-provided message.
- If the platform returns invalid JSON or a non-object result, the response is a CDP error with message Invalid LynxSetting result JSON.
Examples
Fetch latest values
Request:
Response:
LynxSetting.getFetchInfo
Returns platform-defined Lynx setting fetch information.
- Origin:
lynx-extension - Source:
devtool/lynx_devtool/agent/domain_agent/inspector_lynx_setting_agent.cc
Parameters
No parameters.
Returns
Notes
- Dispatches on the DevTool task runner and forwards the request to GlobalDevToolPlatformFacade::HandleLynxSetting.
- The forwarded request contains method LynxSetting.getFetchInfo and empty key and value fields.
- The C++ handler only requires the platform result JSON to parse as an object. It does not define additional result fields.
- Platform errors are returned as CDP error responses with the platform-provided message.
- If the platform returns invalid JSON or a non-object result, the response is a CDP error with message Invalid LynxSetting result JSON.
Examples
Read fetch information
Request:
Response:
LynxSetting.getLayeredValues
Returns platform-defined Lynx setting values grouped by layer.
- Origin:
lynx-extension - Source:
devtool/lynx_devtool/agent/domain_agent/inspector_lynx_setting_agent.cc
Parameters
No parameters.
Returns
Notes
- Dispatches on the DevTool task runner and forwards the request to GlobalDevToolPlatformFacade::HandleLynxSetting.
- The forwarded request contains method LynxSetting.getLayeredValues and empty key and value fields.
- The C++ handler only requires the platform result JSON to parse as an object. It does not define additional result fields.
- Platform errors are returned as CDP error responses with the platform-provided message.
- If the platform returns invalid JSON or a non-object result, the response is a CDP error with message Invalid LynxSetting result JSON.
Examples
Read layered values
Request:
Response:
LynxSetting.getValue
Returns the platform-defined Lynx setting value for one key.
- Origin:
lynx-extension - Source:
devtool/lynx_devtool/agent/domain_agent/inspector_lynx_setting_agent.cc
Parameters
Returns
Notes
- Dispatches on the DevTool task runner and forwards the request to GlobalDevToolPlatformFacade::HandleLynxSetting.
- The forwarded request contains method LynxSetting.getValue, params.key, and an empty value field.
- The C++ handler rejects missing, non-string, or empty params.key with message Invalid params: expected string key.
- The C++ handler only requires the platform result JSON to parse as an object. It does not define additional result fields.
- Platform errors are returned as CDP error responses with the platform-provided message.
Examples
Read one setting value
Request:
Response:
Missing key
Request:
Response:
LynxSetting.getValues
Returns platform-defined Lynx setting values.
- Origin:
lynx-extension - Source:
devtool/lynx_devtool/agent/domain_agent/inspector_lynx_setting_agent.cc
Parameters
No parameters.
Returns
Notes
- Dispatches on the DevTool task runner and forwards the request to GlobalDevToolPlatformFacade::HandleLynxSetting.
- The forwarded request contains method LynxSetting.getValues and empty key and value fields.
- The C++ handler only requires the platform result JSON to parse as an object. It does not define additional result fields.
- Platform errors are returned as CDP error responses with the platform-provided message.
- If the platform returns invalid JSON or a non-object result, the response is a CDP error with message Invalid LynxSetting result JSON.
Examples
Read all values
Request:
Response:
LynxSetting.removeMockValue
Removes one platform Lynx setting mock value.
- Origin:
lynx-extension - Source:
devtool/lynx_devtool/agent/domain_agent/inspector_lynx_setting_agent.cc
Parameters
Returns
Notes
- Dispatches on the DevTool task runner and forwards the request to GlobalDevToolPlatformFacade::HandleLynxSetting.
- The forwarded request contains method LynxSetting.removeMockValue, params.key, and an empty value field.
- The C++ handler rejects missing, non-string, or empty params.key with message Invalid params: expected string key.
- The C++ handler only requires the platform result JSON to parse as an object. It does not define additional result fields.
- Platform errors are returned as CDP error responses with the platform-provided message.
Examples
Remove a mock value
Request:
Response:
Missing key
Request:
Response:
LynxSetting.setMockValue
Sets one platform Lynx setting mock value.
- Origin:
lynx-extension - Source:
devtool/lynx_devtool/agent/domain_agent/inspector_lynx_setting_agent.cc
Parameters
Returns
Notes
- Dispatches on the DevTool task runner and forwards the request to GlobalDevToolPlatformFacade::HandleLynxSetting.
- The forwarded request contains method LynxSetting.setMockValue, params.key, and params.value.
- The C++ handler rejects missing, non-string, or empty params.key with message Invalid params: expected string key.
- The C++ handler rejects missing or non-string params.value with message Invalid params: expected string mock value.
- The C++ handler only requires the platform result JSON to parse as an object. It does not define additional result fields.
- Platform errors are returned as CDP error responses with the platform-provided message.
Examples
Set a mock value
Request:
Response:
Non-string mock value
Request:
Response: