mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-02 11:25:46 +01:00
Don't purge permissions on browser:purge-session-history. Closes issue #52.
This commit is contained in:
@@ -65,6 +65,8 @@ const Sanitizer = Module("sanitizer", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakR
|
|||||||
this.addItem("sitesettings", {
|
this.addItem("sitesettings", {
|
||||||
description: "Site preferences",
|
description: "Site preferences",
|
||||||
action: function (range, host) {
|
action: function (range, host) {
|
||||||
|
if (range.isSession)
|
||||||
|
return;
|
||||||
if (host) {
|
if (host) {
|
||||||
for (let p in Sanitizer.iterPermissions(host)) {
|
for (let p in Sanitizer.iterPermissions(host)) {
|
||||||
services.get("permissions").remove(util.createURI(p.host), p.type);
|
services.get("permissions").remove(util.createURI(p.host), p.type);
|
||||||
|
|||||||
Reference in New Issue
Block a user