-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
assert_throws_js
fails for an element adopted from an iframe
#45405
Comments
…e element's node document's global's CSP Requires web-platform-tests#45405 to be fixed.
When debugging this, be aware that #44352 will prevent the above error log. |
Adding console.log(
"(e.constructor === constructor)=" + (e.constructor === constructor)
);
console.log("(e instanceof TypeError)=" + (e instanceof TypeError));
console.log("e.constructor.name=" + e.constructor.name);
|
It may be relevant for you, test262 takes this case into account in its |
This is unsurprising, yeah. Use |
@Ms2ger: please explain why it's unsurprising. It's not obvious. Using
still fails. |
works. |
Admittedly, I still don't understand why so would be happy to learn about it. |
…e element's node document's global's CSP Requires web-platform-tests#45405 to be fixed.
Every realm has its own set of intrinsics, including
you should by default not assume there's a connection between |
@Ms2ger: a bit. None of the documentation I read implied that, or I was unable to deduce those implications. |
Example:
Error log:
Reproducible with Chrome; Firefox doesn't support Trusted Types yet.
The failure stems from https://searchfox.org/mozilla-central/rev/b4860b54810539f0e4ab1fc46a3246daf2428439/testing/web-platform/tests/resources/testharness.js#2122.
CC @lukewarlow
The text was updated successfully, but these errors were encountered: