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于修改