Look Up Distortion Details in Lightning Web Security Distortion Viewer

To help prevent insecure behavior, Lightning Web Security (LWS) applies distortions to code running in a JavaScript sandbox. LWS Distortion Viewer describes the distortion by explaining the vulnerability of the affected API, and the distorted behavior that mitigates the vulnerability. Then you can modify your JavaScript code so that any unwanted distortions that affect your components are avoided.

LWS Distortion Viewer shows the JavaScript APIs that LWS blocks or modifies. If an API isn't listed here, LWS allows the API's native behavior. For more information about distortions, see How Lightning Web Security Works.

LWS Distortion Viewer is available from the Component Library navigation bar.

Here’s a direct link to the tool: https://developer.salesforce.com/docs/component-library/tools/lws-distortion-viewer.

LWS Distortion Viewer with open document

LWS Distortion Viewer lists the distortions for JavaScript APIs alphabetically by object name, along with a number that indicates the number of APIs that are distorted for the object. Select an object, and then click an API to view information about the API distortion.

For information about solving some issues with your code after LWS distortions are applied, see Troubleshoot Issues Related to Lightning Web Security.