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

Test errors on Firefox #5326

Closed
dmarcos opened this issue Jul 5, 2023 · 6 comments
Closed

Test errors on Firefox #5326

dmarcos opened this issue Jul 5, 2023 · 6 comments

Comments

@dmarcos
Copy link
Member

dmarcos commented Jul 5, 2023

https://github.com/aframevr/aframe/actions/runs/5468426408/jobs/9956050718

weird one. That happens when adding a new commit but re-running the tests sometimes fixes it. looks intermittent

@mrxz
Copy link
Contributor

mrxz commented Jul 6, 2023

Did a bit of digging, seems to be happening with Firefox 115. Locally I'm able to reproduce the test failures with Firefox 115, but not with 114. The following code in A-Frame is responsible for setting the onload and onerror methods (https://github.com/aframevr/aframe/blob/master/src/core/a-assets.js#L52-L60). This code isn't always hit with Firefox 115 as sometimes imgEl.complete is already true. Probably caused by other tests using the same image src.

@dmarcos
Copy link
Member Author

dmarcos commented Jul 6, 2023

Interesting. Seems Firefox 115 behavior is somehow different

@dmarcos
Copy link
Member Author

dmarcos commented Jul 6, 2023

Not sure if related but we recently changed the behavior 1773661 to address #5251

Is there anything relevant in Firefox 115 change log or any known related bugs?

@mrxz
Copy link
Contributor

mrxz commented Jul 7, 2023

It's really a combination of that change (which causes onload to be possibly undefined) and some change in Firefox 115. I did quickly skim through the changelog but didn't notice anything relevant.

In any case, I've opened a PR to fix the test in question: #5331
As far as I can tell, there should be no need to manually call onload as it can just wait for the image to naturally load (as is done in other tests as well).

@mrxz
Copy link
Contributor

mrxz commented Jul 10, 2023

@dmarcos Issue can be closed now that #5331 has been merged

@dmarcos
Copy link
Member Author

dmarcos commented Jul 10, 2023

Fixed by #5331

@dmarcos dmarcos closed this as completed Jul 10, 2023
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

No branches or pull requests

2 participants