unbust XPCONNECT_STANDALONE build. No change to default build. bug 121438. rs=jband.

This commit is contained in:
jband%netscape.com 2002-02-03 20:05:22 +00:00
Родитель 310fce682f
Коммит f0115acfab
1 изменённых файлов: 8 добавлений и 0 удалений

Просмотреть файл

@ -1163,7 +1163,15 @@ mozJSComponentLoader::GlobalForLocation(const char *aLocation,
goto out;
}
// Quick hack to unbust XPCONNECT_STANDALONE.
// This leaves the jsdebugger with a non-URL pathname in the
// XPCONNECT_STANDALONE case - but at least it builds and runs otherwise.
// See: http://bugzilla.mozilla.org/show_bug.cgi?id=121438
#ifdef XPCONNECT_STANDALONE
localFile->GetPath(getter_Copies(displayPath));
#else
NS_GetURLSpecFromFile(localFile, getter_Copies(displayPath));
#endif
rv = localFile->OpenANSIFileDesc("r", &fileHandle);
if (NS_FAILED(rv)) {
global = nsnull;