When I build a GWT application, it runs on all browsers like IE,chrome,firefox etc. provided GWT plugin is installed for that browser.
I want to know how can I prevent a GWT application from running on a particular browser i.e. if I don’t want my GWT apps to run on say Firefox, how can I achieve that? What changes I need to do in my code?
When I build a GWT application, it runs on all browsers like IE,chrome,firefox etc.
Share
Add
<set-property name="user.agent" value="ie6,ie8,ie9,safari,opera" />to your*.gwt.xmlfile and it will fail to load in Firefox (FYI, Firefox’suser.agenttoken isgecko1_8).If you don’t want to support IE6 and IE7 for instance, you don’t need to compile for them, and you can decrease your compilation time by removing the
ie6token from theuser.agentvalue list.