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

Browser selector appearing only briefly and then disappearing #699

Open
3 tasks done
georgms opened this issue Nov 10, 2024 · 14 comments
Open
3 tasks done

Browser selector appearing only briefly and then disappearing #699

georgms opened this issue Nov 10, 2024 · 14 comments
Labels

Comments

@georgms
Copy link

georgms commented Nov 10, 2024

Is there an existing issue for this?

Current Behaviour

  • The Browserosaurus browser prompter pops up for a fraction of a second and then disappears again, too quick for allowing me to pick the browser of my choice.
Bildschirmaufnahme.2024-11-10.um.23.43.13.mov

Expected Behaviour

  • The Browserosaurus browser prompter pops up, allowing me to pick the browser of my choice.

Steps To Reproduce

  1. Click on a link.

Browserosaurus version

20.9.1

macOS version

15.1

CPU Architecture

ARM

Anything else?

The behavior is quite inconsistent:

  • Sometimes, when restarting B the first click on a link works fine. The issue only starts with the second click.
  • When I recorded the video for this bug report one click worked, but others didn't.
    If I have to guess wildly I would say it's related to window focus somehow.

It worked fine with MacOS 15.0 but I think the issue did not immediately start showing with MacOS 15.1 but only a few days later.

I've removed B, including ~/Library/Application Support/Browserosaurus, multiple times with system restarts in between but that didn't fix the issue.

Happy to help with debugging if I could receive some instructions.

@georgms georgms added the bug label Nov 10, 2024
@dreddko
Copy link

dreddko commented Nov 11, 2024

I've got exactly the same issue on macOs Sonoma 14.7.1. It's only happening when opening links from Slack.

@nmolham-godaddy
Copy link

I am running MacOS 13.7.1 (22H221) and I am experiencing this issue but only on slack. All other apps I am using on the regular basis are working find as expected! I assume with slack's latest update it triggers something that forces a re-focus in or click like event which causes the prompter pops up disappears right away! 🤔

@armandocin
Copy link

armandocin commented Nov 13, 2024

This also happens to me on MacOS Sequoia 15.0.1 (24A348). It occurs mainly (I don't know if only) on the Slack app. For example, it never happens on the WhatsApp desktop app.

UPDATE: I've noticed that on Slack, it happens almost every time if it's at full screen, while it happens less often (but still happens) if the app is on a reduced window.

@georgms
Copy link
Author

georgms commented Nov 13, 2024

The issue happens with Slack and Signal, but not with Telegram or Warp (terminal).

@NickVulkers
Copy link

I have the same problem within Slack; it would be great to hear if this can be fixed in Browserosaurus or if we should wait for Slack to change something.

@will-stone
Copy link
Owner

It sounds like @nmolham-godaddy has identified the issue as Slack. Or maybe it's macOS doing something odd. If anyone does identify it as an issue with B then please submit a PR and I'll review it ASAP. Thanks everyone 🙂

@jaimeagudo
Copy link

jaimeagudo commented Nov 15, 2024

Same on Mac OS sequioa 15.1 (24B83), I had the impression it always happens after the OS is waking up after sleeping

@jasonumiker
Copy link

jasonumiker commented Nov 18, 2024

I am having the same issues mainly with Slack - but also not every time. I also found that if I quit Browsersaurus from the menu bar and try again it always works on the first Slack link I click that restarts it. So what my workflow has turned into is click and if it doesn't work close Browsersaurus and click again and it does. I am doing this a few times a day...

@deepres
Copy link

deepres commented Nov 19, 2024

The same here (macOS 15.1 24B83 / latest Slack)

@nmolham-godaddy
Copy link

@will-stone unfortunately I am not super familiar with TS nor desktop app development 😅 hopefully someone with the right skills is able to debug this issue.

Another thing I noticed today is when I terminate/quite the B instance, then click on any link in Slack, the browser prompter opens without disappearing normally, but on the 2nd click on any link within slack, the disappearing behaviour returns.

That behaviour suggests that if there a delay between link click and browser prompter appearance the issue could be solved solved 🤔

Is it possible to add a popup delay setting to the app? maybe in milliseconds

@will-stone
Copy link
Owner

will-stone commented Nov 21, 2024

Unfortunately it doesn't work like that. You are setting B as your default browser, all that is happening is you are sending the link to the app like any other browser. Try setting one of your browsers as default, have it running, then click the links in Slack. Does Slack re-steal focus?

@will-stone
Copy link
Owner

will-stone commented Nov 21, 2024

For those experiencing this issue, could you please try using Finicky too? Set Finicky as your default browser so it handles all links, but then get it to forward, by default, links to B:

module.exports = {
  defaultBrowser: "Browserosaurus",
}

This is what I use, as I have a rule set up for MS Teams:

module.exports = {
  defaultBrowser: "Browserosaurus",
  handlers: [
    /**
     * Microsoft Teams
     */
    {
      match: finicky.matchHostnames(["teams.microsoft.com"]),
      browser: "Microsoft Teams",
      url: ({ url }) => ({ ...url, protocol: "msteams" }),
    },
  ],
}

@atimmer
Copy link

atimmer commented Nov 22, 2024

Set Finicky as your default browser so it handles all links, but then get it to forward, by default, links to B:

When I do this it indeed does work and I don't have this bug. Finicky is kinda cool, so I might keep this setup.

@armandocin
Copy link

For those experiencing this issue, could you please try using Finicky too? Set Finicky as your default browser so it handles all links, but then get it to forward, by default, links to B:

I can confirm that with Finicky it works perfectly. And honestly using these 2 together is amazing!

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

10 participants