Actually, when I was young, I did something like that by mistake: an error page had a frame (can't recall why) but under some conditions it erroneously loaded itself as the frame target.
I have no idea if it would still be an issue 20 years later.
If I remember correctly, #Firefox has a maximum depth of 9 iframe.
@Wolf480pl@niu.moe @tuxcrafting @izaya