Created attachment 580731[details][diff][review]
using nsDependentJSString
I'll file a followup bug to get better nsDependentJSString <-> JS::Anchor
handling. nsDependentJSString could just do the right thing with JSString, or at
least enforce that JS::Anchor is used.