-
-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Access is denied" with iframes in IE #28
Comments
I'm a bit unclear on this; where is |
Well, to be honest, it's not 100% clear to me either. |
You can actually see that devtools is triggering the throwing |
Why would IE 11's devtools be calling a function that doesn't natively exist in IE 11? |
|
aha, interesting |
Yeah, I found that interesting as well. :-) It does remind me on how other polyfills also impact how devtools is behaving (eg. webcomponents polyfill) Had not seen it before on these smaller polyfills though. 😃 Let me know if you need more info, or clarifications. |
We'll probably need a technique like in Easiest would be to depend directly on object-keys, but that would be best done in a major bump, since this package doesn't currently have deps, and it'd need a bit of restructuring to update it to modern approaches. I'll look into possible solutions beyond just a try/catch. |
The highlighted technique is an exclusion list. What exclusions were you thinking of? Also, when you talk about depending on Some extra things I noticed:
It seems as if the objects passed directly by the devtools to the function have some kind of lowered security context. 🤔 |
Yes, IE has some strange behaviors around this sort of thing. We might even need something crazier where the gOPN wrapper temporarily restores the native function, calls it, and then reverts the native one back to the wrapper, so it can successfully call it. |
In IE, when iframes are being added to the page, the GOPN function throws with"Access is denied".
Screenshot
How to reproduce
(I used a reference do a dummy doubleclick host, as my issue occurs when tags are being added to the page)
Remarks
getOwnPropertyNames
is being used by the dev tools themselves.The text was updated successfully, but these errors were encountered: