Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

Mozilla Support में खोजें

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Get current URL from firefox programatically

  • 1 प्रत्युत्तर दें
  • 1 यह समस्या है
  • 9 views
  • के द्वारा अंतिम प्रतियुतर jscher2000 - Support Volunteer

more options

Hello all, I am trying to build an application which retrieves url of active tab from Firefox browser (I am testing Firefox version 64). I have been reading and investigating how to do it but I cannot find any reliable way. Could someone help and tell me how to achieve this please? Currently I want my application to work in MacOS platform, however if I can find cross-platform way, that would be awesome! Thank you very much in advance

Hello all, I am trying to build an application which retrieves url of active tab from Firefox browser (I am testing Firefox version 64). I have been reading and investigating how to do it but I cannot find any reliable way. Could someone help and tell me how to achieve this please? Currently I want my application to work in MacOS platform, however if I can find cross-platform way, that would be awesome! Thank you very much in advance

All Replies (1)

more options

I'm not aware of an API for this.

The window title, which usually is the page title (plus " - Mozillla Firefox") is available. I assume you already have that and it isn't enough.

You could check on MDN and Mozilla's general forums: