The equality check works because the proxy service caches proxies, and will always return the same wrapper.
This fixes a leak and a situation that led to some asserts in XPConnect on shutdown. (Some listeners were proxy-wrapped JS objects.)
r=jband.
I have updated all users that I found
grepping the source tree.
r=valeski@netscape.coma=waterson@netscape.com
b=43131
Also checking in changes to the window's embed test which is NOT
hooked up to the build system.