summaryrefslogtreecommitdiffstats
path: root/src/com
diff options
context:
space:
mode:
authorGrace Kloba <klobag@google.com>2009-07-30 12:29:51 -0700
committerGrace Kloba <klobag@google.com>2009-07-30 12:32:30 -0700
commitaab3f09b5c2d39b19067e57635614080b2403a46 (patch)
tree4887da4814c55226f4d9cece7ff36ca3bfd1c53f /src/com
parent1e889171c51147f169e0c9d4e0df1723fdd12adc (diff)
downloadpackages_apps_browser-aab3f09b5c2d39b19067e57635614080b2403a46.zip
packages_apps_browser-aab3f09b5c2d39b19067e57635614080b2403a46.tar.gz
packages_apps_browser-aab3f09b5c2d39b19067e57635614080b2403a46.tar.bz2
Remove the session cookies if Browser starts without any saved state.
Diffstat (limited to 'src/com')
-rw-r--r--src/com/android/browser/BrowserActivity.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/com/android/browser/BrowserActivity.java b/src/com/android/browser/BrowserActivity.java
index a2b5c88..c4c8d33 100644
--- a/src/com/android/browser/BrowserActivity.java
+++ b/src/com/android/browser/BrowserActivity.java
@@ -732,6 +732,9 @@ public class BrowserActivity extends Activity
// none of the files in the directory are referenced any more.
new ClearThumbnails().execute(
mTabControl.getThumbnailDir().listFiles());
+ // there is no quit on Android. But if we can't restore the state,
+ // we can treat it as a new Browser, remove the old session cookies.
+ CookieManager.getInstance().removeSessionCookie();
final Intent intent = getIntent();
final Bundle extra = intent.getExtras();
// Create an initial tab.