none
Embedded IE webbrowser does not working when security_HKLM_only is set to 1 RRS feed

  • Question

  • Hello,

    I have an application which embed IE Webbrowser to display a Rich text editor based on CKEditor (which web based editor). But, on my computer it does not work because the policy security_HKLM_only is set to 1.

    I've tried to reproduce on machine which I have administrator rights, when I set the key to 1, the editor does not work anymore and when I set the value to 0, it works fine.

    I displayed the user agent of webbrowser by adding to my page this script: alert(navigator.userAgent);

    The output:

    Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Win64; x64; Trident/7.0; .NET CLR 2.0.50727; SLCC2; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET 4.0C; .NET4.0E)

    And the script: alert(document.documentMode); has the following output: 5.

    I tried also to set my process in HKEY_CURRENT_USER\SOFTWARE\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION to 0x2AF9 (IE11) but it does not work.

    When I test on IE (not embedded  browser) it works fine.

    Do you have any idea why the behavior is different between the IE and embedded webbrowser? and if there are some ways to bypass this behavior?

    Thank you.

    Regards

    Monday, January 8, 2018 4:35 PM

All replies

  • I forget my configuration:

    • Windows 7
    • IE 11.0.9600.18837

    Regards

    Monday, January 8, 2018 4:38 PM
  • Hi,

    FEATURE_CONTROL_EMULATION

    see

    https://msdn.microsoft.com/en-us/library/ee330720(v=vs.85).aspx

    http://www.geoffchappell.com/notes/windows/ie/featurecontrol.htm

    https://msdn.microsoft.com/en-us/library/ee330733(v=vs.85).aspx

    also your source HTML should use the HTML5 doctype declaration. You should validate your markup at validator.w3c.org (if using a previous DTD (html4<)) or validator.w3c.org/nu (for HTML5 DTD). A good idea is to develop your embedded web page (dll resource?) using the real IE, where you can use the dev tool (f12) to debug it first.

    Regards.

    Questions regarding Internet Explorer 8, 9 and 10 and Internet Explorer 11 for the IT Pro Audience. Topics covered are: Installation, Deployment, Configuration, Security, Group Policy, Management questions.

    the Internet Explorer forum at stackoverflow.com is a good place to ask questions about using the WBC (IE) and web site/page development (html, css and scripting)


    Rob^_^

    Monday, January 8, 2018 10:33 PM
  • Hi,

    Thank you for your answer. It is instructive.

    I'm using a component (Eclipse Nebula Richtext one) which includes the html sources and CKEditor. What I do is just the integration of this component in my application.

    On computers of my company, many GPOs are activated. Especially, Security_HKLM_only=1. What I understand from your second link about that key if it is set to 1, the user has no capability to customize (i.e., HKEY_CURRENT_USER branche) the web browser!

    When I patch the component I use by adding to HTML page the tag: <meta http-equiv="X-UA-Compatible" content="IE=Edge" />, it works

    Thank you.

    regards.

    Faycal

    Tuesday, January 9, 2018 11:13 AM