зеркало из https://github.com/mozilla/gecko-dev.git
Bug 696550: Favicon should be reset in the Tab, when there is a location change [r=mfinkle]
This commit is contained in:
Родитель
75ab7e26b8
Коммит
cfffd6ded3
|
@ -540,7 +540,7 @@ abstract public class GeckoApp
|
|||
}
|
||||
|
||||
void handleLocationChange(final int tabId, final String uri) {
|
||||
Tab tab = Tabs.getInstance().getTab(tabId);
|
||||
final Tab tab = Tabs.getInstance().getTab(tabId);
|
||||
if (tab == null)
|
||||
return;
|
||||
|
||||
|
@ -564,6 +564,7 @@ abstract public class GeckoApp
|
|||
public void run() {
|
||||
mBrowserToolbar.setTitle(uri);
|
||||
mBrowserToolbar.setFavicon(null);
|
||||
tab.updateFavicon(null);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
@ -139,10 +139,8 @@ public class Tab {
|
|||
}
|
||||
|
||||
public void updateFavicon(Drawable favicon) {
|
||||
if (favicon != null) {
|
||||
this.favicon = favicon;
|
||||
Log.i(LOG_FILE_NAME, "Updated favicon for tab with id: " + this.id);
|
||||
}
|
||||
this.favicon = favicon;
|
||||
Log.i(LOG_FILE_NAME, "Updated favicon for tab with id: " + this.id);
|
||||
}
|
||||
|
||||
public boolean doReload() {
|
||||
|
|
Загрузка…
Ссылка в новой задаче