bug 155038, cookies are sent from sidebar, r=bbaetz, sr=alecf

git-svn-id: svn://10.0.0.236/trunk@124925 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
morse%netscape.com 2002-07-10 01:58:49 +00:00
parent 48ac34d5f9
commit 72fb529398

View File

@ -884,6 +884,9 @@ cookie_isForeign (char * curURL, char * firstURL, nsIIOService* ioService) {
if (!firstURL) { if (!firstURL) {
return PR_FALSE; return PR_FALSE;
} }
if (!PL_strncasecmp(firstURL, "chrome:", 7)) {
return PR_FALSE; // chrome URLs are never foreign (otherwise sidebar cookies won't work)
}
nsCAutoString curHost, firstHost; nsCAutoString curHost, firstHost;
nsresult rv; nsresult rv;
NS_ASSERTION(ioService, "IOService not available"); NS_ASSERTION(ioService, "IOService not available");