Part of #26. This does not yet take care of delaying the load event of the outer window.
Some things to note:
Iframes have an "iframe load in progress" flag which is set before and unset after firing the event. I guess this is to prevent a sort of infinite recursion? This didn't seem very necessary so I didn't copy it, but I might be wrong.
Iframes have a "mute iframe load" flag which is set by document.open(), and has some known spec bugs. This seems like legacy so we shouldn't copy it, I'm pretty sure.
Please let me know what you think of these points, as well as how well this matches the Chromium implementation.
Part of #26. This does not yet take care of delaying the load event of the outer window.
Some things to note:
Iframes have an "iframe load in progress" flag which is set before and unset after firing the event. I guess this is to prevent a sort of infinite recursion? This didn't seem very necessary so I didn't copy it, but I might be wrong.
Iframes have a "mute iframe load" flag which is set by document.open(), and has some known spec bugs. This seems like legacy so we shouldn't copy it, I'm pretty sure.
Please let me know what you think of these points, as well as how well this matches the Chromium implementation.
Preview | Diff