Lightning Web Security (LWS) includes new security protections with more distortions for web APIs. ESLint rules matching the distortions are also available.
Where: This change applies to Lightning Experience, LWR-based Experience Cloud sites, and Lightning web components in Aura sites when LWS is enabled.
How: These APIs have new distortions documented in the LWS Distortion Viewer. Corresponding ESLint rules are in the ESLint package.
New Distortions
The following distortions are new in this release.
Document.createNodeIteratorDocument.createTreeWalkerElement.prototype.getAttributeElement.prototype.getAttributeNSElement.prototype.getAttributeNodeElement.prototype.getAttributeNodeNSElement.prototype.innerHTMLgetterElement.prototype.outerHTMLgetterHTMLAnchorElement.prototype.hrefsetter — see additional details in HTMLAnchorElement Distortion Blocks data: URI SchemeHTMLBaseElement.prototype.hrefsetterHTMLButtonElement.prototype.formActionsetterHTMLElement.prototype.innerTextgetterHTMLFormElement.prototype.actionsetterHTMLInputElement.prototype.formActionsetterHTMLMetaElement.prototype.contentgetterHTMLScriptElement.prototype.textgetterHTMLScriptElement.prototype.textContentgetterHTMLScriptElement.innerTextgetterIDBFactory.prototype.databasesIDBFactory.prototype.deleteDatabaseIDBFactory.prototype.openMutationObserver.prototype.observeNode.prototype.textContentgetterObservable.prototype.forEachObservable.prototype.subscribePromise.prototype.catchPromise.prototype.finallyPromise.prototype.thenPromise.allPromise.allSettledPromise.anyPromise.racePromise.rejectPromise.resolvePromise.withResolversRange.prototype.cloneContentsRange.prototype.cloneRangeRange.prototype.getBoundingClientRectRange.prototype.toStringSVGAnimatedString.prototype.baseValsetterSelection.prototype.anchorNodeSelection.prototype.focusNodeSelection.prototype.toStringWindow.namegetterWindow.namesetter
Modified Distortions
The following distortions have changed behavior in this release.
Element.prototype.setHTMLUnsafeURL.createObjectURL