зеркало из https://github.com/mozilla/gecko-dev.git
Raptor only. Display images on Mac.
This commit is contained in:
Родитель
d0eac5090e
Коммит
0b7fddb776
|
@ -584,6 +584,7 @@ nsresult URLImpl::ParseURL(const nsIURL* aURL, const nsString& aSpec)
|
||||||
PR_snprintf(mSpec, plen, "%s://%s%s%s",
|
PR_snprintf(mSpec, plen, "%s://%s%s%s",
|
||||||
mProtocol, ((nsnull != mHost) ? mHost : ""), portBuffer,
|
mProtocol, ((nsnull != mHost) ? mHost : ""), portBuffer,
|
||||||
mFile);
|
mFile);
|
||||||
|
|
||||||
if (mRef) {
|
if (mRef) {
|
||||||
PL_strcat(mSpec, "#");
|
PL_strcat(mSpec, "#");
|
||||||
PL_strcat(mSpec, mRef);
|
PL_strcat(mSpec, mRef);
|
||||||
|
@ -622,8 +623,8 @@ nsresult URLImpl::ParseURL(const nsIURL* aURL, const nsString& aSpec)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#ifdef XP_UNIX
|
#if defined(XP_UNIX) || defined (XP_MAC)
|
||||||
// Always leave the top level slash for absolute file paths under UNIX.
|
// Always leave the top level slash for absolute file paths under Mac and UNIX.
|
||||||
// The code above sometimes results in stripping all of slashes
|
// The code above sometimes results in stripping all of slashes
|
||||||
// off. This only happens when a previously stripped url is asked to be
|
// 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
|
// parsed again. Under Win32 this is not a problem since file urls begin
|
||||||
|
|
Загрузка…
Ссылка в новой задаче