Bug 323833
Code flow:
- Page loads with an iframe in the body.
- Onload, the page does a location.replace() on the iframe with "iframe.html"
- Onload, iframe.html copies a JS array from the iframe to the parent and executes resetIframe() in the parent.
- The resetIframe() function does a location.replace() on the iframe with "about:blank".
- Now click on the link below to reproduce the error.
If you change the "about:blank" to "blank.html" in the code, the error doesn't happen.
It looks like whenever the URL is not of the same domain, the error occurs. I tried using "http://www.mozilla.org" and
I got the same error.
click here to alert the object that was created by the iframe and copied to the parent.
click here to execute a for-in loop to reproduce the error