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
COOP+COEP: javascript: URLs #21230
COOP+COEP: javascript: URLs #21230
Conversation
This comment has been minimized.
This comment has been minimized.
The idea is that a |
@ParisMeuleman @hemeryar ping. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, with just one question
t.add_cleanup(() => frame.remove()); | ||
frame.src = "resources/coep-frame.html"; | ||
frame.onload = t.step_func(() => { | ||
frame.onload = null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just out of curiosity:
I have seen tests that assume this automatically for popups. Do we need it explicitely here because it is an iframe or because it is a javascript url?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(Talking about frame.onload = null)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some browsers dispatch the load event for javascript URLs (as is required) and others did not. So if you do not do this, you end up with a loop, at least in some browsers.
6c19f0c
to
a54b263
Compare
No description provided.