diff --git a/js/xpconnect/src/XPCJSRuntime.cpp b/js/xpconnect/src/XPCJSRuntime.cpp index 293fee037fe..e22d2c4af03 100644 --- a/js/xpconnect/src/XPCJSRuntime.cpp +++ b/js/xpconnect/src/XPCJSRuntime.cpp @@ -367,7 +367,7 @@ void XPCJSRuntime::TraceXPConnectRoots(JSTracer *trc) XPCAutoLock lock(mMapLock); - XPCWrappedNativeScope::TraceJS(trc, this); + XPCWrappedNativeScope::TraceWrappedNativesInAllScopes(trc, this); for (XPCRootSetElem *e = mVariantRoots; e ; e = e->GetNextRoot()) static_cast(e)->TraceJS(trc); diff --git a/js/xpconnect/src/XPCWrappedNativeScope.cpp b/js/xpconnect/src/XPCWrappedNativeScope.cpp index 6d38e985d3b..7dda69fd9ed 100644 --- a/js/xpconnect/src/XPCWrappedNativeScope.cpp +++ b/js/xpconnect/src/XPCWrappedNativeScope.cpp @@ -327,7 +327,7 @@ WrappedNativeJSGCThingTracer(JSDHashTable *table, JSDHashEntryHdr *hdr, // static void -XPCWrappedNativeScope::TraceJS(JSTracer* trc, XPCJSRuntime* rt) +XPCWrappedNativeScope::TraceWrappedNativesInAllScopes(JSTracer* trc, XPCJSRuntime* rt) { // FIXME The lock may not be necessary during tracing as that serializes // access to JS runtime. See bug 380139. diff --git a/js/xpconnect/src/xpcprivate.h b/js/xpconnect/src/xpcprivate.h index 43b49699701..107f2b59d03 100644 --- a/js/xpconnect/src/xpcprivate.h +++ b/js/xpconnect/src/xpcprivate.h @@ -1626,7 +1626,7 @@ public: SystemIsBeingShutDown(); static void - TraceJS(JSTracer* trc, XPCJSRuntime* rt); + TraceWrappedNativesInAllScopes(JSTracer* trc, XPCJSRuntime* rt); void TraceSelf(JSTracer *trc) { JSObject *obj = GetGlobalJSObjectPreserveColor();