Re: Cookies are no longer stored by nsIHttpChannel?

2019-09-17 Thread Andrea Marchesini
> You said you would like to move this discussione to IRC, where can I find > you? > > Yes, let's continue this discussion on IRC. My nickname is "baku". Thanks for your help! > np ___ dev-platform mailing list dev-platform@lists.mozilla.org

Re: Cookies are no longer stored by nsIHttpChannel?

2019-09-17 Thread john.bieling--- via dev-platform
Hi Andrea, I can confirm, that network.cookieSettings.unblocked_for_testing is indeed fixing this for me. But since this pref looks like it will not stay long, I would like to fix this with the worker approach. You said you would like to move this discussione to IRC, where can I find you?

Re: Cookies are no longer stored by nsIHttpChannel?

2019-09-17 Thread Andrea Marchesini
Yes, nsiCookieSettings landed in FF67. And it's in ESR68: https://hg.mozilla.org/releases/mozilla-esr68/file/tip/netwerk/cookie/nsICookieSettings.idl What blocks your cookies is probably this: https://hg.mozilla.org/releases/mozilla-esr68/file/tip/netwerk/base/LoadInfo.cpp#l754 On Tue, Sep 17,

Re: Cookies are no longer stored by nsIHttpChannel?

2019-09-17 Thread john.bieling--- via dev-platform
Hi Andrea, I was already going thru that CookieSettings docuemnt, but are you sure that is alreadfy in the ESR68 branch? I tried to access loadInfo.cookieSettings and got back an error. Where can I find you on IRC? Which channel/nick? ___

Re: Cookies are no longer stored by nsIHttpChannel?

2019-09-17 Thread Andrea Marchesini
The issue is about the use of nsICookieSettings. If you create a channel without an associated document, by default, we create a new nsICookieSettings which blocks cookies. The idea behind this decision is that chrome code, by default should not send/receive cookies. A good description of what

Re: Cookies are no longer stored by nsIHttpChannel?

2019-09-16 Thread john.bieling--- via dev-platform
More details: The same code works in TB60 and in the cookie list of the general options I can see all sorts of cookies being stored. In TB68, none of the expected cookies show up in the cookie list. Did something change in that region? What do I need to do to allow a channel / principal to

Re: Cookies are no longer stored by nsIHttpChannel?

2019-09-16 Thread Honza Bambas
This might be a cookie isolation, or something missing to recognize if the cookie storage is allowed for the channel.  Is the `userContextId` the same all the time? If yes, can you capture a log with nsHttp:5,cookie:5?  Checking browser console for errors may tell you something too. CC'ing

Cookies are no longer stored by nsIHttpChannel?

2019-09-16 Thread john.bieling--- via dev-platform
Hi, I have run into something strange. This is how I create network connections in my (Thunderbird-) AddOn: let channel = Services.io.newChannelFromURI( aConnection.uri, null, Services.scriptSecurityManager.createCodebasePrincipal(aConnection.uri, { userContextId }), null,