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

Pagespeed Insights - Accessibility Score Is Unavailable #15380

Closed
2 tasks done
neighbor-peace opened this issue Aug 15, 2023 · 4 comments
Closed
2 tasks done

Pagespeed Insights - Accessibility Score Is Unavailable #15380

neighbor-peace opened this issue Aug 15, 2023 · 4 comments

Comments

@neighbor-peace
Copy link

neighbor-peace commented Aug 15, 2023

FAQ

URL

https://www.thrifty.com/us/en

What happened?

The accessibility score is not provided when testing https://www.thrifty.com/us/en on PageSpeed Insights. The Background and foreground colors have a sufficient contrast ratio and Elements with visible text labels have matching accessible names audits are throwing the following error:

axe-core Error: Failed to execute 'getImageData' on 'CanvasRenderingContext2D': Value is not of type 'long'.

image

Reproduce by testing https://www.thrifty.com/us/en on PageSpeed Insights

What did you expect?

An accessibility score should be provided.

What have you tried?

I've tried to isolate the problem by running Lighthouse against the page (10.0.0, 10.1.0, 10.2.0, 11.0.0) and by running axe-core tests on the page (4.6.3, 4.7.0, 4.7.1, 4.7.2). However, none of those tests throw any errors. This leads me to believe the issue is an edge case at the PageSpeed Insights layer caused by our environment.

The issue bears similarity to:

However, those issues were reproducible by running Lighthouse and axe-core tests.

How were you running Lighthouse?

PageSpeed Insights

Lighthouse Version

10.0.0, 10.1.0, 10.2.0, 11.0.0

Chrome Version

115.0.5790.170

Node Version

16.16.0

OS

Mac

Relevant log output

No response

@adamraine
Copy link
Member

Fixing #15002 should also fix this issue, although I'm not sure why this would only fail in PageSpeed. It's possible that the content of the page is different in PageSpeed (the screenshots are different between PageSpeed and normal Lighthouse)

@neighbor-peace
Copy link
Author

neighbor-peace commented Aug 16, 2023

Thank you for the reply @adamraine.

For context, all traffic to that address is served the same content. It appears that the difference between snapshots is due to the snapshot being taken at different points during the rendering of the page. Couldn't the difference be due to slight differences in the emulation environments?

As for #15002, do you believe fixing it will fix this issue as well because the axe-core error will be treated as score: 0 instead of score: NaN? Or because the underlying axe-core error will be resolved?

Also, on the off chance that you are able to, could you provide any tentative timeline for when this fix will be released?

@adamraine
Copy link
Member

For context, all traffic to that address is served the same content. It appears that the difference between screenshots is due to the snapshot being taken at different points during the rending of the page. Couldn't the difference be due to slight differences in the emulation environments?

It's possible. For reference this is what the screenshots look like on my end:

CLI PageSpeed Insights
image image

As for #15002, do you believe fixing it will fix this issue as well because the axe-core error will be treated as score: 0 instead of score: NaN? Or because the underlying axe-core error will be resolved?

It will be because the underlying axe-core error is fixed.

Also, on the off chance that you are able to, could you provide any tentative timeline for when this fix will be released?

It appears that a fix has landed in axe-core, however they haven't released it yet. We can't fix the changes on our end until the axe-core fix is released. Unfortunately, I don't have much information beyond that.

@adamraine
Copy link
Member

The a11y issue is the same as #15002. Since the page appears to be serving different content for PSI and Lighthouse there isn't much we can do here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants