Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Opened Browser is not being foregrounded #39

Open
tallen1983 opened this issue Aug 31, 2023 · 10 comments
Open

Opened Browser is not being foregrounded #39

tallen1983 opened this issue Aug 31, 2023 · 10 comments
Labels

Comments

@tallen1983
Copy link

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).

@aloneguid
Copy link
Owner

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.

@tallen1983
Copy link
Author

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).

@aloneguid
Copy link
Owner

I think this is resolved in 3.5.2.

@aloneguid aloneguid added the core label Sep 7, 2023
@aloneguid aloneguid added this to the 3.5.2 milestone Sep 7, 2023
@mahoromax
Copy link

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.

@paz
Copy link

paz commented Sep 10, 2023

3.5.2 fixed this issue for me

@PsychodelEKS
Copy link

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

@aloneguid aloneguid modified the milestones: 3.5.2, 3.7.0 Jan 26, 2024
@aloneguid
Copy link
Owner

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.

@mahoromax
Copy link

mahoromax commented Jan 26, 2024

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?

@aloneguid
Copy link
Owner

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 aloneguid removed this from the 3.7.0 milestone Feb 2, 2024
@s-a-m
Copy link

s-a-m commented Feb 24, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants