Link up experiment addon code to extension

This commit is contained in:
Jonathan Kingston
2016-12-20 21:03:28 +00:00
committed by groovecoder
parent 49fac717c0
commit ff2e41ac8d
3 changed files with 11 additions and 17 deletions
+7
View File
@@ -2,6 +2,9 @@
const {classes: Cc, interfaces: Ci, results: Cr, utils: Cu} = Components;
Cu.import("resource://gre/modules/Services.jsm");
const {XPCOMUtils} = Cu.import("resource://gre/modules/XPCOMUtils.jsm");
const CONTAINER_STORE = "firefox-container-";
XPCOMUtils.defineLazyModuleGetter(this, "ContextualIdentityService",
"resource://gre/modules/ContextualIdentityService.jsm");
@@ -16,6 +19,10 @@ function convert(identity) {
return result;
}
function getCookieStoreIdForContainer(containerId) {
return CONTAINER_STORE + containerId;
}
class API extends ExtensionAPI {
getAPI(context) {
let self = {