title: Getting current browser url in Firefox Addon
body: <p>I within a panel and I want to get the current browser URL. Nothing so far works. Here's what I've tested:</p>
  
  <p>Only thing that even returns anything, I get something like <code>resource://jid0-18z0ptaugyu0arjkaoywztggyzg-at-jetpack/</code> and then my current panel resource. Obviously this is a scope problem but I don't know how to refer to the actual browser.</p>
  
  <pre><code>window.location.href 
  </code></pre>
  
  <p>I've tried literally everything in the biggest Stack Overflow thread on this: <a href="https://stackoverflow.com/questions/410411/get-current-page-url-from-a-firefox-sidebar-extension">Get current page URL from a firefox sidebar extension</a>. None of them return anything.</p>
  
  <p>If it helps, I am using the Firefox Addon Builder.</p>