I looked at nsStandardURL object's refcounter. After object has been removed from session history, refcounter value was 1. So, I think there is one unbalanced AddRef somewhere.
-> whitebox qa
It is not network, but content. And not nsStandardURL, but nsDocument::mPrincipal. nsDocument::mPrincipal is raw pointer in 1.0.2, not nsCOMPtr as in Mozilla 1.3. So, it is released manually by NS_IF_RELEASE in nsDocument destructor. The problem is that release happens before calling mNodeInfoManager->DropDocumentReference(). But DropDocumentReference in turn calls nsDocuments::GetPrincipal where mPrincipal is getting initialized and AddRef'ed again. Hence the leak. Changing bug's title and component.
please set the default owners when you hop components.
It was fixed on trunk. See http://bugzilla.mozilla.org/show_bug.cgi?id=170201
Fixed on the trunk, marking FIXED.
But what about the branch? It must be fixed there too. And I'm going to provide patch for 1.0 branch. Or I don't understand bug's life cycle and "fixed" means something else?
In general, the focus has moved off the 1.0 branch, but if you still has an interest in fixing this on the branch, then feel free to open up this bug and provide a patch.
Reopening: I've got a patch.
Created attachment 119085 [details] [diff] [review] patch converting nsDocument::mPrincipal into an nsCOMPtr This is a patch from bug 17201, backported to 1.0 branch.
bug 170201, sorry.
Comment on attachment 119085 [details] [diff] [review] patch converting nsDocument::mPrincipal into an nsCOMPtr sr=jst
Asa, Brendan, are we still maintaining the 1.0 branch? If so, should we land this there?
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.