I wound up needing this for my gamepad patches, since I'm hanging on to nsGlobalWindow* directly instead of using interfaces.
Created attachment 578014 [details] [diff] [review] Add nsRefPtrHashKey We don't seem to have comprehensive tests on the hashtable stuff, but I'd be happy to add tests for this to TestHashtables.cpp if you'd like.
Comment on attachment 578014 [details] [diff] [review] Add nsRefPtrHashKey Could we just typedef nsRefPtrHashKey<nsISupports> nsISupportsHashKey? Probably doesn't matter though.
We'd lose comptr logging on hash keys then. Whether or not people actually care about that, idk.