Re: LOAD_ANONYMOUS + LOAD_NOCOOKIES

2013-04-03 Thread bernhardredl
hi i tried to create the patch for 846629 but ran into troubles. (from JS the constants are all 0) i have attached a (incomplete) patch at bugzilla. https://bugzilla.mozilla.org/show_bug.cgi?id=846629 Maybe someone can point me to missing part between c++ <-> JS constant s handling? Am Freitag

Re: LOAD_ANONYMOUS + LOAD_NOCOOKIES

2013-02-28 Thread Jason Duell
On 02/28/2013 07:29 PM, bernhardr...@gmail.com wrote: just to keep this thread up to date. I asked jduell if it is possible to change long to int64_t We're going to upgrade to 64 bits in https://bugzilla.mozilla.org/show_bug.cgi?id=846629 Jason ___

Re: LOAD_ANONYMOUS + LOAD_NOCOOKIES

2013-02-28 Thread bernhardredl
just to keep this thread up to date. I asked jduell if it is possible to change long to int64_t Am Freitag, 1. März 2013 04:11:40 UTC+1 schrieb bernha...@gmail.com: > Yep, you are right. I assumed nsIRequest would be the only file assigning > these values. > > > > What numbers should i choose?

Re: LOAD_ANONYMOUS + LOAD_NOCOOKIES

2013-02-28 Thread bernhardredl
Yep, you are right. I assumed nsIRequest would be the only file assigning these values. What numbers should i choose? I need 2 flags and unsigned long only provides 32 possibility which are already used (except 25) For me it would be ok to just fix the cookies issue :) But i guess there is a r

Re: LOAD_ANONYMOUS + LOAD_NOCOOKIES

2013-02-28 Thread Boris Zbarsky
On 2/28/13 9:37 PM, bernhardr...@gmail.com wrote: i have run hg pull and hg update on mozilla central and still have no LOAD_DOCUMENT_URI. Are you looking in the right file? The problem seems to be that this patch breaks the WHOLE Cookie handling of firefox. Because your LOAD_NO_COOKIES h

Re: LOAD_ANONYMOUS + LOAD_NOCOOKIES

2013-02-28 Thread bernhardredl
i have run hg pull and hg update on mozilla central and still have no LOAD_DOCUMENT_URI. But i can skip 18 if you want. i have a first draft of my patch: (see link below) The problem seems to be that this patch breaks the WHOLE Cookie handling of firefox. (at least it fixes my original sync bug

Re: LOAD_ANONYMOUS + LOAD_NOCOOKIES

2013-02-22 Thread Boris Zbarsky
On 2/22/13 7:25 PM, bernhardr...@gmail.com wrote: const unsigned long LOAD_NOCOOKIES = 1 << 15; ... just stop sending / accepting cookies at this request 1<<15 is LOAD_FRESH_CONNECTION, no? const unsigned long LOAD_NOAUTH = 1 << 16; ... don't add authentification headers automatically 1<<1

Re: LOAD_ANONYMOUS + LOAD_NOCOOKIES

2013-02-22 Thread Gregory Szorc
On 2/22/2013 5:41 PM, Brian Smith wrote: > bernhardr...@gmail.com wrote: >> i'm willing to fix >> https://bugzilla.mozilla.org/show_bug.cgi?id=836602 >> >> Summary: The rest api should not send cookies and thus now uses the >> LOAD_ANONYMOUS flag. But this flag also denies (client side) >> authenti

Re: LOAD_ANONYMOUS + LOAD_NOCOOKIES

2013-02-22 Thread Brian Smith
bernhardr...@gmail.com wrote: > i'm willing to fix > https://bugzilla.mozilla.org/show_bug.cgi?id=836602 > > Summary: The rest api should not send cookies and thus now uses the > LOAD_ANONYMOUS flag. But this flag also denies (client side) > authentication like my custom firefox sync requires. > t

LOAD_ANONYMOUS + LOAD_NOCOOKIES

2013-02-22 Thread bernhardredl
sry for double posting this to dev-apps-firefox. got a hint that this group would be the better group. hi i'm willing to fix https://bugzilla.mozilla.org/show_bug.cgi?id=836602 Summary: The rest api should not send cookies and thus now uses the LOAD_ANONYMOUS flag. But this flag also denies (cl