Bug 732818 - Use tab URL as AwesomeBar URL. r=mfinkle

This commit is contained in:
Brian Nicholson 2012-03-15 14:05:25 -07:00
parent a960713770
commit 38aa68aa3d

View File

@ -2379,9 +2379,9 @@ abstract public class GeckoApp
// if we're not adding a new tab, show the old url
Tab tab = Tabs.getInstance().getSelectedTab();
if (tab != null) {
Tab.HistoryEntry he = tab.getLastHistoryEntry();
if (he != null) {
intent.putExtra(AwesomeBar.CURRENT_URL_KEY, he.mUri);
String url = tab.getURL();
if (url != null) {
intent.putExtra(AwesomeBar.CURRENT_URL_KEY, url);
}
}
}