• tommi@chromium.org's avatar
    Revert 102216 - Fix activation problem when showing bubble view · 5045b06a
    tommi@chromium.org authored
    If a bubble view was shown immediately after creating a browser window the bubble view would get a deactivate event causing it to close.
    
    The problem was that when the browser window's page was commited it would switch focus to the location bar. This caused the bubble view to lose focus and close.
    
    Fix was to have the browser winodw switch focus to the location bar only if it was the active window. Thus if a bubble view was shown it wouldn't switch focus.
    
    This change also modifies InProcessBrowserTest::CreateBrowserForPopup() to show the browser window before navigating to a blank page. This fixes a problem where the browser window wouldn't become active.
    
    BUG=95146
    TEST=
    
    
    Review URL: http://codereview.chromium.org/7960001
    
    TBR=sail@chromium.org
    Review URL: http://codereview.chromium.org/7988001
    
    git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102263 0039d316-1c4b-4281-b951-d872f2087c98
    5045b06a
browser_view.cc 95.9 KB