Closed Bug 221885 Opened 21 years ago Closed 20 years ago

[minimo] add --disable-cookies build option

Categories

(Core :: Networking, defect)

defect
Not set
minor

Tracking

()

RESOLVED FIXED

People

(Reporter: darin.moz, Assigned: dwitte)

Details

(Keywords: fixed-aviary1.0)

Attachments

(4 files)

now that the cookie service has been moved into necko, we may want to add a configure option to disable the building of cookies. thunderbird might want this option (until it starts using the GRE), and other gecko embedders might as well. see bug 210561 for more info on the move from extensions/cookie to netwerk/cookie.
I would definetly be interested in leveraging such a flag for thunderbird.
looking ahead... right now, cookies will be operational in thunderbird (presuming you don't have a cookies disabled pref in all.js). if/when thunderbird uses the GRE, they will also be operational by default. to fix this, you probably want to add the "network.cookie.cookieBehavior" integer pref to all.js, and set it to 2 (disable). of course users could override this pref, so if you really want to nuke cookies, you can make your own implementation of nsICookiePermission that just blanket rejects everything. but i would hope the pref is enough :)
Target Milestone: --- → mozilla1.6beta
Status: NEW → ASSIGNED
Target Milestone: mozilla1.6beta → mozilla1.7alpha
moving minimo bugs to the new bugzilla product.
Component: Networking → General
Product: Browser → Minimo
Target Milestone: mozilla1.7alpha → ---
Version: Trunk → unspecified
Attached patch patchSplinter Review
something a little like this? (this unconditionally exports the public cookie headers - necko requires them. is that ok?)
Assignee: darin → dwitte
Attached patch supplementSplinter Review
... and with this, it actually works. thanks biesi. (interesting flaw with ccache... it must've pulled nsNetModule.o from cache, since nothing had apparently changed. it wont've known about the missing cookie headers. caveat emptor).
er, nevermind that slur on ccache. pebcak.
since minimo doesn't have review flags... darin, feel free to look at this when you have some time :)
-> Browser:Networking
Component: General → Networking
Product: Minimo → Browser
Version: unspecified → Trunk
Comment on attachment 152895 [details] [diff] [review] supplement r+sr=darin
Attachment #152895 - Flags: superreview+
Attachment #152895 - Flags: review+
Comment on attachment 152891 [details] [diff] [review] patch i think you need to declare NECKO_COOKIES in autoconf.mk.in so it will be seen by the Makefiles. otherwise, this patch looks good to me. you should get cls, bryner, or bsmedberg to give final review for build changes.
ah! thanks, yeah, i didn't know about autoconf.mk.in. (i had temporarily assumed the reason the makefiles weren't picking up the change was because i hadn't regenerated |configure|).
Comment on attachment 152891 [details] [diff] [review] patch bsmedberg, could you take a look at these three patches? thanks!
Attachment #152891 - Flags: review?(bsmedberg)
Comment on attachment 152891 [details] [diff] [review] patch >+[ --disable-cookies >+ Disable cookie support], You don't need this on two lines, that's only for configure options that are too long for a single line. Please condense.
Attachment #152891 - Flags: review?(bsmedberg) → review+
condensed, and checked in. this will be needed on the aviary branch, per mscott (http://bugzilla.mozilla.org/show_bug.cgi?id=250931#c1).
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Whiteboard: needed-aviary1.0
necko-config.h needs to know about NECKO_COOKIES too.
Comment on attachment 153344 [details] [diff] [review] autoconf supplement r+sr=darin
Attachment #153344 - Flags: superreview+
Attachment #153344 - Flags: review+
Comment on attachment 153642 [details] [diff] [review] necko-config.h.in change r+sr=darin
Attachment #153642 - Flags: superreview+
Attachment #153642 - Flags: review+
Keywords: fixed-aviary1.0
Whiteboard: needed-aviary1.0
dwitte - can you put this on 1.7 as well in case there is a minimo release from there? Thanks Please mark fixed1.7.x when done.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: