From 8b68a47b35c78afcb0c50451e747a3f995e51ca9 Mon Sep 17 00:00:00 2001 From: Brian Nicholson Date: Mon, 23 Apr 2012 12:27:18 -0400 Subject: [PATCH] Backout 4ab101096ab3 for breaking favicons. a=backout --- mobile/android/base/GeckoApp.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/mobile/android/base/GeckoApp.java b/mobile/android/base/GeckoApp.java index 97d7e2d38bb..769133b3d86 100644 --- a/mobile/android/base/GeckoApp.java +++ b/mobile/android/base/GeckoApp.java @@ -870,7 +870,6 @@ abstract public class GeckoApp handleSecurityChange(tabId, mode); } else if (event.equals("Content:StateChange")) { final int tabId = message.getInt("tabID"); - final String uri = message.getString("uri"); final boolean success = message.getBoolean("success"); int state = message.getInt("state"); Log.i(LOGTAG, "State - " + state); @@ -878,7 +877,7 @@ abstract public class GeckoApp if ((state & GeckoAppShell.WPL_STATE_START) != 0) { Log.i(LOGTAG, "Got a document start"); final boolean showProgress = message.getBoolean("showProgress"); - handleDocumentStart(tabId, showProgress, uri); + handleDocumentStart(tabId, showProgress); } else if ((state & GeckoAppShell.WPL_STATE_STOP) != 0) { Log.i(LOGTAG, "Got a document stop"); handleDocumentStop(tabId, success); @@ -1184,12 +1183,11 @@ abstract public class GeckoApp }); } - void handleDocumentStart(int tabId, final boolean showProgress, String uri) { + void handleDocumentStart(int tabId, final boolean showProgress) { final Tab tab = Tabs.getInstance().getTab(tabId); if (tab == null) return; - tab.updateURL(uri); tab.setState(Tab.STATE_LOADING); tab.updateSecurityMode("unknown"); @@ -1197,7 +1195,7 @@ abstract public class GeckoApp public void run() { if (Tabs.getInstance().isSelectedTab(tab)) { mBrowserToolbar.setSecurityMode(tab.getSecurityMode()); - if (showProgress && tab.getState() == Tab.STATE_LOADING) + if (showProgress) mBrowserToolbar.setProgressVisibility(true); } Tabs.getInstance().notifyListeners(tab, Tabs.TabEvents.START);