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

Trouble with both regular Firefox and Firefox Developer Edition installed #1

Open
Erlendms opened this issue Apr 21, 2024 · 8 comments

Comments

@Erlendms
Copy link

Hi!
I downloaded and is trying this app. Looks cool!
However, I have both the regular and Developer Edition of Firefox installed, and mozeidon hooked itself to the DevEd. Here's what I did:

  1. I installed everything per the guide.
  2. I then installed the Firefox add-on (in the regular edition)
  3. I then ran the Raycast extension - and it works, but only got the tabs from DevEd!
  4. I checked that versions's add-ons, and it had installed the add-on automatically.
  5. I deleted the add-on - but now mozeidon straight up don't work (neither in the terminal or Raycast).

Is there a way for me to point it at the correct edition? The .json is in Application Support/Mozilla, so doesn't specify version... Any advice?

Thanks! And thanks again for a cool project. :) Firefox is terrible to script out of the box, so I think this can have a great future!

-Erlend

@egovelox
Copy link
Owner

egovelox commented Apr 22, 2024

Hi !

Thank you for your feedback !

Concerning your issue,

currently I have no idea what is the behavior of a native-messaging add-on like Mozeidon when it's running on two different Firefox instances ( Firefox and Firefox Developer Edition aka DE).

I don't expect that Mozeidon (CLI or Raycast) could work simultaneously on both installations.
But I will investigate this one day, it's interesting.

For now, I installed Firefox DE, trying to reproduce your issue.
Now I have both Firefox and Firefox DE installed,
but Mozeidon addon only installed on Firefox.
And Mozeidon is workin OK, got the tabs from Firefox (not from Firefox DE).

You wrote that

I checked that versions's (Firefox DE) add-ons, and it had installed the add-on automatically.

But on my device, it's not the case :

  • I uninstalled Mozeidon addon on Firefox, and reinstalled it
  • I checked Firefox DE addons, and it had NOT installed the add-on automatically.

Note that, once logged in my firefox account,
reading about:preferences?entrypoint=fxa_app_menu#sync
I can see that I chose to synchronize bookmarks, history etc,
but NOT to synchronize add-ons.

Maybe you on the contrary, chose to synchronize add-ons ?

I guess that a way to activate Mozeidon add-on only on Firefox (and not simultaneously in Firefox DE)
could be to disable, in your firefox account, the synchronization for add-ons ?
Or maybe you could only disable ( not uninstall ) Mozeidon add-on on Firefox DE, but keep it enabled on Firefox ?

Btw, here is a similar issue I found on Mozilla support forums.

I hope this could help !

@Erlendms
Copy link
Author

Thanks for your quick reply!
I don't have time to look at it today, but I'll do some more research and get back to you. =)

@Erlendms
Copy link
Author

Got it working now!

I'm not sure I really learned anything new though... 😅 I just did a complete uninstall of both DevEd and Mozeidon, and then reinstalled Mozeidon. I checked that it was working (👍🏻), and then installed DevEd again. Then Mozeidon was still working. I also turned off extension sync, and don't have Mozeidon on DevEd.

I'm a big noob here, so I can't really help with more than saying that it seems like the install latches onto a version when installing. I don't know if there's room for an option somewhere to make sure where to point it? And what about browsers like Floorp?

I guess knowing about different instances could be a useful expansion for the future.

@KingMob
Copy link

KingMob commented Jul 4, 2024

I have a related problem. I only use FF Dev edition, and while Mozeidon can read the tabs just fine, if I try to get it to switch to a tab, it attempts to open that tab in regular FF. This is with the Raycast extension, btw.

@KingMob
Copy link

KingMob commented Jul 4, 2024

Hmm, well if I change the open command in the Raycast settings to open -a "Firefox Developer Edition", it gets the right version of FF, but it seems like it can't switch to a tab that's not in the foremost window.

@egovelox
Copy link
Owner

egovelox commented Jul 6, 2024

Hi,
Mozeidon without Raycast currently works on Firefox only
( I may one day add settings to the Mozeidon CLI, maybe an environment variable or so )

Mozeidon with Raycast can work on Firefox OR on Firefox DE,
since you can set the open command in the Raycast settings.
But Mozeidon cannot work on both simultaneously.

If you experience such confusion,
the reason is most probably that you have add-ons synchronization activated on your profile.
( Firefox will install and activate Mozeidon add-on on both Firefox and Firefox DE, which is not supported simultaneously )

So please first ensure that you disable add-ons synchronization,
or be sure that the Mozeidon add-on is active only on Firefox OR on Firefox DE.
(if you want Mozeidon add-on installed on both, you should at least deactivate it on one )

Hope it can help ;)

@egovelox
Copy link
Owner

egovelox commented Jul 6, 2024

As for multiple windows (inside Firefox OR inside Firefox DE, but not both),
I can confirm you that there is a major problem :

The tab you have selected in Mozeidon will correctly be set as active in the right Firefox window,
( Mozeidon itself is able to read tabs distributed in multiple windows, since tabs are internally referenced by window-id AND tab-id )
but unfortunately macOS will always redirect to the foremost window.
That's a severe limitation for Mozeidon tab-switching, I agree.

To overcome this limitation, Mozeidon would need to know, before switching to Firefox :

  • which one among many Firefox windows is currently the foremost window in macOS
  • which macOS window the tab you selected in Mozeidon belongs to

Here Firefox ( web-browsing ) and macOS ( desktop windows ) are independent systems :
the window-ids inside firefox ( which Mozeidon is aware of ) are not the same as the indices of firefox windows inside macOS.

At the end of the day, I fear we cannot overcome this limitation 😔
If using Mozeidon for tab-switching, better stick to one unique Firefox window 🙏

@KingMob
Copy link

KingMob commented Jul 7, 2024

If using Mozeidon for tab-switching, better stick to one unique Firefox window

Thanks for your suggestions. Unfortunately, I have too many tabs for that, and I use windows to group them by theme. Oh well.

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

No branches or pull requests

3 participants