am 7e73ce90: DRT needs to clear cookies between tests.

* commit '7e73ce90d6fc6125a0e2f1bb65495efa1816bb1b':
  DRT needs to clear cookies between tests.
This commit is contained in:
Ben Murdoch
2011-01-20 03:46:33 -08:00
committed by Android Git Automerger

View File

@@ -37,6 +37,7 @@ import android.util.Log;
import android.view.ViewGroup; import android.view.ViewGroup;
import android.view.Window; import android.view.Window;
import android.webkit.ConsoleMessage; import android.webkit.ConsoleMessage;
import android.webkit.CookieManager;
import android.webkit.GeolocationPermissions; import android.webkit.GeolocationPermissions;
import android.webkit.HttpAuthHandler; import android.webkit.HttpAuthHandler;
import android.webkit.JsPromptResult; import android.webkit.JsPromptResult;
@@ -827,6 +828,7 @@ public class TestShellActivity extends Activity implements LayoutTestController
setDefaultWebSettings(mWebView); setDefaultWebSettings(mWebView);
mIsGeolocationPermissionSet = false; mIsGeolocationPermissionSet = false;
mPendingGeolocationPermissionCallbacks = null; mPendingGeolocationPermissionCallbacks = null;
CookieManager.getInstance().removeAllCookie();
} }
private long[] getDrawWebViewTime(WebView view, int count) { private long[] getDrawWebViewTime(WebView view, int count) {