зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1084022 - Don't log errors for missing default favicons. r=rnewman
This commit is contained in:
Родитель
d9529470c9
Коммит
39b182a5d8
|
@ -417,8 +417,12 @@ public class LocalBrowserDB {
|
|||
faviconField.setAccessible(true);
|
||||
|
||||
return faviconField.getInt(null);
|
||||
} catch (IllegalAccessException | NoSuchFieldException ex) {
|
||||
Log.wtf(LOGTAG, "Reflection error fetching favicon: " + name, ex);
|
||||
} catch (IllegalAccessException | NoSuchFieldException e) {
|
||||
// We'll end up here for any default bookmark that doesn't have a favicon in
|
||||
// resources/raw/ (i.e., about:firefox). When this happens, the Favicons service will
|
||||
// fall back to the default branding icon for about pages. Non-about pages should always
|
||||
// specify an icon; otherwise, the placeholder globe favicon will be used.
|
||||
Log.d(LOGTAG, "No raw favicon resource found for " + name);
|
||||
}
|
||||
|
||||
Log.e(LOGTAG, "Failed to find favicon resource ID for " + name);
|
||||
|
|
|
@ -394,7 +394,6 @@
|
|||
profile/bookmarks.inc (see bug 964946). Don't expose the URLs to L10N. -->
|
||||
<string name="bookmarkdefaults_title_aboutfirefox">@bookmarks_aboutBrowser@</string>
|
||||
<string name="bookmarkdefaults_url_aboutfirefox">about:firefox</string>
|
||||
<string name="bookmarkdefaults_favicon_aboutfirefox">chrome/chrome/content/branding/favicon64.png</string>
|
||||
|
||||
<!-- Icon is automatically generated from R.drawable.bookmarkdefaults_favicon_addons -->
|
||||
<string name="bookmarkdefaults_title_addons">@bookmarks_addons@</string>
|
||||
|
|
Загрузка…
Ссылка в новой задаче