Temporary-containers: How to use with another container extension

Created on 27 May 2019  路  8Comments  路  Source: stoically/temporary-containers

I'm trying to use another container extension https://addons.mozilla.org/en-US/firefox/addon/block-sites-outside-container/ together with this one but when setting a website in that extension to open in multiple permanent containers every time temporary ones take over so it never opens in the permanent ones. Is there any way to make them work together?

incompatible add-on

All 8 comments

Block sites outside container would need to provide an API so other extensions can check whether a specific url is assigned, which would allow TC to ignore those urls - similar to https://github.com/mozilla/multi-account-containers/pull/1095 and https://github.com/kintesh/containerise/pull/18. To see if the maintainer is open to such an API, opening an issue over in her repo asking about it would be helpful.

Also, as a workaround, if you're using Isolation and that causes the conflict, you could add the urls to the Per Domain Isolation and set them to Never accordingly.

I will try ask the maintainer and post back if I get a response.

Hi, I'm the author of the "Block Sites Outside Container" extension. I can add this API, but I need to know what information it needs to return. Do you just need to know whether a rule exists for a given domain, or do you need to know which containers it is set to open in?

Hey @PinkPandaKatie, that's great, thanks! Existence of a rule for an url would be enough information for TC being able to ignore the url.

I just uploaded a new version with the API. Here is how you can use it:

async function rule_exists(domain) {
    try {
        let response = await browser.runtime.sendMessage('[email protected]', {action: "rule_exists", domain: domain});
        return response.rule_exists;
    } catch (err) {
        return false;
    }
}

That was fast, thanks! Published version 0.98 with the compatibility fix.

@PinkPandaKatie @stoically

Thank you both for the fix and for the great extensions!

Was this page helpful?
0 / 5 - 0 ratings