From e894eaf9f2124cb30fd0acda0d5ba6b5ef7735f4 Mon Sep 17 00:00:00 2001 From: Tom Gasson Date: Mon, 26 Jun 2017 11:13:08 +1000 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix:=20Accessing=20window.top.{c?= =?UTF-8?q?onstructor|prototype}=20throws=20error=20in=20iOS?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Exclude window.top so that no security errors are thrown when es5-shim is used in an iframe from a different domain --- es5-shim.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/es5-shim.js b/es5-shim.js index 2380b2cd..f2978820 100644 --- a/es5-shim.js +++ b/es5-shim.js @@ -994,7 +994,8 @@ $webkitStorageInfo: true, $external: true, $width: true, - $height: true + $height: true, + $top: true }; var hasAutomationEqualityBug = (function () { /* globals window */