Questions tagged [lws]

Lightning Web Security (LWS) is a new client-side security architecture for Lightning components. This new architecture is defined by fewer restrictions and more functionality while providing strong sandboxing and a security posture to enforce namespace isolation. The result is strong, flexible, usable security for your Lightning components. LWS aims to replace Lightning Locker for Lightning components.

Filter by
Sorted by
Tagged with
1 vote
0 answers
29 views

Leaflet is not working correctly in Mozilla Firefox browser when LWS is enabled in Salesforce

In Salesforce to show the map with pointers I created custom LWC and use Leaflet.js library but there is an issue with LWS and Mozilla Firefox. When LWS is enabled then in Mozilla Firefox browser ...
Ярослав Пажух's user avatar
2 votes
1 answer
40 views

Using 3rd Party JS library in LWR Community

I need to use a 3rd patty JS library in my LWC component in a LWR community. Looks like platformResourceLoader is not working in LWR, so it's not possible to load script from static resources as ...
nitolos's user avatar
  • 21
0 votes
0 answers
29 views

Video capture in LWR

We have developed some small LWC that start the device camera to take a picture. It uses getUserMedia method in navigator.mediaDevices and works perfectly for internal users in Sales Cloud. When ...
Vladimir Egikyan's user avatar
0 votes
1 answer
243 views

LWC Control Workspace Tabs and Subtabs (Beta) on Dev Org

Are the Beta features enabled on Developer Orgs? I wanted to play around new Workspace API for LWC, enabled LWS on my DevOrg. Deploying such component import { LightningElement } from "lwc"; ...
Maciej Król's user avatar
0 votes
1 answer
64 views

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

According to Salesforce's documentation, the distorted behavior of Document.prototype.execCommand is described as: When an HTML document has been switched to designMode, its document object exposes ...
Swisher Sweet's user avatar
1 vote
1 answer
390 views

LWC / JS - event.stopPropagation() causing error - [event.stopPropagation is not a function]

I got this error in the view [event.stopPropagation is not a function] This is the code triggering this error commentHandleChange(event){ let selectedValue = 'Pitched'; this.handleStatusChange({ ...
Ryan McNeely's user avatar
0 votes
0 answers
133 views

LWC with external js lib not loading when use LWS security checkbox is checked

We have DHTMLX Gantt library loaded in a LWC and deployed to multiple orgs, and we are facing this issue where if we uncheck the "use LWC Lightning Web Security for Lightning web components and ...
Rohit's user avatar
  • 11
1 vote
0 answers
257 views

Will the Limitation for Lightning Web Security be fixed soon?

Salesforce is releasing Lightning Web Security(LWS) for Aura as GA in Summer 23, and in the LWS Limitation Article says that window.location cannot be used because LWS set that to null. My questions ...
Rogerio Honorio's user avatar
1 vote
1 answer
495 views

LWC Creating Custom Tooltip in ChartJS

I have a created a bar chart using chart js. The chart loads fine but while trying to create a custom tooltip I am encountering the following which I believe is stopping the tooltip from being created:...
sforg1's user avatar
  • 97
0 votes
1 answer
263 views

LWC Error: createClient is not defined when using Supabase JavaScript library

I am trying to use the Supabase JavaScript library in an LWC Documentation initializing supabase Supabase JavaScript library: supabase-js@2 Their example from the documentation: import { ...
Robs's user avatar
  • 9,187
9 votes
2 answers
589 views

Debug Components in an Org With LWS Enabled - breakpoints not working

The new Lightning Web Security model that is set to overtake Lightning Locker is not working the way the SF docs explain. In short: I do not have an 'lws' folder. From developer.salesforce.com: When ...
bkwdesign's user avatar
  • 551
2 votes
1 answer
295 views

Toggle in LWC has very big active area

In LWS component I have form with a toggle button and use this snippet of code for this <div style="margin-top: 15px;"> <lightning-input type="...
frra's user avatar
  • 21
1 vote
0 answers
1k views

A Component Error has occurred! when open page with Cypress.io

When I open Page with LWC Component under Cypress.io test, then Salesforce returns error: A Component Error has occurred! undefined is not a valid component, or does not extends LightningElement from ...
TIT's user avatar
  • 111
3 votes
1 answer
316 views

Impacts of Lightning Web Security on Cookie Usage

I reference B2B LEX but I believe this is not a problem specific to B2B LEX - I just want my use case to be kept in mind in case it's relevant. Our current implementation has a Salesforce Experience ...
Victor Lockwood's user avatar
4 votes
2 answers
366 views

LWS - Apparent difference in behavior using data returned from Apex call

Prior to enabling LWS in Spring '22 we were able to successfully 'modify' objects returned from an Apex Call. After enabling LWS we cannot modify the data. Allow me to give an example. Below is some '...
Peter Byrne's user avatar