DescriptionProperly fall back to manifest short_name when name is empty.
If a PWA includes a "name" field in their manifest, but explicitly sets
it to the empty string, it would have an app banner displayed with no
text, as well as no title on its splash screen.
This CL fixes the bug by properly checking if the "name" string is
empty, rather than just null. This check is already performed by the
InstallableManager in the process of determining whether or not a site
is a valid PWA. An additional test is added to ensure the correct
functionality.
BUG=722615
Review-Url: https://codereview.chromium.org/2900623002
Cr-Commit-Position: refs/heads/master@{#473806}
Committed: https://chromium.googlesource.com/chromium/src/+/0b543dd3a72f7d63717ee4c99e74bf01902a1c7c
Patch Set 1 #
Messages
Total messages: 12 (8 generated)
|