Skip to content
Permalink
Browse files

Add "showDefaultPolicy" option, version 0.2.0pre9 - 2012-09-03

  • Loading branch information...
Infocatcher
Infocatcher committed Sep 3, 2012
1 parent f68851f commit da175cb957a186414b9d063a749ee5b91cdf127e
@@ -4,7 +4,7 @@
// (code for "initialization" section)

// (c) Infocatcher 2010-2012
// version 0.2.0pre8 - 2012-08-17
// version 0.2.0pre9 - 2012-09-03

var options = {
removeUnprotectedCookiesInterval: 30*60*1000, // -1 to disable
@@ -14,8 +14,9 @@ var options = {
openPermissions: false,
showCookies: true,
removeCurrentSiteCookies: true,
preserveCurrentSiteCookies: true
preserveCurrentSitesCookies: true
},
showDefaultPolicy: true,
prefillMode: 1, // 0 - move caret to start, 1 - select all, 2 - move caret to end
};

@@ -30,6 +31,10 @@ function _localize(sid) {
unknownTooltiptext: "Cookies: ???",
errorTooltiptext: "Cookies: Error!",

defaultDenyTooltiptext: "Cookies: Deny (Default)",
defaultAllowSessionTooltiptext: "Cookies: Allow Session (Default)",
defaultAllowTooltiptext: "Cookies: Allow (Default)",

defaultLabel: "Default",
defaultAccesskey: "f",
denyLabel: "Deny",
@@ -65,6 +70,10 @@ function _localize(sid) {
unknownTooltiptext: "Cookies: ???",
errorTooltiptext: "Cookies: Ошибка!",

defaultDenyTooltiptext: "Cookies: Блокировать (по умолчанию)",
defaultAllowSessionTooltiptext: "Cookies: Разрешить на сессию (по умолчанию)",
defaultAllowTooltiptext: "Cookies: Разрешить (по умолчанию)",

defaultLabel: "По умолчанию",
defaultAccesskey: "у",
denyLabel: "Блокировать",
@@ -284,6 +293,38 @@ this.permissions = {
};
this.oSvc.addObserver(this.permissionsObserver, "perm-changed", false);

if(this.options.showDefaultPolicy) {
var po = this.prefsObserver = {
context: this,
get prefs() {
delete this.prefs;
return this.prefs = Components.classes["@mozilla.org/preferences-service;1"]
.getService(Components.interfaces.nsIPrefService)
.QueryInterface(Components.interfaces.nsIPrefBranch2 || Components.interfaces.nsIPrefBranch)
.getBranch("network.cookie.");
},
getIntPref: function(name) {
try { return this.prefs.getIntPref(name); }
catch(e) {}
return 0;
},
observe: function(subject, topic, data) {
if(topic != "nsPref:changed")
return;
if(data != "cookieBehavior" && data != "lifetimePolicy")
return;
this.context.prefs[data] = this.getIntPref(data);
this.context.updButtonState();
}
};
this.prefs = {
"cookieBehavior": po.getIntPref("cookieBehavior"),
"lifetimePolicy": po.getIntPref("lifetimePolicy"),
__proto__: null
};
po.prefs.addObserver("", po, false);
}

this.initCleanupTimer();
this.updButtonState();
},
@@ -294,7 +335,9 @@ this.permissions = {

gBrowser.removeProgressListener(this.progressListener);
this.oSvc.removeObserver(this.permissionsObserver, "perm-changed");
this.progressListener = this.permissionsObserver = null;
if(this.options.showDefaultPolicy)
this.prefsObserver.prefs.removeObserver("", this.prefsObserver);
this.progressListener = this.permissionsObserver = this.prefsObserver = null;
},
initCleanupTimer: function() {
//if(this.options.removeUnprotectedCookiesInterval > 0) {
@@ -389,7 +432,7 @@ this.permissions = {
}
if(!host)
continue;
if(this.options.useBaseDomain.preserveCurrentSiteCookies) try {
if(this.options.useBaseDomain.preserveCurrentSitesCookies) try {
host = this.tld.getBaseDomainFromHost(host);
}
catch(e) {
@@ -616,6 +659,15 @@ this.permissions = {
? this.pm.testPermission(this.getURI(host), this.permissionType)
: this.PERMISSIONS_NOT_SUPPORTED;
},
get defaultPermission() {
// http://kb.mozillazine.org/Network.cookie.cookieBehavior
// http://kb.mozillazine.org/Network.cookie.lifetimePolicy
if(this.prefs.cookieBehavior == 2)
return this.cp.ACCESS_DENY;
if(this.prefs.lifetimePolicy == 2)
return this.cp.ACCESS_SESSION;
return this.cp.ACCESS_ALLOW;
},
showCookies: function() {
var host = this.options.useBaseDomain.showCookies
? this.currentBaseDomain
@@ -727,12 +779,19 @@ this.permissions = {
var cp = this.cp;
var key;
switch(permission) {
case this.PERMISSIONS_NOT_SUPPORTED: key = "notAvailable"; break;
case this.PERMISSIONS_ERROR: key = "error"; break;
case cp.ACCESS_DEFAULT: key = "default"; break;
case cp.ACCESS_ALLOW: key = "allow"; break;
case cp.ACCESS_DENY: key = "deny"; break;
case cp.ACCESS_SESSION: key = "allowSession"; break;
case cp.ACCESS_DEFAULT:
key = "default";
if(this.options.showDefaultPolicy) switch(this.defaultPermission) {
case cp.ACCESS_ALLOW: key = "defaultAllow"; break;
case cp.ACCESS_DENY: key = "defaultDeny"; break;
case cp.ACCESS_SESSION: key = "defaultAllowSession";
}
break;
case cp.ACCESS_ALLOW: key = "allow"; break;
case cp.ACCESS_DENY: key = "deny"; break;
case cp.ACCESS_SESSION: key = "allowSession"; break;
case this.PERMISSIONS_NOT_SUPPORTED: key = "notAvailable"; break;
case this.PERMISSIONS_ERROR: key = "error"; break;
default: key = "unknown";
}
var btn = this.button;
@@ -760,16 +819,19 @@ var cssStr = '\
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");\n\
@-moz-document url("%windowURL%") {\n\
%button% {\n\
list-style-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAAAQCAYAAADpunr5AAAI1UlEQVR4Xu1Xe1CU1xX/feuKLCvq8hBBfLDKSyCpopjlERFwdCKaaTshJRmrTpxgLWmNMqatJpqOjWCs/lHTaew0pG2qyWQax/GByEIwYHyxqAEEtqi85CGsLMuyr2+Xr/fcGTaD8UNt/+U3c+Y7nHN+3L3nnu+3dwXIoGKzUiUIWApgMYAQcKAXwA1JQk1GsdsOWUzwN2/ezPiCDF+qKS4uludf2KjU6DdNLqg7uOJ03/n3Ooau/MlJRj7FKEc1E/zHY+PGjZpNmzYVFBUVnT579mxHdXW1k4x8ilGOaoigwCM4t2GSyiMhb15azmsR6T/L1syNDFcHBvvcbDL6kE8xylEN1U7wx2LDhg0qNuF5KSkpr6WlpWWHM2g0Gp/bt2/7kE8xylEN1f7gAMQRJGsWJGYERS1b7Ovvj8LCQ7ANDCBpyRK4XS5QjHJUQ7UT/LHweDzJWq02IzIycrFarQabeAwODiIxMRGiKIJilKMaqlU+qnlON95WS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5HDxoOHv6xqd0ScDImItbF6gCRvs0IWIuf1AOHyVbiJz3fjwnfGKxj6jY9gs1oVaXM7HAjyA5CuB3hYXZZGRGQ4HklPw7Skqcau8UKVKWFS43HNGQ+tB+y8G68MEdHXa0DijAS0ahuQlb3EuOaNXVVv/fF449Knijw/1ANuSPFepQKEEDw5OQaiTIaWyrNGfZzw6x/qAc/9UA+4EeQHEKgHVN9sqOlyORywW638JibXudDW1gq7zQat9ppZ29FmGFYrdadojUC3XbdzLL7jaiMM+lsYGR6GKnKS2e4hBtX0TJ3oBwaNgXrAdSm+9oYBNpMJJhpaTbm5PmT4uOf/6wHrwpTKJOvICKsHXEdwa+x6wJot0wY37Z1Xv/Yfqz+k9YDi++H/UbrB/tHbvxr8Yt9v67Ud/R/qhkkxrQcU03pAMa0HLB+Lr96+0q4piB28+NTUetvLSz6k9YBiWg8opvWAYloPoPxPLwEPrLHrAR9lTswQQwQPrQfsvF/eEZHaZIpeMOQPUSSCC8w2rtN6QOO98AlWNKWPYCjUj1H8vHZQ/qfX/wGEP/wXYXxlVAAAAABJRU5ErkJggg==") !important;\n\
-moz-image-region: rect(0, 16px, 16px, 0) !important;\n\
}\n\
%button%[cb_cookies="default"] { -moz-image-region: rect(0, 16px, 16px, 0) !important; }\n\
%button%[cb_cookies="allow"] { -moz-image-region: rect(0, 32px, 16px, 16px) !important; }\n\
%button%[cb_cookies="allowSession"] { -moz-image-region: rect(0, 48px, 16px, 32px) !important; }\n\
%button%[cb_cookies="deny"] { -moz-image-region: rect(0, 64px, 16px, 48px) !important; }\n\
%button%[cb_cookies="default"] { -moz-image-region: rect(0, 16px, 16px, 0) !important; }\n\
%button%[cb_cookies="allow"] { -moz-image-region: rect(0, 32px, 16px, 16px) !important; }\n\
%button%[cb_cookies="allowSession"] { -moz-image-region: rect(0, 48px, 16px, 32px) !important; }\n\
%button%[cb_cookies="deny"] { -moz-image-region: rect(0, 64px, 16px, 48px) !important; }\n\
%button%[cb_cookies="unknown"],\n\
%button%[cb_cookies="error"] { -moz-image-region: rect(0, 80px, 16px, 64px) !important; }\n\
%button%[cb_cookies="notAvailable"] { -moz-image-region: rect(0, 96px, 16px, 80px) !important; }\n\
%button%[cb_cookies="error"] { -moz-image-region: rect(0, 80px, 16px, 64px) !important; }\n\
%button%[cb_cookies="notAvailable"] { -moz-image-region: rect(0, 96px, 16px, 80px) !important; }\n\
%button%[cb_cookies="defaultAllow"] { -moz-image-region: rect(16px, 32px, 32px, 16px) !important; }\n\
%button%[cb_cookies="defaultAllowSession"] { -moz-image-region: rect(16px, 48px, 32px, 32px) !important; }\n\
%button%[cb_cookies="defaultDeny"] { -moz-image-region: rect(16px, 64px, 32px, 48px) !important; }\n\
}'
.replace(/%windowURL%/g, window.location.href)
.replace(/%button%/g, "#" + this.id);
Binary file not shown.
Binary file not shown.

0 comments on commit da175cb

Please sign in to comment.
You can’t perform that action at this time.