Przeszukaj pomoc

Unikaj oszustw związanych z pomocą.Nigdy nie będziemy prosić Cię o dzwonienie na numer telefonu, wysyłanie SMS-ów ani o udostępnianie danych osobowych. Zgłoś podejrzaną aktywność, korzystając z opcji „Zgłoś nadużycie”.

Learn More

Wątek został zamknięty i zarchiwizowany. Jeśli potrzebujesz pomocy, zadaj nowe pytanie.

Detecting navigation in FF add ons?

  • 2 odpowiedzi
  • 1 osoba ma ten problem
  • 10 wyświetleń
  • Ostatnia odpowiedź od James

more options

I am porting a Chrome extension to FF using 'FF Addon SDK'. In the background script (main.js) file, I need to use the FF equivalent of...

chrome.webNavigation.onBeforeNavigate.addListener() and

chrome.tabs.onUpdated.addListener() I noticed that require("sdk/tabs").on only has open, close, finish, etc., but nothing to do with the navigation.

I see a few solutions that use Page-Mod or show the solution for the old XUL way of developing FF Extensions. I am specifically looking for an FF Addon SDK (only) solution.

Appreciate any inputs.

EDIT: I was able to figure out an alternative for chrome.tabs.onUpdated.addListener() by using Progress Listener. Apparently, in FF it is called onLocationChange. Still looking for an alternative to chrome.webNavigation.onBeforeNavigate.addListener()

removed wwe stream spam links

I am porting a Chrome extension to FF using 'FF Addon SDK'. In the background script (main.js) file, I need to use the FF equivalent of... chrome.webNavigation.onBeforeNavigate.addListener() and chrome.tabs.onUpdated.addListener() I noticed that require("sdk/tabs").on only has open, close, finish, etc., but nothing to do with the navigation. I see a few solutions that use Page-Mod or show the solution for the old XUL way of developing FF Extensions. I am specifically looking for an FF Addon SDK (only) solution. Appreciate any inputs. EDIT: I was able to figure out an alternative for chrome.tabs.onUpdated.addListener() by using Progress Listener. Apparently, in FF it is called onLocationChange. Still looking for an alternative to chrome.webNavigation.onBeforeNavigate.addListener() removed wwe stream spam links

Zmodyfikowany przez James w dniu

Wszystkie odpowiedzi (2)

more options

hi vovoqumu, support.mozilla.org is intended for end-user support. for this particular subject please refer to our Add-on Development Forum instead. thank you for your understanding!

Where to go for developer support

more options

Locked on account of spam.

Zmodyfikowany przez James w dniu