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
Origin policy tests not running on wpt.fyi #22113
Comments
I can reproduce locally
only runs two tests and I don't see any console errors in Chrome. |
But it does work under No further understandings yet; I thought the problem was that 'getmessages' was being sent to the iframe before it registered its listener for it, but that also happens for the working |
Could this be related to 644a206#diff-6f05ece846271f4b15119cfe565da64dR72-R96 (omitting the origin policy subdomains from the web driver environment variables)? Although if that's it, then there's probably a separate bug (in testharness.js?) where these tests should be marked as failing instead of passing, if the calls to fetch_tests_from_window don't work. |
I don't think its related to that; that should really only affect the webdriver tests. I've gone very far down the rabbithole here, and I'm not making progress. For some reason, when using One big difference is that wptrunner injects its own setup and config changes, but I don't know how to tell if that is all working as expected or not. cc @jgraham, in case he has magical knowledge about the workings of RemoteContext/RemoteTest and might know why its working here under |
Argh, I had figured it hours ago but had failed to realize that! The problem is with the
This causes us to remove our previously-added callbacks for The reason I had overlooked it is that if you're using As to a fix, I'm not immediately sure. Adding the other events back into |
If you visit https://wpt.fyi/results/origin-policy/content-security/valid-with-semicolon.https.html?label=master&label=experimental&aligned, you see two tests: "Prerequisite check: running on HTTPS" and "Test setup of the iframe".
If you visit https://wpt.live/origin-policy/content-security/valid-with-semicolon.https.html, you see four tests; the two additional ones are "eval must be disallowed" and "img loading must be disallowed". Those are the actual things being tested.
This leads to the unfortunate result of the dashboard being useless for origin policy: https://wpt.fyi/results/origin-policy?label=master&label=experimental&aligned shows everyone passing everything, basically.
The text was updated successfully, but these errors were encountered: