Focus existing window has delay
Description
Hi there, thank you for the amazing project. I'm using it everyday and couldn't live without it.
I'm on macOS. When enabling "focus existing window" as the launch type, there is a delay before it focuses the PWA. I can see the app icon pop up shortly, then vanish and focus the app. This delay is quite irritating imo and I don't know if it's intended. I also felt like I didn't have this issue before; I was able to search in Sol (app launcher similar to Alfred and Spotlight) and if the app was already opened it would just focus it. Then a few days ago it started to open another instance of the app. I then read the docs and found the setting mentioned above which I changed (but I didn't have to do this before I think?) and it works but the delay is there which is weird.
Here is a showcase of what I mean. I'm toggling a layout with Rectangle in this case for demonstration purposes; as you can see, everytime I press alt-j, JIRA pops up a new icon in the dock for a split second and then focuses the existing one. It doesn't matter if I do it with Rectangle, any application that focuses a PWA has the same problem.
https://github.com/user-attachments/assets/089a3de7-a751-40b5-bf07-38c1b3f9c04f
Steps to Reproduce
Focus an app via app launcher, flashspace (macOS workspace solution), Rectangle.
Additional Information
I did change the runtime recently from Glide to the normal Firefox runtime. I reinstalled, patched everything as recommended afaik. I also feel like it happened after I did this.
Affected Websites
All PWA's.
Environment
- Operating system: macOS
- System architecture: m1
- PWAsForFirefox extension version: latest
- PWAsForFirefox native version: latest
- PWAsForFirefox runtime version: latest
- Firefox version: 146 (Dev)