[Adium-devl] Facebook/Safari
Zachary West
zacwest at gmail.com
Mon Jan 5 16:52:33 UTC 2009
On Mon, Jan 5, 2009 at 11:43, Evan Schoenberg <evan at adiumx.com> wrote:
> 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.
>
If it passes the above test (as well as the one I wrote[1]) then it isn't
stripping outgoing cookies. When I tested -[NSMutableURLRequest
setHTTPShouldHandleCookies:NO], my cookie test passed as valid as well, with
the semi-bad patch[2] I used to test it.
It doesn't strip outgoing cookies, we're just not behaving with Facebook
correctly for some reason (they submit multiple cookies to the browser by
the same name, I'm not sure if this is the issue).
I don't think switching to Pidgin is a great move, since we implement nicer
the "protocol", as well as the extra benefits of the Info window, etc. It's
an option, of course, and the interaction between Safari and Facebook is
really annoying.
I've been trying to figure this one out too, and I've had no luck so far.
It's confusing, to say the least. Perhaps we're sending the cookies outgoing
wrong, for multiple cookies? That case, I didn't test.
Zac
[1] http://weks.net/cookie_test.php
[2] http://trac.adiumx.com/ticket/10643
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://adium.im/pipermail/devel_adium.im/attachments/20090105/f835fe3c/attachment-0001.html>
More information about the devel
mailing list