X
Tocca qui per la versione per piattaforma mobile del sito.

Forum di supporto

Questa discussione è archiviata. Inserire una nuova richiesta se occorre aiuto.

Get current URL from firefox programatically

Inserita

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

Dettagli aggiuntivi sul sistema

Applicazione

  • User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36 OPR/57.0.3098.102

Ulteriori informazioni

jscher2000
  • Top 10 Contributor
8799 soluzioni 71970 risposte

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:

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: * https://developer.mozilla.org/ * https://discourse.mozilla.org/