author | Ehsan Akhgari <ehsan@mozilla.com> |
Mon, 05 Nov 2012 21:36:42 -0500 | |
changeset 112376 | 7b61a5e983ba3b3b330a3d74f3475ecf1229e80e |
parent 112375 | b4d4ccf671dd2a1b7a561c3984fe5ef385c20bc0 |
child 112377 | 0aca350975177bef0f4404e7f5e22daeba214e53 |
push id | 23812 |
push user | emorley@mozilla.com |
push date | Tue, 06 Nov 2012 14:01:34 +0000 |
treeherder | mozilla-central@f4aeed115e54 [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
bugs | 786061 |
milestone | 19.0a1 |
backs out | 801d11096998395738377ce13beb394d4c102c78 |
first release with | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
last release without | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
mobile/android/base/GeckoApp.java | file | annotate | diff | comparison | revisions | |
mobile/android/base/WebApp.java.in | file | annotate | diff | comparison | revisions |
--- a/mobile/android/base/GeckoApp.java +++ b/mobile/android/base/GeckoApp.java @@ -1586,17 +1586,17 @@ abstract public class GeckoApp BrowserDB.initialize(getProfile().getName()); String passedUri = null; String uri = getURIFromIntent(intent); if (uri != null && uri.length() > 0) { passedUri = uri; } - if (mRestoreMode == GeckoAppShell.RESTORE_NONE && shouldRestoreSession()) { + if (mRestoreMode == RESTORE_NONE && getProfile().shouldRestoreSession()) { mRestoreMode = RESTORE_CRASH; } final boolean isExternalURL = passedUri != null && !passedUri.equals("about:home"); StartupAction startupAction; if (isExternalURL) { startupAction = StartupAction.URL; } else { @@ -1824,20 +1824,16 @@ abstract public class GeckoApp public GeckoProfile getProfile() { // fall back to default profile if we didn't load a specific one if (mProfile == null) { mProfile = GeckoProfile.get(this); } return mProfile; } - protected boolean shouldRestoreSession() { - return getProfile().shouldRestoreSession(); - } - /** * Enable Android StrictMode checks (for supported OS versions). * http://developer.android.com/reference/android/os/StrictMode.html */ private void enableStrictMode() { if (Build.VERSION.SDK_INT < Build.VERSION_CODES.GINGERBREAD) { return;
--- a/mobile/android/base/WebApp.java.in +++ b/mobile/android/base/WebApp.java.in @@ -185,21 +185,16 @@ public class WebApp extends GeckoApp { #ifdef MOZ_LINKER_EXTRACT @Override public boolean linkerExtract() { return true; } #endif @Override - protected boolean shouldRestoreSession() { - return false; - } - - @Override public void onTabChanged(Tab tab, Tabs.TabEvents msg, Object data) { switch(msg) { case SELECTED: case LOCATION_CHANGE: if (Tabs.getInstance().isSelectedTab(tab)) { try { String title = tab.getURL(); URL page = new URL(title);