title: How to get text from Address Bar in Firefox extension
body: <p>I am building a <strong>Firefox Extension</strong>. I am using <strong>XUL</strong> and <strong>Javascript</strong> to do this. I need to get the text from my Firefox browser's address bar. 
  Please don't get confused with URL where the browser has navigated, its just the text that user enters before the page redirects. Suppose user is at <a href="http://www.myexample.com" rel="nofollow noreferrer">http://www.myexample.com</a> or whatever page. Now he types Cricket in the Address Bar and as soon as he hits enter, I want to capture the text ("Cricket") from the <strong>address bar</strong>. I need this data to do some processing further in my code.</p>