We are seeing the issue on a customer's machine: a "Access Denied" error Randomly show up when the JS code try to access an iframe content by using:
var frameContents = $('#IFRAME2').contents();
According to our customer's steps, I'm sure that at that time, the src of the iframe is still "about:Blank" like it was set by default:
<iframe id="IFRAME2" src="about:blank" style="width: 100%;"></iframe>
Since this is a "Sometimes" issue and does not happen on all of the machines, we could not reproduce it on our lab and don't know how to fix it properly.
My question: What can cause this issue? Any idea to fix it?
Update: My customer said that they didn't see the issue until they upgrade their IE from 8 to 11. OS is windows 7 SP1 French.