summaryrefslogtreecommitdiffstats
path: root/WebKit
diff options
context:
space:
mode:
authorKristian Monsen <kristianm@google.com>2010-08-23 17:25:17 +0100
committerKristian Monsen <kristianm@google.com>2010-08-23 17:25:17 +0100
commit3b64bab14c4f5154788ec891869fab8db4b35f03 (patch)
tree27d830d0458757532dc81ffa64629827e00490e8 /WebKit
parentc2734c93736c8d81f71459461411114e7cb6b44f (diff)
downloadexternal_webkit-3b64bab14c4f5154788ec891869fab8db4b35f03.zip
external_webkit-3b64bab14c4f5154788ec891869fab8db4b35f03.tar.gz
external_webkit-3b64bab14c4f5154788ec891869fab8db4b35f03.tar.bz2
Enable cookies for files.
This is needed for the page cycler, and is probably more compatible with the old http stack. Maybe we should tweak this later, but for now just enabling all file cookies. Change-Id: Ic21bbb6f82d3667671818d9b325de46901f43f33
Diffstat (limited to 'WebKit')
-rw-r--r--WebKit/android/WebCoreSupport/WebRequestContext.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/WebKit/android/WebCoreSupport/WebRequestContext.cpp b/WebKit/android/WebCoreSupport/WebRequestContext.cpp
index 6b2fe1b..1b7a5ee 100644
--- a/WebKit/android/WebCoreSupport/WebRequestContext.cpp
+++ b/WebKit/android/WebCoreSupport/WebRequestContext.cpp
@@ -120,6 +120,10 @@ WebRequestContext* WebRequestContext::GetAndroidContextForPath(const char* cooki
androidContext->http_transaction_factory_ = new net::HttpCache(androidContext->host_resolver(), net::ProxyService::CreateNull(), net::SSLConfigService::CreateSystemSSLConfigService(), 0, 0, 0, defaultBackend);
scoped_refptr<SQLitePersistentCookieStore> cookieDb = new SQLitePersistentCookieStore(cookiePath);
+
+ // This is needed for the page cycler
+ net::CookieMonster::EnableFileScheme();
+
androidContext->cookie_store_ = new net::CookieMonster(cookieDb.get(), 0);
return androidContext.release();