Fix popup window behavioral errors introduced by revision 1085 changes (issue #816).

git-svn-id: http://chromiumembedded.googlecode.com/svn/trunk@1093 5089003a-bbd8-11dd-ad1f-f1f9622dbc98