Not sure, if documented anywhere, but there an exact specification what Locker-Service will NOT block?

In particular, which of the following things will be possible with Locker-Service enabled:

  • window.addEventListener() with otherWindow.postMessage() to establish secure communication over iframes-borders
  • window.setTimeout()
  • window.setIntervall()

You can view it here:-

Locker Service API Viewer

| improve this answer | |
  • As far as this look here documentation.auraframework.org/lockerApiTest/… window.addEventListener() might work - but I can't really be sure without trying. – Uwe Heim Dec 21 '16 at 16:10
  • 1
    Yes window.addEventListener() is fully supported as per the doc. Please do not go by what the Lightning CLI tool says is supported as it us woefully out of date (that is being addressed). – Doug Chasman Jan 4 '17 at 14:28

We have just updated the API viewer to make it faster, more concise, and more readable:

LockerService API viewer

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.