Raptor only. Display images on Mac.
git-svn-id: svn://10.0.0.236/trunk@11674 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
bd3a731b2c
commit
df1f7f1a55
@ -584,6 +584,7 @@ nsresult URLImpl::ParseURL(const nsIURL* aURL, const nsString& aSpec)
|
||||
PR_snprintf(mSpec, plen, "%s://%s%s%s",
|
||||
mProtocol, ((nsnull != mHost) ? mHost : ""), portBuffer,
|
||||
mFile);
|
||||
|
||||
if (mRef) {
|
||||
PL_strcat(mSpec, "#");
|
||||
PL_strcat(mSpec, mRef);
|
||||
@ -622,8 +623,8 @@ nsresult URLImpl::ParseURL(const nsIURL* aURL, const nsString& aSpec)
|
||||
}
|
||||
|
||||
|
||||
#ifdef XP_UNIX
|
||||
// Always leave the top level slash for absolute file paths under UNIX.
|
||||
#if defined(XP_UNIX) || defined (XP_MAC)
|
||||
// Always leave the top level slash for absolute file paths under Mac and UNIX.
|
||||
// The code above sometimes results in stripping all of slashes
|
||||
// off. This only happens when a previously stripped url is asked to be
|
||||
// parsed again. Under Win32 this is not a problem since file urls begin
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user