title: Chrome extension focus
body: <p>I'm trying to get a Chrome extension to pop up a "popup" or a "panel" in the front of the currently focused window.  It seems like the focused boolean for chrome.windows.create isn't working.</p>
  
  <p>It <strong>always</strong> opens behind the current window, no matter what I've tried.</p>
  
  <pre><code>// popup.html
  &lt;html&gt;
    &lt;head&gt;
    &lt;/head&gt;
    &lt;body&gt;
    &lt;/body&gt;
    &lt;script src="loader.js"&gt;&lt;/script&gt;
  &lt;/html&gt;
  
  // loader.js
  function load() {
    var popupId;
  
    chrome.windows.create({
      type:   'popup',
      url:    'http://xxx/bookmarks',
      height:  500,
      width:   800,
      focused: true
    }, function(popup) {
      popupId = popup.id;
    });
  
    chrome.windows.update(popupId, {focused: true});
  }
  document.getElementsByTagName('body')[0].onload = function() { load(); };
  </code></pre>
  
  <p>Any ideas would be appreciated.  Thanks!</p>