浏览器特性控制

来源:互联网 发布:程序员压力大吗 央视 编辑:程序博客网 时间:2024/05/17 21:53

Internet Feature Controls (B..C)

7 out of 11 rated this helpful- Rate this topic

Updated: July 2012

This article describes feature controls with names that begin with the letters B or C. For links to other feature controls, seeFeature Controls.

  • Binary Behavior Security
  • Browser Emulation
  • Child Window Clipping
  • Circular References in Script Management
  • Clipboard Script Control
  • Cross Domain Capture Event
  • Cross Domain Redirection
  • Related topics

Binary Behavior Security

Microsoft Internet Explorer 6 for Windows XP Service Pack 2 (SP2). The FEATURE_BEHAVIORS allowsBinary Behaviors to run more securely. When the feature is enabled, it can be set differently for each security zone by using the URL action flag URLACTION_BEHAVIOR_RUN. For more information, seeAbout URL Security Zones.

By default, this feature is enabled for Windows Internet Explorer and for applications hosting theWebBrowser Control. To disable this feature by using the registry, add the name of your executable file to the following setting.

HKEY_LOCAL_MACHINE (or HKEY_CURRENT_USER)   SOFTWARE      Microsoft         Internet Explorer            Main               FeatureControl                  FEATURE_BEHAVIORS                     contoso.exe = (DWORD) 00000000

The feature is enabled when the value is set to (DWORD) 00000001 and disabled when the value is (DWORD)00000000.

Browser Emulation

Windows Internet Explorer 8 and later. The FEATURE_BROWSER_EMULATION feature defines the default emulation mode for Internet Explorer and supports the following values.

ValueDescription11001 (0x2AF9Internet Explorer 11. Webpages are displayed in IE11 edge mode, regardless of the!DOCTYPE directive.11000 (0x2AF8)IE11. Webpages containing standards-based !DOCTYPE directives are displayed in IE11 edge mode. Default value for IE11.10001 (0x2711)Internet Explorer 10. Webpages are displayed in IE10 Standards mode, regardless of the!DOCTYPE directive.10000 (0x02710)Internet Explorer 10. Webpages containing standards-based !DOCTYPE directives are displayed in IE10 Standards mode. Default value for Internet Explorer 10.9999 (0x270F)Windows Internet Explorer 9. Webpages are displayed in IE9 Standards mode, regardless of the!DOCTYPE directive.9000 (0x2328)Internet Explorer 9. Webpages containing standards-based !DOCTYPE directives are displayed in IE9 mode. Default value for Internet Explorer 9.

Important In Internet Explorer 10, Webpages containing standards-based !DOCTYPE directives are displayed in IE10 Standards mode.

8888 (0x22B8)Webpages are displayed in IE8 Standards mode, regardless of the !DOCTYPE directive.8000 (0x1F40)Webpages containing standards-based !DOCTYPE directives are displayed in IE8 mode. Default value for Internet Explorer 8

Important In Internet Explorer 10, Webpages containing standards-based !DOCTYPE directives are displayed in IE10 Standards mode.

7000 (0x1B58)Webpages containing standards-based !DOCTYPE directives are displayed in IE7 Standards mode. Default value for applications hosting theWebBrowser Control.

For more information, see Defining Document Compatibility and Internet Explorer 8 Extensibility Improvements.

To control the value of this feature by using the registry, add the name of your executable file to the following setting and set the value to match the desired setting.

HKEY_LOCAL_MACHINE (or HKEY_CURRENT_USER)   SOFTWARE      Microsoft         Internet Explorer            Main               FeatureControl                  FEATURE_BROWSER_EMULATION                     contoso.exe = (DWORD) 00009000

Child Window Clipping

Internet Explorer 9. Internet Explorer 9 optimized the performance of window-drawing routines that involve clipping regions associated withchild windows. This helped improve the performance of certain window drawing operations. However, certain applications hosting theWebBrowser Control rely on the previous behavior and do not function correctly when these optimizations are enabled. The FEATURE_ENABLE_CLIPCHILDREN_OPTIMIZATION feature can disable these optimizations.

By default, this feature is enabled for Internet Explorer and for applications hosting theWebBrowser Control. To disable this feature by using the registry, add the name of your executable file to the following setting.

HKEY_LOCAL_MACHINE (or HKEY_CURRENT_USER)   SOFTWARE      Microsoft         Internet Explorer            Main               FeatureControl                  FEATURE_ENABLE_CLIPCHILDREN_OPTIMIZATION                     contoso.exe = (DWORD) 00000000

The feature is enabled when the value is set to (DWORD) 00000001 and disabled when the value is (DWORD)00000000.

Circular References in Script Management

Internet Explorer 8 and later. By default, Internet Explorer reduces memory leaks caused by circular references between Internet Explorer and the Microsoft JScript engine, especially in scenarios where a webpage defines an expando and the page is refreshed. If a legacy application no longer functions with these changes, the FEATURE_MANAGE_SCRIPT_CIRCULAR_REFS feature can disable these improvements.

By default, this feature is enabled for Internet Explorer and for applications hosting theWebBrowser Control. To disable this feature by using the registry, add the name of your executable file to the following setting.

HKEY_LOCAL_MACHINE (or HKEY_CURRENT_USER)   SOFTWARE      Microsoft         Internet Explorer            Main               FeatureControl                  FEATURE_MANAGE_SCRIPT_CIRCULAR_REFS                     contoso.exe = (DWORD) 00000000

The feature is enabled when the value is set to (DWORD) 00000001 and disabled when the value is (DWORD)00000000.

Note Because this feature improves the stability of Internet Explorer, disabling this feature is strongly discouraged.

Clipboard Script Control

When enabled, the FEATURE_ENABLE_SCRIPT_PASTE_URLACTION_IF_PROMPT feature allows scripts control over the Clipboard, even when the URLACTION_SCRIPT_PASTE URL action is set to "Prompt." This allows applications hosting theWebBrowser Control to opt out of a specific security check that may be unnecessary for the content displayed by the application. If the content is fully trusted and cannot be modified by any third-party, it may be safe to enable this feature. However, such a design decision should include a full security assessment. For more information, seeThreat Modeling.

By default, this feature is disabled for Internet Explorer and enabled for applications hosting theWebBrowser Control. To enable this feature by using the registry, add the name of your executable file to the following setting.

HKEY_LOCAL_MACHINE (or HKEY_CURRENT_USER)   SOFTWARE      Microsoft         Internet Explorer            Main               FeatureControl                  FEATURE_ENABLE_SCRIPT_PASTE_URLACTION_IF_PROMPT                     contoso.exe = (DWORD) 00000001

The feature is enabled when the value is set to (DWORD) 00000001 and disabled when the value is (DWORD)00000000.

Cross Domain Capture Event

The FEATURE_BLOCK_SETCAPTURE_XDOMAIN feature prevents capture events from being propagated to elements in webpages hosted on domains different than the one hosting the page containing the element that triggered the capture event.

By default, this feature is enabled for Internet Explorer 8 and for applications hosting theWebBrowser Control. To disable this feature by using the registry, add the name of your executable file to the following setting.

HKEY_LOCAL_MACHINE (or HKEY_CURRENT_USER)   SOFTWARE      Microsoft         Internet Explorer            Main               FeatureControl                  FEATURE_BLOCK_SETCAPTURE_XDOMAIN                     contoso.exe = (DWORD) 00000000

The feature is enabled when the value is set to (DWORD) 00000001 and disabled when the value is (DWORD)00000000.

Cross Domain Redirection

When enabled, the FEATURE_CROSS DOMAIN_REDIRECT_MITIGATION feature applies cross-domain security to support files loaded by a webpage, including images, JavaScript libraries, Cascading Style Sheets (CSS) files, Microsoft ActiveX controls, and other file-based resources.

Note For security reasons, this feature should not be changed.

By default, this feature is enabled for Internet Explorer 8 and for applications hosting theWebBrowser Control. To disable this feature by using the registry, add the name of your executable to the following setting.

HKEY_LOCAL_MACHINE (or HKEY_CURRENT_USER)   SOFTWARE      Microsoft         Internet Explorer            Main               FeatureControl                  FEATURE_CROSS_DOMAIN_REDIRECT_MITIGATION                     contoso.exe = (DWORD) 00000000

The feature is enabled when the value is set to (DWORD) 00000001 and disabled when the value is (DWORD)00000000.

转自:http://msdn.microsoft.com/en-us/library/ee330730(v=vs.85).aspx
0 0
原创粉丝点击