Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

A webpage or an ActiveX control that is hosted on a webpage may stop receiving the focus intermittently in Internet Explorer 9


View products that this article applies to.

Symptoms

When you use�Windows Internet Explorer 9 to view a webpage or an ActiveX control that is hosted on a webpage, the webpage or the ActiveX control�may stop receiving the focus intermittently.�For example, the ActiveX control may seem to be disabled, or the focus on the webpage may�be in the address bar after you click the page to try to gain focus.

Note�This issue can affect any user interface element on the page that can receive the focus.

↑ Back to the top


Cause

This problem occurs because the Tab window is detached from the input queue of the Frame window.

↑ Back to the top


Resolution

To resolve this issue, install the update that is mentioned in this article.

Security update information

To resolve this issue, install the most recent cumulative security update for Internet Explorer. To do this, visit the following Microsoft website:For technical information about the most recent cumulative security update for Internet Explorer, visit the following Microsoft website:Note�This update was first included in security update 2618444. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
2618444 MS11-NNN: Cumulative Security Update for Internet Explorer: December 13, 2011

↑ Back to the top


Workaround

To work around this problem, use one of the following methods:
  • Avoid making long-running blocking calls or performing any synchronous work on a UI thread that can potentially interfere with the thread's message pump.
  • Create the following registry subkey value to disable the Hang Resistance feature:
    HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main

    Type: REG_DWORD
    Name: HangRecovery
    Value: 0
    By default, the Hang Resistance feature is enabled in Internet Explorer 9. Setting the HangRecovery value to 0 disables this feature; setting the value to 1 enables the feature.

  • Avoid calling the AttachThreadInput API or other APIs that can potentially result in changing the owner for the Tab window, because those APIs affect the Tab Thread's input queue. An example of an API that can change the Tab Thread's input queue is�SetWindowLong.

↑ Back to the top


Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

↑ Back to the top


More information

For more information about the Hang Resistance feature in Internet Explorer 9, visit the following Microsoft website:For more information about software update terminology, click the following article number to view the article in the Microsoft Knowledge Base:
824684 Description of the standard terminology that is used to describe Microsoft software updates

↑ Back to the top


Keywords: KB2633864, kbsurveynew, kbexpertiseinter, kbfix, kbbug, kbqfe

↑ Back to the top

Article Info
Article ID : 2633864
Revision : 2
Created on : 12/13/2011
Published on : 12/13/2011
Exists online : False
Views : 512