{"action":"created","issue":{"url":"https://api.github.com/repos/videojs/video.js/issues/2703","labels_url":"https://api.github.com/repos/videojs/video.js/issues/2703/labels{/name}","comments_url":"https://api.github.com/repos/videojs/video.js/issues/2703/comments","events_url":"https://api.github.com/repos/videojs/video.js/issues/2703/events","html_url":"https://github.com/videojs/video.js/issues/2703","id":111609927,"number":2703,"title":"Uncaught SecurityError when using iframe","user":{"login":"naorye","id":2873571,"avatar_url":"https://avatars.githubusercontent.com/u/2873571?v=3","gravatar_id":"","url":"https://api.github.com/users/naorye","html_url":"https://github.com/naorye","followers_url":"https://api.github.com/users/naorye/followers","following_url":"https://api.github.com/users/naorye/following{/other_user}","gists_url":"https://api.github.com/users/naorye/gists{/gist_id}","starred_url":"https://api.github.com/users/naorye/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/naorye/subscriptions","organizations_url":"https://api.github.com/users/naorye/orgs","repos_url":"https://api.github.com/users/naorye/repos","events_url":"https://api.github.com/users/naorye/events{/privacy}","received_events_url":"https://api.github.com/users/naorye/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-10-15T12:52:54Z","updated_at":"2015-10-15T18:47:22Z","closed_at":null,"body":"When using videoJS inside an iframe, the following code runs and cause an exception:\r\n```\r\nvar hasAutomationEqualityBug = (function () {\r\n\t/* global window */\r\n\tif (typeof window === 'undefined') { return false; }\r\n\tfor (var k in window) {\r\n\t\tif (!blacklistedKeys['$' + k] && has.call(window, k) && window[k] !== null && typeof window[k] === 'object') {\r\n\t\t\ttry {\r\n\t\t\t\tequalsConstructorPrototype(window[k]);\r\n\t\t\t} catch (e) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\treturn false;\r\n}());\r\n```\r\nThe problem is that window.frameElement throwing the following example:\r\n```\r\nUncaught SecurityError: Failed to read the 'frame' property from 'Window': Blocked a frame with origin \"https://frontend.dev:8001\" from accessing a frame with origin \"http://frontend.dev:8000\".  The frame requesting access has a protocol of \"https\", the frame being accessed has a protocol of \"http\". Protocols must match.\r\n```"},"comment":{"url":"https://api.github.com/repos/videojs/video.js/issues/comments/148485745","html_url":"https://github.com/videojs/video.js/issues/2703#issuecomment-148485745","issue_url":"https://api.github.com/repos/videojs/video.js/issues/2703","id":148485745,"user":{"login":"jtwalters","id":153132,"avatar_url":"https://avatars.githubusercontent.com/u/153132?v=3","gravatar_id":"","url":"https://api.github.com/users/jtwalters","html_url":"https://github.com/jtwalters","followers_url":"https://api.github.com/users/jtwalters/followers","following_url":"https://api.github.com/users/jtwalters/following{/other_user}","gists_url":"https://api.github.com/users/jtwalters/gists{/gist_id}","starred_url":"https://api.github.com/users/jtwalters/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jtwalters/subscriptions","organizations_url":"https://api.github.com/users/jtwalters/orgs","repos_url":"https://api.github.com/users/jtwalters/repos","events_url":"https://api.github.com/users/jtwalters/events{/privacy}","received_events_url":"https://api.github.com/users/jtwalters/received_events","type":"User","site_admin":false},"created_at":"2015-10-15T18:47:22Z","updated_at":"2015-10-15T18:47:22Z","body":"` * Video.js 5.0.0 <http://videojs.com/>`\r\n\r\nI don't believe I'm using any IE8 shim. Not sure how to confirm that.\r\n"}}