Custom ContextID Getting 'firefox-default' as storeId
Closed this issue · 1 comments
makibibo commented
I don't know if this is a bug or the expected behavior in Firefox. My goal is to set a different contextId in each Tab Group.
Setting ContextID
val sessionSettings = GeckoSessionSettings.Builder()
.contextId("localhost")
.build()
But the cookie storeId display as "firefox-default" it should be "firefox-container-localhost"
browser.cookies
.getAll({})
.then((cookies) => {
for (const cookie of cookies) {
console.log("Cookie:", cookie);
}
});
But when I tried to use tab.query and getAllCookieStore, it displayed the correct cookieStoreId.
browser.tabs.query({}, (tabs) => {
console.log("TAB : ",tabs);
});
browser.cookies.getAllCookieStores()
.then((cookieStores) => {
for (const store of cookieStores) {
console.log("Cookie Store",store);
}
});
makibibo commented
ok so the problem was on extension javascript api not in GeckoView