~vono22/cookiekeeper/1.9.0

« back to all changes in this revision

Viewing changes to cookiekeeper/chrome/modules/cookiekeeper.jsm

  • Committer: Yvon Tanguy
  • Date: 2016-03-30 21:19:43 UTC
  • Revision ID: vono22@yahoo.fr-20160330211943-ws2jsk0uv0m1bbsp
- Fix "block future cookies" feature.
- Use new permission manager in ck.dom_storage.js
- Remove HSTS information using "principal" API if possible.

Show diffs side-by-side

added added

removed removed

Lines of Context:
573
573
          }
574
574
        }
575
575
        for (let i=0; i<permsList.length; i++) {
576
 
          Services.perms.remove(permsList[i].host, permsList[i].type);
 
576
          let perm = permsList[i];
 
577
          if (nextPermission.principal) {
 
578
            Services.perms.removeFromPrincipal(perm.principal, perm.type);
 
579
          } else {
 
580
            Services.perms.remove(perm.host, perm.type);
 
581
          }
577
582
        }
578
583
      } // catch()
579
584
    } // clearHSTS