Closed Bug 113143 Opened 23 years ago Closed 23 years ago

Cookie Module to call compact-policy parser in p3p module

Categories

(Core :: Networking: Cookies, defect)

x86
Windows NT
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla0.9.9

People

(Reporter: morse, Assigned: morse)

References

Details

Attachments

(2 files)

This is an offshoot of bug 104894.

Currently the cookie module has some code that is supposed to call on a p3p 
compact-policy parser in order to determine whether to accept, reject, or 
downgrade cookies received from the server.  However the code to parse the 
compact policies has not yet been checked in (see bug 104894).  So the calling 
code in the cookie module is temporarily commented out.  When the tarball in bug 
104894 is checked in, the code in the cookie module can be uncommented.
Depends on: 104894
Blocks: 112941
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla0.9.7
Target Milestone: mozilla0.9.7 → mozilla0.9.8
*** Bug 113896 has been marked as a duplicate of this bug. ***
Blocks: 102472
what are the chances this will make 098?
That depends on the dependency bug 104894.  If that bug makes 0.9.8 (which 
it is currently targetted for), then there's an excellent chance that this one 
will also.  And the inverse is also true.
kewl ... looks like bug 104894 has been waiting for an r= for about a month.
cc'ing dp to see if he can review the dependency bug.
My suggestion here is to make a generic interface that lives in the cookie
module, say nsICookiePolicy or something, and implement it in the P3P module.
then have either a well-known category that you enumerate, or have a well-known
ContractID that P3P registers itself with. The ContractID can be defined in a
cookie header file (maybe even nsICookiePolicy.idl or something) that can be
#included from P3P.

In any case, cookie should not be #include'ing any P3P header files.
Won't that mean that p3p will then have to include a cookie header file?  Or am 
I misunderstanding what you are asking for?
With just a few more hours to go, it's obvious that dependent bug 104894 isn't 
going to make it for 0.9.8.  Therefore neither will this one.  Retargetting for 
0.9.9
Target Milestone: mozilla0.9.8 → mozilla0.9.9
Keywords: nsbeta1
Attachment #68964 - Attachment is obsolete: true
Comment on attachment 69236 [details] [diff] [review]
No need to preload p3p dll

sr=jag
Attachment #69236 - Flags: superreview+
Comment on attachment 69236 [details] [diff] [review]
No need to preload p3p dll

r=sgehani
Attachment #69236 - Flags: review+
Attachment #68964 - Attachment is obsolete: false
I'm sorry, I goofed.  The second patch does not obsolete the first one.  The 
second one contains only nsCookies.cpp modifications whereas the first one 
contains modifications for other files as well.  The modifications for the first 
patch for the files other than nsCookies.cpp are still valid.

Samir, jag, please review the non-nsCOokies.cpp portion of the first patch.  
Thanks.
Steve: 
 {"P3P Service",
    NS_P3PSERVICE_CID,
-   NS_P3PSERVICE_CONTRACTID,
+   NS_COOKIECONSENT_CONTRACTID,
    nsP3PServiceConstructor,
   }

Does this mean that P3P Service would be used for cookies only? Remember, policy
viewer will also depend on P3P service and so will the full policy ( in future ).
Policy viewer can simply use the interface that is in the cookie module.
Policy viewer has nothing to do with Cookies and IMO should not be using
interfaces in cookie module. 
Instead of saying what we shouldn't do, do you have a recommendation for what we 
should do?
Steve: I understand your frustration. Unfortunately, I don't have an answer to
this problem on top of my head. We need to think through.
Comment on attachment 68964 [details] [diff] [review]
Turn on the call to the compact policy parser

r=harishd
Attachment #68964 - Flags: review+
Comment on attachment 68964 [details] [diff] [review]
Turn on the call to the compact policy parser

>Index: MANIFEST_IDL
>===================================================================
>RCS file: /cvsroot/mozilla/extensions/cookie/MANIFEST_IDL,v
>retrieving revision 1.2
>diff -u -r1.2 MANIFEST_IDL
>--- MANIFEST_IDL	31 Jan 2002 04:08:11 -0000	1.2
>+++ MANIFEST_IDL	12 Feb 2002 02:22:56 -0000
>@@ -3,3 +3,4 @@
> nsIImgManager.idl
> nsIPermission.idl
> nsIPermissionManager.idl
>+nsICookieConsent.idl
>\ No newline at end of file

sr=jag if you fix that (just add a blank line at the end of that file).
Attachment #68964 - Flags: superreview+
Patch checked in.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: