Skip to content

Implement firefox container tab support#263

Open
whi-tw wants to merge 1 commit into
johnste:mainfrom
whi-tw:firefox_container_support
Open

Implement firefox container tab support#263
whi-tw wants to merge 1 commit into
johnste:mainfrom
whi-tw:firefox_container_support

Conversation

@whi-tw
Copy link
Copy Markdown

@whi-tw whi-tw commented Apr 13, 2022

Firefox can have container tabs enabled, and an extension exists that will allow routing external URLs with a specific format into these containers Open External links in a container.

This change implements logic so if configured in a handler, the outgoing URL is converted into this format when the browser is called.

This has an improvement over using a rewrite rule, in that the config can be kept DRY, and container selection logic is left to the handler. An example of such a rewrite rule implementation is here: #211 (comment).

Example configuration:

handlers: [
  {
    // Some work site
    match: "https://some-site.com/*",
    browser: {
      name: "Firefox",
      container: "Work",
    },
  },
],

Firefox can have container tabs enabled, and an extension exists
that will allow routing urls with a specific format into these
containers [Open External links in a container](https://addons.mozilla.org/en-GB/firefox/addon/open-url-in-container/).

If configured in a `handler`, rewrite the outgoing URL into this format
and open that.

This has an improvement over using a rewrite rule, in that the config
can be kept DRY, and container selection logic is left to the handler.

Example configuration:

```js
handlers: [
  {
    // Some work site
    match: "https://some-site.com/*",
    browser: {
      name: "Firefox",
      container: "Work",
    },
  },
],
```
@whi-tw whi-tw marked this pull request as ready for review April 13, 2022 12:54
@devhe4d
Copy link
Copy Markdown

devhe4d commented Apr 7, 2026

I really need this one, no way we can have it/

@bric3
Copy link
Copy Markdown
Contributor

bric3 commented May 15, 2026

Disclaimer: I'm not a maintainer.

Firefox's Containers are interesting, but this feature is tied to an extension, that may or may not survive (as of today, the linked extension code is 6 years old), so I'm balanced. I do agree this is useful, but this looks wrong to rely on a non browser feature.

I found there is a maintained fork https://github.com/kud/webextension-container-scheme


Another avenue that might be worth exploring is the URL rewriter, which do not require changes in Finicky, just in your config . That's what I do for my slack urls.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants