Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-ua-dev] Question about the embedded browser


Hi Jason,

You may be seeing the behavior that's described in https://bugs.eclipse.org/bugs/show_bug.cgi?id=328609 .  In short, all clients (like SWT) that embed IE's WebBrowser control are defaulted to run in IE7 emulation mode unless they specify otherwise (this is a policy from MS).  This seems similar to what you're seeing, except that in your case it looks like the emulation mode is IE6 or earlier (?).

Questions:
- are you setting the Browser's content with setUrl() or with setText()?
- what does yourBrowser.execute("alert(navigator.userAgent)") display?

Suggestions:
- if the userAgent alert says it's IE7 and if you're setting your Browser's content with setUrl(), then try the eclipse release at http://download.eclipse.org/eclipse/downloads/drops/S-3.7RC2-201105191138/index.php , which contains the fix for bug 328609
    - note that you may need to refresh() the page to ensure that the fix is being considered, as the build linked above does not contain the fix for https://bugs.eclipse.org/bugs/show_bug.cgi?id=347022
- if the userAgent alert says it's earlier than IE7 then I would guess that something in your page has put IE into quirks mode

HTH,
Grant

Back to the top