Closed Bug 1489145 Opened 6 years ago Closed 6 years ago

Leaflet.js does not load in Firefox in a Salesforce community when using ltng:require?

Categories

(Core :: DOM: Bindings (WebIDL), defect)

64 Branch
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1351501

People

(Reporter: u623779, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36 Steps to reproduce: In salesforce, add Leaflet (https://leafletjs.com/) as a static resource named "leaflet" Create a lightning component that is available for communities. In the component add the following: <ltng:require styles="/resource/leaflet/leaflet.css" scripts="/resource/leaflet/leaflet.js" afterScriptsLoaded="{!c.jsLoaded}" /> In the Component js controller, create a method called jsLoaded: jsLoaded: function(component, event, helper) {alert("Hello");} Create a salesforce community and add the component onto a page. Open that page. Actual results: Nothing Expected results: An alert with "Hello" Works in other browsers
Triaging as a Core: JavaScript issue. Please correct if this is not the right component.
Component: Untriaged → JavaScript Engine
Product: Firefox → Core
Further debugging results in following message. [cannot use the given object as a weak map key]
Maybe a dup of bug 1449485?
Status: UNCONFIRMED → RESOLVED
Closed: 6 years ago
Component: JavaScript Engine → DOM: Bindings (WebIDL)
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.