nsICookieManager/CookieService should allow creation of arbitrary cookies for testing
Categories
(Core :: Networking: Cookies, enhancement, P3)
Tracking
()
People
(Reporter: johnath, Unassigned)
References
(Blocks 1 open bug)
Details
(Whiteboard: [necko-triaged])
Comment 1•17 years ago
|
||
Reporter | ||
Comment 2•17 years ago
|
||
Comment 3•17 years ago
|
||
Updated•9 years ago
|
Comment 4•2 years ago
|
||
This still seems worth having! Particularly for the data sanitization tests.
Updated•2 years ago
|
Comment 6•6 months ago
|
||
(In reply to edgul from comment #5)
What format/type should this API take?
Could be an extension of https://searchfox.org/mozilla-central/rev/345ec3c55ddda5f0ce37168f0644dcdcc4834409/netwerk/cookie/nsICookieManager.idl#128 with an optional argument to set the creation time. Or we add a separate test-only method. That might be cleaner.
Hannah tried that a while ago, but we rolled the change back due to some regression in release.
Comment 7•6 months ago
|
||
I think the addForTest method added in https://phabricator.services.mozilla.com/D170377#change-HC1mDTCLgPWk was about right.
The problem with the implementation is that it ended up calling AddNative, and passing an invalid timestamp - see regression in bug 1827669.
Description
•