Link up experiment addon code to extension
This commit is contained in:
committed by
groovecoder
parent
49fac717c0
commit
ff2e41ac8d
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user