зеркало из https://github.com/mozilla/pjs.git
Initiated AutoRegister calls for XPCOM, to allow for http to load
dynamically.
This commit is contained in:
Родитель
b124b8f5c0
Коммит
f55cbc5106
|
@ -26,6 +26,8 @@
|
||||||
#include "plstr.h"
|
#include "plstr.h"
|
||||||
#include "plevent.h"
|
#include "plevent.h"
|
||||||
|
|
||||||
|
#include "nsIComponentManager.h"
|
||||||
|
|
||||||
#include "nsIStreamListener.h"
|
#include "nsIStreamListener.h"
|
||||||
#include "nsIInputStream.h"
|
#include "nsIInputStream.h"
|
||||||
#include "nsINetService.h"
|
#include "nsINetService.h"
|
||||||
|
@ -228,6 +230,12 @@ int main(int argc, char **argv)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
NS_InitXPCOM(nsnull);
|
||||||
|
nsComponentManager::AutoRegister(nsIComponentManager::NS_Startup, "./components");
|
||||||
|
|
||||||
|
testURL(argv[1]);
|
||||||
|
return 0;
|
||||||
|
#if 0
|
||||||
nsRepository::RegisterComponent(
|
nsRepository::RegisterComponent(
|
||||||
kEventQueueServiceCID, NULL, NULL, XPCOM_DLL, PR_FALSE, PR_FALSE);
|
kEventQueueServiceCID, NULL, NULL, XPCOM_DLL, PR_FALSE, PR_FALSE);
|
||||||
nsRepository::RegisterComponent(
|
nsRepository::RegisterComponent(
|
||||||
|
@ -257,6 +265,7 @@ int main(int argc, char **argv)
|
||||||
nsServiceManager::ReleaseService(kEventQueueServiceCID, pEventQService);
|
nsServiceManager::ReleaseService(kEventQueueServiceCID, pEventQService);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче