Questions tagged [locker-service]

Locker Service is a set of new security features for Lightning Components.

Filter by
Sorted by
Tagged with
6
votes
1answer
247 views

ES6 Promises do not exist in controllers, helpers under Lightning Locker

Very simple example: Create a Lightning component with Lightning Locker enabled, and add to its init method: console.log(Promise); The logged result will be undefined. It would appear that Lightning ...
1
vote
2answers
391 views

Dynamically created component is not loading in body of div after summer 16 release

I am adding Lightning component dynamically to the body of a Div. It was working fine before Summer 16 release. I am not getting any error for same but component is not adding to div'body. Component ...
7
votes
4answers
14k views

event.target.value not working after enabling lockerservice

event.target.value not working after enabling lockerservice in lightning. Can you guys help me with this? Thanks
0
votes
1answer
889 views

RequireJS not working with LockerService

Problem is pretty straightforward, here is the test code I wrote for this case. App <aura:application > <aura:handler event="c:RequireJSEvent" action="{!c.initJS}"/> <aura:...
7
votes
1answer
392 views

Lightning LockerService & History.pushState

Since implementing LockerService, the History object (documentation) is no longer available. That's too bad, because I'm using History.pushState and onPopState events to manage navigation inside my ...
2
votes
2answers
1k views

Eval() and Function() under LockerService

I started working to make some of my lightning components compliant with LockerService announced recently by Salesforce. One of my Lightning Components (already in production for some orgs) rely on ...
2
votes
1answer
238 views

Enabling Lightning LockerService Security says - Helper data undefined

I've two functions in a component helper, which calls another function like below: ({ data1: null, data2: null, data: null, get1 : function(component) { var action = ...
12
votes
1answer
1k views

Lightning Locker Service and object fields at different levels

I'm seeing some unexpected behaviour with the locker service enabled when updating two fields on an object, one of which is nested inside a sub-object. I have a lightning application that ...
5
votes
1answer
540 views

Lightning Component stop working after activate the LockerService

I'm developing a Lightning Component at work. Basically, everything was going well until I activated the LockerService. I have some parts in the app that when I fire an event, another component ...
11
votes
1answer
276 views

Lightning Locker Server - Permission denied to access property “$lsref”

I'm seeing an error when I attempt to pass a function as a parameter, but only after the containing object has made a round trip as a lightning attribute. I've reproduced this in very few lines of ...
9
votes
1answer
1k views

How to access the FileList array for file inputs in Lightning Components with LockerService

I have been experimenting with LockerService and found that the files array that should be available in JavaScript for file input types is not available when LockerService is enabled. Component ...
0
votes
1answer
800 views

Unable to load jQuery in Salesforce Lightning Application after Salesforce Locker Service enable in Summer '16 Release [duplicate]

We have a couple of applications built in Salesforce's Lightning Components. Recently Salesforce released their Summer '16 Major Release this past weekend, on June 4th 2016. Something wrong happened ...
3
votes
1answer
663 views

Combination of Jquery ,bootstrap and Carousel JS written breaks after Locker Service Upgrade

For a lightning community ,I have a small component built ,that worked well before locker . The code uses bootstrap ,jquery 2.2.0 and ltng:require tags Here is the component code <aura:...
5
votes
3answers
2k views

Chart.js works no more with Locker Service Enabled Org

I am trying to use Chart.js library to build a demo component .Everything worked before locker came into existence and after locker service I get the below error "Something has gone wrong. Action ...
1
vote
1answer
958 views

Salesforce Lightning component issues after enabling Locker Service in Summer 16

If you are creating Lightning component and enabling LockerService (Summer 16 pre-release), almost all of the functionality will be broken, specially if you are using HTML tags. I have a very simple ...
2
votes
1answer
373 views

Lightning Component innerHTML fails without any error

I've been using the SVG component from the related Trailhead Module, and it doesn't display the icon with LockerService activated. I understand from this question that innerHTML is read only, thus ...
2
votes
1answer
2k views

ltng:require not loading scripts in Community pages when LockerService is enabled

Since enabling LockerService our components cannot load external static resource scripts anymore. To test, I created a component: <aura:component implements="forceCommunity:...
2
votes
1answer
1k views

Uncaught Error: Unable to create locker IIFE: TypeError: Cannot set property 'cssText' of undefined (updated)

Our development sandbox has recently moved to Summer '16, and a lightning app/ component that I moved from a Spring '16 box does throws the above error right off the bat. I know that the new Locker ...
7
votes
2answers
1k views

DOM manipulation using External libraries in lightning component

As per the LC documentation and answers to the below questions: 1.Jquery selector is not working properly in subsequent loads in lightning component. 2.DOM modification feasibility in lightning. It'...
2
votes
2answers
4k views

I can't get index of the row in a aura:iteration component in the client side controller

In my lightning component, I have a table with column that has a menu in it. The menu items are for edit and delete. I'm trying to find a way to get the row that was clicked on and so far everything ...
3
votes
1answer
5k views

Lightning Access Check Failed! Attribute not visible to markup - Summer '16

I'm getting this error when I put my attribute on the page but I can get/set it in my helper without issue. Here's the error: [NoErrorObjectAvailable] Access Check Failed! AttributeSet.get(): ...
6
votes
2answers
2k views

How can we use custom SVG icons in Lightning Component with LockerService enabled?

I'm trying to use a custom SVG icon in a Lightning Component (not part of SLDS pre defined icons). I've put the SVG icon in following manner: MyTestApp.cmp <aura:component > <div aura:...
3
votes
1answer
433 views

Summer 16 Canvas Error with Lightning Locker Service Enabled

I have a lightning component on the app exchange that provides a canvas element for the user to draw their signature. In a Summer 16 pre-release org with the lightning locker service enabled, when I ...
7
votes
1answer
2k views

Issue with lightning locker service and jQuery static resource

I get the following error when attempting to use a lightning component (previously working with Spring 16) in a Summer 16 pre-release org, presumably because of the new locker service: "Uncaught ...

1
4 5 6 7
8