зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1295639 - TwoLinePageRow: Use stripAboutReaderUrl() instead of getUrlFromAboutReader(). r=ahunt
ReaderModeUtils.getUrlFromAboutReader() will return null if this is not a 100% valid reader mode URL. However ReaderMoteUtils.stripAboutReaderUrl() will return the original URL if the reader mode URL could not be "decoded". MozReview-Commit-ID: J07Gkyq07JK --HG-- extra : rebase_source : 3703d8f7f98fe5cb29d3e74012659996d9149dcb
This commit is contained in:
Родитель
a6b9e8ba76
Коммит
adf056b0ee
|
@ -296,7 +296,7 @@ public class TwoLinePageRow extends LinearLayout
|
|||
|
||||
// Displayed RecentTabsPanel URLs may refer to pages opened in reader mode, so we
|
||||
// remove the about:reader prefix to ensure the Favicon loads properly.
|
||||
final String pageURL = AboutPages.isAboutReader(url) ? ReaderModeUtils.getUrlFromAboutReader(url) : url;
|
||||
final String pageURL = ReaderModeUtils.stripAboutReaderUrl(url);
|
||||
|
||||
if (bookmarkId < BrowserContract.Bookmarks.FAKE_PARTNER_BOOKMARKS_START) {
|
||||
mLoadFaviconJobId = Favicons.getSizedFavicon(
|
||||
|
|
Загрузка…
Ссылка в новой задаче