diff options
author | Kristian Monsen <kristianm@google.com> | 2010-12-06 13:43:51 +0000 |
---|---|---|
committer | Steve Block <steveblock@google.com> | 2010-12-21 18:19:24 +0000 |
commit | 16d041cc9f4b67c37abf7dc5f8d49c7de81f2c84 (patch) | |
tree | 494f2c9fb5392b37f5e0373f0824b8be2d3afb42 /tests/DumpRenderTree | |
parent | 36f43908ae8ef9c45cbbbc6f5c16d4281da77ff7 (diff) | |
download | frameworks_base-16d041cc9f4b67c37abf7dc5f8d49c7de81f2c84.zip frameworks_base-16d041cc9f4b67c37abf7dc5f8d49c7de81f2c84.tar.gz frameworks_base-16d041cc9f4b67c37abf7dc5f8d49c7de81f2c84.tar.bz2 |
Adds CookieManager methods to configure policy for cookies for file scheme URLs
Needs https://android-git.corp.google.com/g/83647 in external/webkit,
which disallows such cookies by default and provides configuration
methods native side.
Also updates TestShellActivity to allow such cookies, as they are
required for the page cycler.
Bug: 2944150
Change-Id: Idcc7e2812fab33e6a2a8766a2176bc3278e617da
Diffstat (limited to 'tests/DumpRenderTree')
-rw-r--r-- | tests/DumpRenderTree/src/com/android/dumprendertree/TestShellActivity.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/DumpRenderTree/src/com/android/dumprendertree/TestShellActivity.java b/tests/DumpRenderTree/src/com/android/dumprendertree/TestShellActivity.java index 643dbf5..7e6f8ea 100644 --- a/tests/DumpRenderTree/src/com/android/dumprendertree/TestShellActivity.java +++ b/tests/DumpRenderTree/src/com/android/dumprendertree/TestShellActivity.java @@ -36,6 +36,7 @@ import android.os.Message; import android.util.Log; import android.view.ViewGroup; import android.view.Window; +import android.webkit.CookieManager; import android.webkit.ConsoleMessage; import android.webkit.GeolocationPermissions; import android.webkit.HttpAuthHandler; @@ -130,6 +131,7 @@ public class TestShellActivity extends Activity implements LayoutTestController contentView.setOrientation(LinearLayout.VERTICAL); setContentView(contentView); + CookieManager.setAcceptFileSchemeCookies(true); mWebView = new WebView(this); mEventSender = new WebViewEventSender(mWebView); mCallbackProxy = new CallbackProxy(mEventSender, this); |