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

git-svn-id: svn://10.0.0.236/trunk@113579 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
jband%netscape.com 2002-02-03 20:05:22 +00:00
parent 6838b8f4b5
commit 9ce852e366

View File

@ -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;