Skip to content

unread-anywhere should inherit the container in Firefox #8657

Description

@viluon

Description

unread-anywhere does not preserve the Firefox container of the current tab. Instead, it opens new tabs with no container. Since Firefox containers segregate cookies, this can lead to the newly opened tabs missing the session cookies for the current account or containing cookies for an entirely different account.

Ideally, the newly opened tabs would inherit the container, as if the user (Ctrl-)clicked the notification links manually.

Example URLs

https://github.com/notifications

Activity

  1. fregante commented on Sep 3, 2025

    @fregante
    Member

    https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/tabs/Tab#cookiestoreid

    This can be fixed by looking for sender.tab.cookieStoreId in the onMessage handler and using it in the tabs.create() call

  2. added
    small
    and removed on Sep 3, 2025
  3. fregante commented on Nov 7, 2025

    @fregante
    Member
  4. fregante commented on Nov 24, 2025

    @fregante
    Member

    See context in #8786 (review)

    In short we need an extra permission but the hard part is implementing it without breaking the extension for everyone.

  5. removed
    small
    on Dec 4, 2025
  6. added
    firefox
    on Apr 25, 2026
  7. linked a pull request that will close this issueFirefox: Open new tabs in the same container #9517on May 18, 2026
  8. fregante commented on May 18, 2026

    @fregante
    Member

    @viluon I opened a PR, would you be able to try it out? #9518

  9. viluon commented on Jun 19, 2026

    @viluon
    Author

    Sorry for the delay @fregante, I can confirm it works well as of 26.6.7. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

acceptedbugfirefox

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions