After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 603825 - DIsallows setting cookies for file:// URLs
DIsallows setting cookies for file:// URLs
Status: RESOLVED FIXED
Product: libsoup
Classification: Core
Component: Misc
2.28.x
Other Linux
: Normal normal
: ---
Assigned To: libsoup-maint@gnome.bugs
libsoup-maint@gnome.bugs
Depends on:
Blocks:
 
 
Reported: 2009-12-04 22:07 UTC by Gustavo Noronha (kov)
Modified: 2010-12-11 10:36 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Gustavo Noronha (kov) 2009-12-04 22:07:53 UTC
So, in our fixing of the crash when setting cookies when host was NULL, we enforced the URI to be "valid for HTTP". Looks like WebKit wants cookies to be set for file:// URIs, though:

http://build.webkit.org/results/GTK Linux 32-bit Debug/r51710 (1491)/results.html

See fast/cookies/local-file-can-set-cookies.html
Comment 1 Dan Winship 2010-04-10 16:26:56 UTC
So, ftp and http URIs on the same host share the same cookies... does this mean that file URIs share cookies with http://localhost/?
Comment 2 Dan Winship 2010-12-11 10:36:21 UTC
> So, ftp and http URIs on the same host share the same cookies... does this mean
> that file URIs share cookies with http://localhost/?

in Firefox at least, file:// cookies get hostname "", which I guess
makes sense. Fixed in libsoup master and tested against
fast/cookies/local-file-can-set-cookies. Should probably wait until
the GNOME release in a week and a half before building a new libsoup
package for the bots and removing the Skipped line.