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:
parent
48ac34d5f9
commit
72fb529398
@ -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");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user