Open gsnedders opened 6 years ago
Do we want to workaround these bugs, because they aren't per-se Safari running tests incorrectly? Except maybe the bless.html one?
@cdumez @youennf could either of you help triage https://bugs.webkit.org/show_bug.cgi?id=187052?
I cced some folks on bugs.webkit.org. What is the impact of failing these infra tests?
@youennf it's not a big problem, but in order to run infrastructure/ tests in CI (https://github.com/foolip/wpt/pull/5) to ensure that Safari doesn't regress, we'll need to check in expectations about every failure in infrastructure/. That in turn is in service of https://github.com/web-platform-tests/wpt/issues/13299, i.e., preventing regressions of non-infrastructure tests in Safari before they happen.
Understanding why the tests are failing would be great even if it's not fixed soon.
For bless.html, this is the failing test:
promise_test(() => {
const video = document.createElement('video');
video.setAttribute('src', '/media/counting.ogv');
document.body.appendChild(video);
return test_driver.bless('start video playback', () => video.play())
}, 'user activation');
And the failure is Unhandled rejection with value: object "NotSupportedError: The operation is not supported."
That's because of /media/counting.ogv, Safari doesn't support Ogg Theora, so https://github.com/web-platform-tests/wpt/issues/9354.
Switching to /media/counting.mp4 seems to fix the problem.
However, with the same fix, I've also seen flaky timeout or failure due to Unhandled rejection with value: object "AbortError: The operation was aborted."
without any extra changes.
Running the tests flips back and forth a lot between the two tabs, which is https://github.com/web-platform-tests/wpt/issues/10398. My best guess is that media playback is being paused or prevented to start in background tabs.
Anyway, this test doesn't need a media resource as well. Browsers that don't allow media playback without a user gesture will leave video.paused
as true, so I'll try to change the test.
I've sent https://github.com/web-platform-tests/wpt/pull/13403 to fix bless.html.
@youennf probably nothing; https://bugs.webkit.org/show_bug.cgi?id=187052 is the most annoying given it makes it hard to verify behaviour is correct.
The test infrastructure/assumptions/allowed-to-play.html test I added in https://github.com/web-platform-tests/wpt/pull/13622 is also failing in Safari Technology Preview 67.
I've filed https://bugs.webkit.org/show_bug.cgi?id=190775 for that.
Downgrading the priority, this isn't causing any widespread trouble it seems.
So current issues:
With that being the status now, I don't know if it makes sense to keep the meta issue open?
With Safari TP 63: