[Adium-devl] Facebook/Safari

Evan Schoenberg evan at adiumx.com
Mon Jan 5 16:43:44 UTC 2009


Facebook + Safari is nasty, because the shared cookie storage leads us  
to continually be logged out and for Safari's Facebook to be, as well.

I spent yesterday evening and this morning working on "AICookieJar",  
an attempt at manually managing cookies independent of the systemwide  
storage.

The success: I can make a WebKit window pass a simple cookie test as  
in http://www.tempesttech.com/cookies/cookietest1.asp while using our  
own cookie storage.

The failure: Facebook doesn't work with it. I don't understand why, as  
at this point I am doing, at our level, exactly what the working  
Pidgin Facebook plugin does as far as I can tell. I think it's  
possible that -[NSMutableURLRequest setHTTPShouldHandleCookies:NO]  
doesn't just disable the "default cookie handling" as the  
documentation says but actively forces it to strip out outgoing cookies.

So....

one solution would be to just switch to the Pidgin Facebook plugin,  
since it implements its own HTTP stack and gets us completely away  
from whatever weird internals are messing this up. It' s a pretty easy  
switch, and as far as I know it's feature equivalent.  It's sad to me  
to see my rather elegant (if I say so myself) Facebook implementation  
get trashed...but that's no reason not to do it.

Thoughts?

-Evan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 194 bytes
Desc: This is a digitally signed message part
URL: <http://adium.im/pipermail/devel_adium.im/attachments/20090105/ee6c9e72/attachment.sig>


More information about the devel mailing list