Newer Version Available
Validate Secure Window Public API (secure-window)
When Locker Service is enabled, the framework prevents the
use of unsupported API objects or calls. That means your Lightning components code is
allowed to use:
- Features built into JavaScript (“intrinsic” features)
- Published, supported features built into the Lightning Component framework
- Published, supported features built into Locker Service SecureObject objects
Prior to Locker Service, when you accessed the window global, you could call any function and access any property available. When Locker Service is enabled, the window global is “wrapped” by a new SecureWindow object, which controls access to window and its functions and properties. SecureWindow restricts you to using only “safe” features of the window global.