Closed
Bug 411952
Opened 17 years ago
Closed 16 years ago
Cookie's creationTime needs to be exposed via nsICookie2
Categories
(Core :: Networking: Cookies, defect)
Core
Networking: Cookies
Tracking
()
RESOLVED
FIXED
mozilla1.9.1b2
People
(Reporter: ehsan.akhgari, Assigned: ehsan.akhgari)
References
()
Details
(Keywords: dev-doc-complete)
Attachments
(1 file)
3.94 KB,
patch
|
mconnor
:
review+
bzbarsky
:
superreview+
|
Details | Diff | Splinter Review |
Spinoff from bug 248970 comment 45.
The creationTime field of the cookies' DB should be exposed from the nsICookie2 interface. Throwing this off to Dan, as he volunteered for it. :-)
Thanks, Dan!
Assignee | ||
Comment 1•17 years ago
|
||
Dan: do you think you would be able to submit a patch in the next couple of days? If not, would you mind giving a few pointers so that I can come up with a patch myself? I'll need this in bug 248970...
Assignee | ||
Comment 2•17 years ago
|
||
Based on bug 248970 comment 70, this should no longer be a blocker for that bug...
No longer blocks: PrivateBrowsing
Assignee | ||
Updated•17 years ago
|
Target Milestone: mozilla1.9 M11 → ---
Assignee | ||
Comment 3•16 years ago
|
||
The patch includes a unit test, which allows the creationTime attribute to slip by 1 second maximum, to skip timing issues when running the test.
Assignee: dwitte → ehsan.akhgari
Attachment #339573 -
Flags: superreview?(bzbarsky)
Attachment #339573 -
Flags: review?(dwitte)
![]() |
||
Updated•16 years ago
|
Attachment #339573 -
Flags: superreview?(bzbarsky) → superreview+
![]() |
||
Comment 4•16 years ago
|
||
Comment on attachment 339573 [details] [diff] [review]
Patch
Should perhaps be |long long| in the IDL.
Assignee | ||
Comment 5•16 years ago
|
||
(In reply to comment #4)
> (From update of attachment 339573 [details] [diff] [review])
> Should perhaps be |long long| in the IDL.
I noted that the expiry attribute was declared as PRInt64, so I thought creationTime should be as well...
Assignee | ||
Comment 6•16 years ago
|
||
bz: ping?
![]() |
||
Comment 7•16 years ago
|
||
Ah, yeah, keeping those consistent is a good idea. In the end it really doesn't matter much: the two get folded to the same thing by everyone.
Assignee | ||
Comment 8•16 years ago
|
||
bz: thanks for your comments!
Actually, I thought this patch has dwitte's r+ and is awaiting your sr... :/
So, I guess what I really meant was:
dwitte: ping?
:-)
Assignee | ||
Comment 9•16 years ago
|
||
Comment on attachment 339573 [details] [diff] [review]
Patch
Throwing this to mconnor...
Attachment #339573 -
Flags: review?(dwitte) → review?(mconnor)
Updated•16 years ago
|
Attachment #339573 -
Flags: review?(mconnor) → review+
Comment 10•16 years ago
|
||
Comment on attachment 339573 [details] [diff] [review]
Patch
r=mconnor, because dwitte seems to have wandered away somewhere.
Assignee | ||
Comment 11•16 years ago
|
||
Pushed to mozilla-central: <http://hg.mozilla.org/mozilla-central/rev/4c45de526782>
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.1b2
Assignee | ||
Comment 12•16 years ago
|
||
Err, I forget to hg addremove *all the time*!
<http://hg.mozilla.org/mozilla-central/rev/75036e89468d>
Comment 13•16 years ago
|
||
So, the idl for this says it is in seconds, but the patch clearly calls CreationID, which returns microseconds. The idl needs to be corrected (or the code does).
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment 14•16 years ago
|
||
fix the idl comment, please.
Comment 15•16 years ago
|
||
And please add dev-doc needed and update https://developer.mozilla.org/en/Firefox_3.1_for_developers#For_XUL_and_application_developers when you do fix it.
Assignee | ||
Comment 16•16 years ago
|
||
IDL comment fixed. Thanks for catching this, Shawn!
<http://hg.mozilla.org/mozilla-central/rev/47dd67ed93a4>
Status: REOPENED → RESOLVED
Closed: 16 years ago → 16 years ago
Keywords: dev-doc-needed
Resolution: --- → FIXED
Assignee | ||
Comment 17•16 years ago
|
||
OK, I went ahead and documented this: <https://developer.mozilla.org/en/nsICookie2>
The documentation was mistakenly telling that nsICookie2 is frozen, and I corrected it as well.
Also, added a note on <https://developer.mozilla.org/en/Firefox_3.1_for_developers#For_XUL_and_application_developers>
Keywords: dev-doc-needed → dev-doc-complete
You need to log in
before you can comment on or make changes to this bug.
Description
•