[haiku-webkit-commits] r307 - webkit/trunk/WebKit/haiku/API

  • From: webkit@xxxxxxxxxxxxxxx
  • To: haiku-webkit-commits@xxxxxxxxxxxxx
  • Date: Tue, 09 Mar 2010 21:19:59 +0000

Author: stippi
Date: Tue Mar  9 21:19:59 2010
New Revision: 307
URL: http://mmlr.dyndns.org/changeset/307

Log:
Quick hack to enable the cookie handling in the CURL backend. This at least
allows some persistency across sessions.

Modified:
   webkit/trunk/WebKit/haiku/API/WebPage.cpp

Modified: webkit/trunk/WebKit/haiku/API/WebPage.cpp
==============================================================================
--- webkit/trunk/WebKit/haiku/API/WebPage.cpp   Tue Mar  9 21:19:18 2010        
(r306)
+++ webkit/trunk/WebKit/haiku/API/WebPage.cpp   Tue Mar  9 21:19:59 2010        
(r307)
@@ -58,6 +58,7 @@
 #include "PlatformString.h"
 #include "PlatformWheelEvent.h"
 #include "ResourceHandle.h"
+#include "ResourceHandleManager.h"
 #include "Settings.h"
 #include "TextEncoding.h"
 #include "WebDownload.h"
@@ -124,6 +125,11 @@
     WebCore::AtomicString::init();
     WebCore::DOMTimer::setMinTimerInterval(0.008);
     WebCore::UTF8Encoding();
+
+       // TODO: This is a quick hack to enable cookie storage via CURL.
+       // At least it works better than our own broken implementation.
+       ResourceHandleManager::sharedInstance()->setCookieJarFileName(
+               "/boot/home/config/settings/WebPositive/Cookies.curl");
 }
 
 /*static*/ void BWebPage::SetCacheModel(BWebKitCacheModel model)

Other related posts:

  • » [haiku-webkit-commits] r307 - webkit/trunk/WebKit/haiku/API - webkit