diff --git a/js/xpconnect/loader/mozJSComponentLoader.cpp b/js/xpconnect/loader/mozJSComponentLoader.cpp index 59e28994dd16..c54d5b23da7b 100644 --- a/js/xpconnect/loader/mozJSComponentLoader.cpp +++ b/js/xpconnect/loader/mozJSComponentLoader.cpp @@ -660,7 +660,7 @@ class ANSIFileAutoCloser #endif JSObject* -mozJSComponentLoader::PrepareObjectForLocation(JSCLContextHelper& aCx, +mozJSComponentLoader::PrepareObjectForLocation(JSContext* aCx, nsIFile *aComponentFile, nsIURI *aURI, bool aReuseLoaderGlobal, diff --git a/js/xpconnect/loader/mozJSComponentLoader.h b/js/xpconnect/loader/mozJSComponentLoader.h index f4129dc7742b..5f0ea8caaa58 100644 --- a/js/xpconnect/loader/mozJSComponentLoader.h +++ b/js/xpconnect/loader/mozJSComponentLoader.h @@ -33,13 +33,10 @@ class ComponentLoaderInfo; { 0xbb, 0xef, 0xf0, 0xcc, 0xb5, 0xfa, 0x64, 0xb6 }} #define MOZJSCOMPONENTLOADER_CONTRACTID "@mozilla.org/moz/jsloader;1" -class JSCLContextHelper; - class mozJSComponentLoader : public mozilla::ModuleLoader, public xpcIJSModuleLoader, public nsIObserver { - friend class JSCLContextHelper; public: NS_DECL_ISUPPORTS NS_DECL_XPCIJSMODULELOADER @@ -65,7 +62,7 @@ class mozJSComponentLoader : public mozilla::ModuleLoader, nsresult ReallyInit(); void UnloadModules(); - JSObject* PrepareObjectForLocation(JSCLContextHelper& aCx, + JSObject* PrepareObjectForLocation(JSContext* aCx, nsIFile* aComponentFile, nsIURI *aComponent, bool aReuseLoaderGlobal,