es-shims / es5-shim

ECMAScript 5 compatibility shims for legacy (and modern) JavaScript engines
MIT License
7.12k stars 895 forks source link

🐛 Fix: Accessing window.top.{constructor|prototype} from a frame throws error in iOS #445

Closed tomgasson closed 7 years ago

tomgasson commented 7 years ago

Prevent accessing window.top so that no security errors are thrown when es5-shim is used in an iframe from a different domain

tomgasson commented 7 years ago

I added the test