See https://bugs.webkit.org/show_bug.cgi?id=10313 for test cases and an extended discussion.
Fixing this bug appears to be blocked on disentangling the loader from Frame.
*** Bug 10313 has been marked as a duplicate of this bug. ***
Via Bug 10313 Comment #85:
> Here is the google chrome bug that is linked to this issue: