Can I read the URL before the HTTP request is sent?

I need to develop an extension that reads the user’s entered URL in the URL bar after the user click enter to perform a check for the URL address before it request and load the page. Is this functionality possible?

https://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/webNavigation/onBeforeNavigate

1 Like

Thanks. But is there a way to do this with Addon SDK? I had a look at tabs but it notifies when the tab is ready which means the content loaded while I am asking for a method that notifies before content loaded.