buffer: make sure first buffer in window is type="content-primary"
commit6231db01a3a144e29405da3850c3b15c551c9fc7
authorJohn Foerch <jjfoerch@earthlink.net>
Mon, 21 Jun 2010 01:33:43 +0000 (20 21:33 -0400)
committerJohn Foerch <jjfoerch@earthlink.net>
Mon, 21 Jun 2010 01:33:43 +0000 (20 21:33 -0400)
treedc6c2089d2cb547009ff51c9466d927cc4e7b43f
parent90d7adc9970df77a3f9f6d6d9f67b7081686a0a0
buffer: make sure first buffer in window is type="content-primary"

Without this, a link with target="_blank" would open a chrome-less window
when browser_default_open_target is OPEN_NEW_WINDOW.  Bug introduced in
fde0ad "buffer: don't support pre-existing xul".  To reproduce:

* Create a.html with contents:

   <html><a target="_blank" href="data:text/plain,test">Link</a></html>

* Run: conkeror -q -e 'browser_default_open_target=OPEN_NEW_WINDOW;' a.html

* Click on the link.
modules/buffer.js