kintesh / containerise

Firefox extension to automatically open websites in a container
MIT License
408 stars 54 forks source link

Left click new browser window open bug (shift left click works) #163

Open WeaponX1 opened 2 years ago

WeaponX1 commented 2 years ago

Hello,

I have setup firefox 91.0.2 to open links in new windows using the following directives:

I have setup containerise using the following strategy:

Each container has the following preferences: whatsapp (lifetime = forever) - rule .whatsapp.com facebook (lifetime = forever) - rule .facebook.com messenger (lifetime = forever) - rule .messenger.com youtube (lifeteime = forever) - rule .youtube.com reddit.com (lifetime = forever) - rule *.reddit.com

Problem: When I use reddit.com, web.whatsapp, messenger.com and click on an external link, when I left click on it, it tries to open the link into a new browser window but gets closed immediately. If I press shift+left click it works as expected and the link opens in a new window.

When I disable the containerise extension or create a fresh profile with no extensions the problem is gone and the behavior works as expected.

=> I have the suspicious if a friend shares a youtube link through the whatsapp container (web.whatsapp.com), it tries to assign the youtube container from within the whatsapp container and probably the reason why it doesn't work but random links sometimes do works at times , what baffles me is why shift+left always work into a new browser window.

Appreciate if you can look into this bug.

WeaponX1 commented 2 years ago

Hello, Adding the following granular rules helped resolved the issue but problem for website links however for youtube videos the problem persits (but if I enter ctl+shift+i for network debug it automatically starts working again)

Example redirect rules which helpped e.g.
.redd.it , Reddit .reddit.com , Reddit .redditmedia.com , Reddit .redditstatic.com , Reddit

The youtube referrer returns "strict-origin-when-cross-origin" through reddit links and I'm wondering whether this might be the problem?