Bug 1517160 - Use correct icon path for internal about pages r=geckoview-reviewers,esawin#geckoview-reviewers

Differential Revision: https://phabricator.services.mozilla.com/D16991

--HG--
extra : moz-landing-system : lando
This commit is contained in:
James Willcox 2019-01-21 09:50:16 +00:00
Родитель 836d8e0a78
Коммит e6c4c5d1ed
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -42,7 +42,7 @@ public class TestIconsHelper {
// Non http(s) URLS
final String jarUrl = GeckoJarReader.getJarURL(RuntimeEnvironment.application, "chrome/chrome/content/branding/favicon64.png");
final String jarUrl = GeckoJarReader.getJarURL(RuntimeEnvironment.application, "chrome/geckoview/content/branding/favicon64.png");
Assert.assertEquals(jarUrl, IconsHelper.guessDefaultFaviconURL(jarUrl));
Assert.assertNull(IconsHelper.guessDefaultFaviconURL("content://some.random.provider/icons"));

Просмотреть файл

@ -27,7 +27,7 @@ public class AboutPagesPreparer implements Preparer {
@Override
public void prepare(IconRequest request) {
if (aboutUrls.contains(request.getPageUrl())) {
final String iconUrl = GeckoJarReader.getJarURL(request.getContext(), "chrome/chrome/content/branding/favicon64.png");
final String iconUrl = GeckoJarReader.getJarURL(request.getContext(), "chrome/geckoview/content/branding/favicon64.png");
request.modify()
.icon(IconDescriptor.createLookupIcon(iconUrl))