mscott%netscape.com 036b0fe6dd Bug #14816 --> we were leaking a nsIPrincipal object in AddScriptEventListener which could be remedied using a nsCOMPtr.
Also clean up for insufficient rv useage, un-commoned JSPRINCIPALS_DROP and improving the control flow for readability.

These changes are actually Brendan's...i'm checking this in on his behalf.
r=mscott. a=brendan


git-svn-id: svn://10.0.0.236/trunk@48969 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-24 06:49:33 +00:00
..
1999-09-14 01:02:20 +00:00