Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fire the load event for portals #206

Merged
merged 1 commit into from
May 26, 2020
Merged

Fire the load event for portals #206

merged 1 commit into from
May 26, 2020

Conversation

domenic
Copy link
Collaborator

@domenic domenic commented May 20, 2020

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

Copy link
Collaborator

@lucasgadani lucasgadani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's also not clear to me why the iframe needs a mute flag. It doesn't seem to be used elsewhere in the spec.

Copy link
Collaborator

@jeremyroman jeremyroman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@domenic domenic merged commit 85806f2 into master May 26, 2020
@domenic domenic deleted the load-event branch October 21, 2020 21:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants