Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » SWT Browser User-agent
SWT Browser User-agent [message #814577] Tue, 06 March 2012 16:12 Go to next message
Patrick Chuong is currently offline Patrick ChuongFriend
Messages: 11
Registered: July 2009
Junior Member
Hi,

I am embedding a browser in one of my view. For some of the html pages that I navigate to required knowing the browser name and version, so that the page can decided how to render properly.

I have tested IE, Mozilla, Webkit, it looks like IE is the only browser that reports the proper name and version. Is there a way to set the user-agent for the browser? I have tried to pass in the user-agent when calling setUrl, however this property got overwritten when I refresh the page.

Thanks,
Patrick
Re: SWT Browser User-agent [message #814756 is a reply to message #814577] Tue, 06 March 2012 21:15 Go to previous message
Libor Jelinek is currently offline Libor JelinekFriend
Messages: 143
Registered: January 2012
Location: Prague, Czech Rep.
Senior Member

It's not a matter of/question for SWT browser. SWT browser control is a just thin veneer above actual "real" browser that is doing all the work under the neath.
Previous Topic:Layout Problems
Next Topic:problem with custom drawing table
Goto Forum:
  


Current Time: Fri Apr 19 09:19:31 GMT 2024

Powered by FUDForum. Page generated in 0.01870 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top