Summary #
browser.cookies.getwithout astoreIdreads from the background context's default cookie store, so amargin_sessioncookie set inside a Firefox container tab was invisible to the extension and the popup stayed on the Sign In screen.getSessionCookie()now tries the active tab'scookieStoreIdfirst, then the default store, then iteratescookies.getAllCookieStores()for the first match.
Test plan #
AI use disclosure #
AI was used to help diagnose the issue and propose the fix. The code has been manually reviewed and tested (there were no automated tests, none have been added).