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

core(icons): defer to manifest-icon type hint for image type #6230

Merged
merged 2 commits into from
Oct 13, 2018

Conversation

exterkamp
Copy link
Member

Summary
Makes the icon pngSizedAtLeast function check the file extension only if there is no typehint like Chrome does.

Related Issues/PRs
fixes: #6208

lighthouse-core/lib/icons.js Outdated Show resolved Hide resolved
lighthouse-core/lib/icons.js Outdated Show resolved Hide resolved
lighthouse-core/test/lib/icons-test.js Outdated Show resolved Hide resolved
lighthouse-core/test/lib/icons-test.js Show resolved Hide resolved
Copy link
Member

@brendankenny brendankenny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 🏓🖼

@brendankenny brendankenny changed the title core(icons): Fixes icon validity check not matching Chrome's core(icons): defer to manifest-icon type hint for image type Oct 13, 2018
@paulirish paulirish merged commit eea0045 into master Oct 13, 2018
@paulirish paulirish deleted the fix-icon-checker branch October 13, 2018 01:02
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

Successfully merging this pull request may close these issues.

icons.isPNG() should not test extension
3 participants