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!

Поиск в Поддержке

Избегайте мошенников, выдающих себя за службу поддержки. Мы никогда не попросим вас позвонить, отправить текстовое сообщение или поделиться личной информацией. Сообщайте о подозрительной активности, используя функцию «Пожаловаться».

Learn More

Эта тема была закрыта и архивирована. Если вам нужна помощь, задайте новый вопрос.

Detecting navigation in FF add ons?

  • 2 ответа
  • 1 имеет эту проблему
  • 8 просмотров
  • Последний ответ от 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

Изменено James

Все ответы (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.

Изменено James