Bug 198870 Yahoo Mail login is broken (javascript reading of document.cookie returns nothing)

patch by mvl@exedo.nl r=dwitte sr=darin


git-svn-id: svn://10.0.0.236/trunk@140262 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
timeless%mozdev.org
2003-03-25 19:05:36 +00:00
parent e4016200a7
commit 2720b14f97

View File

@@ -1271,9 +1271,11 @@ cookie_CheckPrefs(nsIURI *aHostURI,
// otherwise, we test both firstURI and currentURI.
// this needs to be revisited when we get firstURI behaving correctly
// in all cases.
// XXX removed the aFirstURI check, to make cookies from javascript work
// bug 198870
if (gCookiePrefObserver->mCookiesDisabledForMailNews &&
(!aFirstURI ||
cookie_IsFromMailNews(firstURIScheme) ||
aFirstURI &&
(cookie_IsFromMailNews(firstURIScheme) ||
cookie_IsFromMailNews(currentURIScheme))) {
COOKIE_LOGFAILURE(aCookieHeader ? SET_COOKIE : GET_COOKIE, aHostURI, aCookieHeader ? "" : aCookieHeader, "cookies disabled for mailnews");
return nsICookie::STATUS_REJECTED;