title: Detect when firefox application loses focus
body: <p>I am developing a Firefox extension that needs to be notified each time the browser loses focus. How can I do this? I tried observing <code>user-interaction-inactive</code> but this only fires once for each instance of firefox.</p>
  
  <p>Any alternatives?</p>