Same code as in initial report. The alert should not be possible if the iframe had closed (and also, the iframe should no longer be there to be seen).
Does iframe.close() do that in any other browser? Why not just remove it from the DOM using removeChild?
(In reply to comment #2) > Does iframe.close() do that in any other browser? No, as far as I know. I only have IE 6 to check it with. > Why not just remove it from the DOM using removeChild? For same domain origin, that's fine, of course. I am more concerned with the general cross domain situation.
Sorry, looks like I selected the wrong content type earlier.
Attachment #279081 - Attachment is obsolete: true
IMO, if the parent page is in another domain, you shouldn't be able to remove the iframe from the parent page's DOM. That could confuse the parent page. about:blanking the iframe would be ok, though.
Per HTML, only top-level browsing contexts can be closed.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 7 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.