-
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
core(installable-manifest): check for fetchable icon #10168
Merged
Merged
Changes from 28 commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
a1967d2
core(manifest-values): only consider icons that are fetchable
connorjclark 9286bac
pagefns
connorjclark 8e23bff
icons test
connorjclark a29fd77
icon
connorjclark dd3785c
trivial
connorjclark cb119aa
better
connorjclark 86da15f
fix tst
connorjclark d52a99c
more tests
connorjclark cff5ce3
better test
connorjclark dbc1f42
fix more tests
connorjclark ae67065
fix smoke test
connorjclark 292a3eb
fix tests
connorjclark c3e6459
Merge remote-tracking branch 'origin/master' into manifest-icon-fetch
connorjclark 3c36dc4
fix
connorjclark f0467f9
pr
connorjclark 77b155d
Merge remote-tracking branch 'origin/master' into manifest-icon-fetch
connorjclark 50cc495
mock
connorjclark 2351fc6
test
connorjclark a5db32d
Merge remote-tracking branch 'origin/master' into manifest-icon-fetch
connorjclark 276fa39
fixtest
connorjclark 691ab34
Merge remote-tracking branch 'origin/master' into manifest-icon-fetch
connorjclark 1f9b1d1
InstallabilityErrors artifact
connorjclark e86fc0b
fix
connorjclark aaedac3
revert
connorjclark 8ed9b9e
Update lighthouse-core/test/gather/gather-runner-test.js
connorjclark 533e6c1
Merge remote-tracking branch 'origin/master' into manifest-icon-fetch
connorjclark 5078cab
fix
connorjclark 9d63999
fix render test
connorjclark 5b2ca74
Merge remote-tracking branch 'origin/master' into manifest-icon-fetch
connorjclark 88fbc8d
fix
connorjclark f36ef02
oops
connorjclark File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -95,19 +95,19 @@ class ServiceWorker extends Audit { | |
/** | ||
* Returns a failure message if there is no start_url or if the start_url isn't | ||
* contolled by the scopeUrl. | ||
* @param {LH.Artifacts['WebAppManifest']} manifest | ||
* @param {LH.Artifacts['WebAppManifest']} WebAppManifest | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. not changing anything else here now, but this naming convention is better imo. |
||
* @param {string} scopeUrl | ||
* @return {string|undefined} | ||
*/ | ||
static checkStartUrl(manifest, scopeUrl) { | ||
if (!manifest) { | ||
static checkStartUrl(WebAppManifest, scopeUrl) { | ||
if (!WebAppManifest) { | ||
return str_(UIStrings.explanationNoManifest); | ||
} | ||
if (!manifest.value) { | ||
if (!WebAppManifest.value) { | ||
return str_(UIStrings.explanationBadManifest); | ||
} | ||
|
||
const startUrl = manifest.value.start_url.value; | ||
const startUrl = WebAppManifest.value.start_url.value; | ||
if (!startUrl.startsWith(scopeUrl)) { | ||
return str_(UIStrings.explanationBadStartUrl, {startUrl, scopeUrl}); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just got bit by forgetting to add this. #9946 would have saved me time.