-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Lighthouse unable to fetch manifest.json, favicons in Canary 73.0.3654.0 #6881
Comments
Thanks for filing @tmb-github! I can confirm this is a bug. The issue here seems to be that Chrome has stopped returning the manifest in our offline pass when we test start URL even though it still returns in successfully in our Manifest gatherer in the online pass. Unclear so far if this was an intentional Chrome change we'll need to workaround, or if it's Chrome-side bug. Either way, the fact that we need to fetch the manifest twice has always been a bit of unnecessary ugliness we can clean up to fix this. |
AFAICT this bug was already fixed in Chrome a bit ago, but it's still worth cleaning up our logic here. |
I rewrote the service worker for that site, and the described problems have now vanished. As described, the previous version of the service worker--the one producing the errors on Canary 73--did not produce those errors in Chrome 71 or earlier. So... (1) Please verify that the described (and previously verified) problems are no longer occurring when you run the Canary 73 Lighthouse PWA audit; they are no longer appearing for me. (2) Would you like me to reinstall the previous service worker on that site or post its source code here so that you can determine what was causing the problem? |
Oh I'm glad I asked then!
Yes this would be fantastic! |
Let me start by posting the code alone. If this isn't helpful, I can replace the new-and-improved SW code with the previous version at my site so that you can test it against a live site. However, I wouldn't want to leave it up through the release of the next version of Chrome. But let's start here:
|
Problem
Favicons and Manifest.json are not accessible to Lighthouse in Canary 73, but they are accessible to Lighthouse in Chrome 71. Failure to retrieve resources by clicking on corresponding hrefs in source view suggests the problem may be Canary itself, not Lighthouse.
OS, Browsers, URL
OS: Windows 8.1
Browsers: Chrome 71.0.3578.98 & Canary 73.0.3654.0
URL tested: https://ives-fourth-symphony.com
Lighthouse setup:
Incognito Mode, all browser extensions off
Device: Mobile
All Audits Selected
Throttling: Simulated Fast 3G
Clear Storage: checked
Chrome 71.0.3578.98
No PWA errors detected
Canary 73.0.3654.0
Multiple PWA errors, all from inability to fetch manifest.json:
3: "No usable web app manifest found on page"
6: Failures: No manifest was fetched
8: Failures: No manifest was fetched
9: Failures: No manifest was fetched
The problem may be the browser itself, not Lighthouse.
View source of page in each browser
Go to: view-source:https://ives-fourth-symphony.com/
Search for "href=manifest" and "href=favicon" in the view-source to select the manifest.json and the two favicons
Try clicking on the three links in the two browsers
Chrome 71.0.3578.98
Success: Each link opens in a new tab
Canary 73.0.3654.0
Failure: Neither resource is fetched by clicking on the links:
Theory: Something is wrong with Canary Version 73.0.3654.0
Please advise
The text was updated successfully, but these errors were encountered: