title: Javascript & Firefox - Detect if window.open opens in a tab?
body: <p>I'm doing some work with the new Facebook js library, <a href="http://github.com/facebook/connect-js" rel="nofollow noreferrer">http://github.com/facebook/connect-js</a>. There's one thing that bugs me, which is that when you are using Firefox and have the option "Open new windows in a new tab instead" enabled, the login popup opens in a new tab and then resizes the entire browser. It doesn't restore to the original size after successful login or cancel.</p>
  
  <p>The popup window is being opened with window.open(). I'm curious to see if there's a way to detect if a window is opened as a tab or as a separate window. If so, I think I can come up with a work around to restore the window size in affected browsers. </p>