Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(137)

Issue 402079: Ensure that the renderer has focus when ChromeFrame navigates to a URL in IE ... (Closed)

Created:
11 years, 1 month ago by ananta
Modified:
9 years, 6 months ago
Reviewers:
amit
CC:
chromium-reviews_googlegroups.com, amit, Paweł Hajdan Jr.
Visibility:
Public.

Description

Ensure that the renderer has focus when ChromeFrame navigates to a URL in IE full tab mode. This fixes bug http://code.google.com/p/chromium/issues/detail?id=22745 Test=Covered by unit test. Bug=22745 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=32497

Patch Set 1 #

Total comments: 7

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -8 lines) Patch
M chrome_frame/chrome_active_document.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M chrome_frame/chrome_active_document.cc View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M chrome_frame/chrome_frame_plugin.h View 1 2 3 2 chunks +10 lines, -7 lines 0 comments Download
M chrome_frame/test/chrome_frame_unittests.cc View 1 2 3 4 2 chunks +30 lines, -1 line 0 comments Download

Messages

Total messages: 3 (0 generated)
ananta
11 years, 1 month ago (2009-11-19 02:59:22 UTC) #1
amit
LGTM. Nice new test. http://codereview.chromium.org/402079/diff/1/3 File chrome_frame/chrome_active_document.cc (right): http://codereview.chromium.org/402079/diff/1/3#newcode177 Line 177: Base::OnAutomationServerReady(); unless it is ...
11 years, 1 month ago (2009-11-19 03:10:48 UTC) #2
ananta
11 years, 1 month ago (2009-11-19 03:15:07 UTC) #3
http://codereview.chromium.org/402079/diff/1/3
File chrome_frame/chrome_active_document.cc (right):

http://codereview.chromium.org/402079/diff/1/3#newcode177
Line 177: Base::OnAutomationServerReady();
On 2009/11/19 03:10:48, amit wrote:
> unless it is dependent on focus, it's probably better to call base
> implementation first.

Done.

http://codereview.chromium.org/402079/diff/1/5
File chrome_frame/chrome_active_document.h (right):

http://codereview.chromium.org/402079/diff/1/5#newcode215
Line 215: virtual void OnAutomationServerReady();
On 2009/11/19 03:10:48, amit wrote:
> will a similar issue exist if ActiveX has initial focus? In that case we
should
> consider doing this in ActivexBase? 

If the ActiveX has initial focus then we will handle that in WM_SETFOCUS and
ensure that Chrome gets focus.

http://codereview.chromium.org/402079/diff/1/4
File chrome_frame/test/chrome_frame_unittests.cc (right):

http://codereview.chromium.org/402079/diff/1/4#newcode101
Line 101: if (url.find(L"files/") != std::wstring::npos)
On 2009/11/19 03:10:48, amit wrote:
> why this hack is here?
This function assumes that the URL passed in is a relative URL which can be
handled by the HTTP Test server. The new test uses the same function to navigate
IE to cf:about:blank.

Powered by Google App Engine
This is Rietveld 408576698