198829 patch by mvl@exedo.nl r=dwitte@stanford.edu sr=dmose Blocking cookies does not remain persistent
git-svn-id: svn://10.0.0.236/trunk@140117 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -111,7 +111,8 @@ nsCookiePermission::TestPermission(nsIURI *aURI,
|
||||
|
||||
if (rememberDecision && mPermissionManager) {
|
||||
// Remember this decision
|
||||
mPermissionManager->Add(aURI, nsIPermissionManager::COOKIE_TYPE, *aPermission);
|
||||
mPermissionManager->Add(aURI, nsIPermissionManager::COOKIE_TYPE,
|
||||
*aPermission ? nsIPermissionManager::ALLOW_ACTION : nsIPermissionManager::DENY_ACTION);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
||||
@@ -581,8 +581,8 @@ nsPermissionManager::Write()
|
||||
*/
|
||||
static const char kTab[] = "\t";
|
||||
static const char kNew[] = "\n";
|
||||
static const char kTrue[] = "F";
|
||||
static const char kFalse[] = "T";
|
||||
static const char kTrue[] = "T";
|
||||
static const char kFalse[] = "F";
|
||||
|
||||
PRInt32 hostCount = mPermissionList.Count();
|
||||
for (PRInt32 i = 0; i < hostCount; ++i) {
|
||||
|
||||
@@ -105,7 +105,7 @@ function onload()
|
||||
|
||||
var messageText;
|
||||
if (cookie)
|
||||
messageText = cookieBundle.getFormattedString(messageFormat,[cookie.host,cookiesFromHost]);
|
||||
messageText = cookieBundle.getFormattedString(messageFormat,[hostname, cookiesFromHost]);
|
||||
else
|
||||
// No cookies means something went wrong. Bring up the dialog anyway
|
||||
// to not make the mess worse.
|
||||
@@ -118,7 +118,7 @@ function onload()
|
||||
var headerNode = document.getElementById("dialog-header");
|
||||
headerNode.setAttribute("value",messageParagraphs[0]);
|
||||
|
||||
// use childnodes here, the tekst can wrap
|
||||
// use childnodes here, the text can wrap
|
||||
for (var i = 1; i < messageParagraphs.length; i++) {
|
||||
var descriptionNode = document.createElement("description");
|
||||
text = document.createTextNode(messageParagraphs[i]);
|
||||
|
||||
@@ -105,7 +105,7 @@ function onload()
|
||||
|
||||
var messageText;
|
||||
if (cookie)
|
||||
messageText = cookieBundle.getFormattedString(messageFormat,[cookie.host,cookiesFromHost]);
|
||||
messageText = cookieBundle.getFormattedString(messageFormat,[hostname, cookiesFromHost]);
|
||||
else
|
||||
// No cookies means something went wrong. Bring up the dialog anyway
|
||||
// to not make the mess worse.
|
||||
@@ -118,7 +118,7 @@ function onload()
|
||||
var headerNode = document.getElementById("dialog-header");
|
||||
headerNode.setAttribute("value",messageParagraphs[0]);
|
||||
|
||||
// use childnodes here, the tekst can wrap
|
||||
// use childnodes here, the text can wrap
|
||||
for (var i = 1; i < messageParagraphs.length; i++) {
|
||||
var descriptionNode = document.createElement("description");
|
||||
text = document.createTextNode(messageParagraphs[i]);
|
||||
|
||||
Reference in New Issue
Block a user