зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
836d8e0a78
Коммит
e6c4c5d1ed
|
@ -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))
|
||||
|
|
Загрузка…
Ссылка в новой задаче