Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(725)

Issue 2900623002: Properly fall back to manifest short_name when name is empty. (Closed)

Created:
3 years, 7 months ago by dominickn
Modified:
3 years, 7 months ago
Reviewers:
benwells
CC:
chromium-reviews, dominickn+watch_chromium.org, pkotwicz+watch_chromium.org, zpeng+watch_chromium.org, agrieve+watch_chromium.org, chrome-apps-syd-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Properly 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -3 lines) Patch
M chrome/android/javatests/src/org/chromium/chrome/browser/banners/AppBannerManagerTest.java View 3 chunks +13 lines, -1 line 0 comments Download
M chrome/browser/banners/app_banner_manager.cc View 1 chunk +7 lines, -2 lines 0 comments Download
A chrome/test/data/banners/manifest_empty_name.json View 1 chunk +39 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (8 generated)
dominickn
PTAL, thanks!
3 years, 7 months ago (2017-05-22 05:09:41 UTC) #4
benwells
lgtm
3 years, 7 months ago (2017-05-23 04:07:23 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2900623002/1
3 years, 7 months ago (2017-05-23 04:09:43 UTC) #9
commit-bot: I haz the power
3 years, 7 months ago (2017-05-23 04:14:35 UTC) #12
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/0b543dd3a72f7d63717ee4c99e74...

Powered by Google App Engine
This is Rietveld 408576698