Skip to main content
18 votes
Accepted

What is Lightning Web Security (LWS)?

Lightning Web Security (LWS) is a new client-side security architecture for Lightning Web Components (LWC) that replaces Lightning Locker. LWS is defined by fewer restrictions while preserving the ...
Alba Rivas's user avatar
  • 2,561
5 votes
Accepted

In uncompiled code, async await syntax is not supported by Lightning Web Security

tl;dr I've used async-await successfully for years now, with LS and LWS, it works just fine when used directly in a LWC component (compiled code). You shouldn't be getting this error unless you're (a) ...
sfdcfox's user avatar
  • 495k
2 votes
Accepted

What is the LWS distorted behavior of Document.prototype.execCommand?

It does exactly what it says it does. It captures an execCommand call, checks if the first parameter is insertHTML, and if so, sanitizes the input using the LWS HTML sanitation function. After that, ...
sfdcfox's user avatar
  • 495k

Only top scored, non community-wiki answers of a minimum length are eligible