bt icon indicating copy to clipboard operation
bt copied to clipboard

Opened Browser is not being foregrounded

Open tallen1983 opened this issue 2 years ago • 10 comments

When Browser Tamer decides it should open a link in Chrome's ProfileX, instead of that browser window being foregrounded, it just flashes in my task bar in the background. This happens if I have Chrome's ProfileX already open or not.

When not using Browser Tamer the browser is opened and foregrounded, so the expectation is it would work the same.

As it currently stands this makes Browser tamer only slightly easier to use than what I was previously doing (before clicking a particular link making sure I click the proper Chrome icon in my taskbar first to activate that profile).

tallen1983 avatar Aug 31 '23 13:08 tallen1983

Unfortunately this is up to a browser whether to foreground a window or not and has nothing to do with BT. Its tricky to find a correct foreground window if I would to try to implement a workaround as Chrome can have multiple windows for the same profile open and multiple profiles too. I could probably search taskbar for a flashing window and activate that but it needs a bit of experimentation as it's easy to do it very wrong.

aloneguid avatar Sep 02 '23 20:09 aloneguid

Thanks @aloneguid

I find it very odd that chrome behaves differently if you ask it to open a link compared to if windows does directly. I get it, it's a slightly different code path for them (chrome open this link and it decides what the last active window was vs chrome open this link inside this profile). But I'm wondering if there is some other magic that windows does that causes the window to come to the forefront (different API to launch it, etc).

tallen1983 avatar Sep 05 '23 14:09 tallen1983

I think this is resolved in 3.5.2.

aloneguid avatar Sep 07 '23 15:09 aloneguid

No, it sadly is not :( I made sure I have 3.5.2 but things still open in the background.

Firefox and Edge behave differently, although I did not test them with multiple profiles.

mahoromax avatar Sep 09 '23 02:09 mahoromax

3.5.2 fixed this issue for me

paz avatar Sep 10 '23 04:09 paz

Not working for me either. Links are opened in background.

PsychodelEKS avatar Oct 17 '23 13:10 PsychodelEKS

I will try a few things, it could be related to the fact that BT is not in foreground when links are opened, not quite sure.

aloneguid avatar Jan 26 '24 15:01 aloneguid

I haven't actively exp'd this for a while, maybe I got used to it. I will try to observe and add in an edit.

Edit: Not happening to me anymore tbh... imo this has been fixed, maybe not with a BT update but with some windows/framework update maybe?

mahoromax avatar Jan 26 '24 22:01 mahoromax

Please try 3.7.1, this has worked for me. I think the issue is BT is disposing process handles too early, and that's only reproducible in the release mode.

aloneguid avatar Feb 01 '24 11:02 aloneguid

This is still happening in 3.7.3. It seems related to BT being in the foreground or minimized in the icon tray. That is, opening it up, helps links go in the foreground, while closing it up, sends links to the background by default. I'm using process rules and Firefox Developer Edition.

s-a-m avatar Feb 24 '24 12:02 s-a-m

This should not be an issue anymore since v4.

aloneguid avatar Jul 15 '24 11:07 aloneguid