Bug 323833

Code flow:
  1. Page loads with an iframe in the body.
  2. Onload, the page does a location.replace() on the iframe with "iframe.html"
  3. Onload, iframe.html copies a JS array from the iframe to the parent and executes resetIframe() in the parent.
  4. The resetIframe() function does a location.replace() on the iframe with "about:blank".
  5. 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