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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user