mirror of
https://github.com/mdn/webextensions-examples.git
synced 2026-04-17 14:59:12 +02:00
adding getAllCookieStores example
This commit is contained in:
@@ -23,4 +23,12 @@ function cookieUpdate(tabId, changeInfo, tab) {
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
/* Retrieve information on the browser's cookies stores */
|
||||
|
||||
browser.cookies.getAllCookieStores(function(cookieStores) {
|
||||
for(var i = 0; i < cookieStores.length; i++) {
|
||||
console.log('Cookie store: ' + cookieStores[i].id + '\n Tab IDs: ' + cookieStores[i].tabIds);
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user