User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/124 (KHTML, like Gecko) Safari/125.1 Build Identifier: I've built a Mozilla/Firefox extension that allows a web developer to edit cookies. The only problem is that while nsICookieManager provides an interface to remove and read cookies, it does not provide a corresponding method to add a cookie. nsICookieManager2 has a perfectly appropriate method, but it is marked [noscript]. If this were removed, my extension would work. I cannot find any other way to do this - nsICookieService's API is not similar and doesn't allow the same direct access to the cookie database. I don't know of any reason for this method to be [noscript]. Is there any? Reproducible: Always Steps to Reproduce:
> I don't know of any reason for this method to be [noscript]. Is there any? I'm not sure that PRInt64 can be reflected into JS. But more to the point, this whole method is "not for public consumption", as the comments say. Is there a reason nsICookieService is not sufficient for your needs?
How does your extension allow editing of cookies? By removing and adding the cookie?
This is an automated message, with ID "auto-resolve01". This bug has had no comments for a long time. Statistically, we have found that bug reports that have not been confirmed by a second user after three months are highly unlikely to be the source of a fix to the code. While your input is very important to us, our resources are limited and so we are asking for your help in focussing our efforts. If you can still reproduce this problem in the latest version of the product (see below for how to obtain a copy) or, for feature requests, if it's not present in the latest version and you still believe we should implement it, please visit the URL of this bug (given at the top of this mail) and add a comment to that effect, giving more reproduction information if you have it. If it is not a problem any longer, you need take no action. If this bug is not changed in any way in the next two weeks, it will be automatically resolved. Thank you for your help in this matter. The latest beta releases can be obtained from: Firefox: http://www.mozilla.org/projects/firefox/ Thunderbird: http://www.mozilla.org/products/thunderbird/releases/1.5beta1.html Seamonkey: http://www.mozilla.org/projects/seamonkey/
This bug has been automatically resolved after a period of inactivity (see above comment). If anyone thinks this is incorrect, they should feel free to reopen it.
I'm reopening this bug. It should never have been closed. Gerv! ;-) (In reply to comment #1) > > I don't know of any reason for this method to be [noscript]. Is there any? > > I'm not sure that PRInt64 can be reflected into JS. But more to the point, this > whole method is "not for public consumption", as the comments say. Is there a > reason nsICookieService is not sufficient for your needs? PRInt64 is completely scriptable. nsICookieService is not sufficient because it may result in the user being prompted to accept new cookies. That prevents extensions from doing clever and possibly useful things with the cookie database.
Created attachment 212822 [details] [diff] [review] v1 patch trivial patch.
Comment on attachment 212822 [details] [diff] [review] v1 patch I'd really like this to be fixed for FF 184.108.40.206 if possible. I have this JS-only extension that could really benefit from this.
Comment on attachment 212822 [details] [diff] [review] v1 patch r+sr=bzbarsky. Should we work on freezing this?
yes, perhaps we should.
Comment on attachment 212822 [details] [diff] [review] v1 patch Sorry, doesn't fit in scope of security/stability release, and too late for a ride-along
Comment on attachment 212822 [details] [diff] [review] v1 patch Darin convinced us, approved for 1.8.0 branch, a=dveditz for drivers
*** Bug 331254 has been marked as a duplicate of this bug. ***