Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Non working url in browser widget
Non working url in browser widget [message #965924] Wed, 31 October 2012 12:10 Go to next message
Arnaud MERGEY is currently offline Arnaud MERGEY
Messages: 86
Registered: March 2010
Location: France
Member
Hello,

For some url org.eclipse.swt.browser.Browser.setUrl does not work. The iframe content is empty but there is no error.
It is possible to reproduce this in controlsdemo, in Browser demo try to set "http://www.google.com", clicking on Go does nothing. Is there a way to have this url working in Browser ?

Best regards,
Arnaud
Re: Non working url in browser widget [message #966016 is a reply to message #965924] Wed, 31 October 2012 13:32 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan Furnadjiev
Messages: 1421
Registered: July 2009
Senior Member
Hi Arnaud,
it's really interesting. I've tested the Controls Demo as well and you
are right - the www.google.com is not loaded. I don't think that this is
a RAP issue as other absolute URLs are loaded without problem. I will
investigate it when I have time.
Best,
Ivan

On 10/31/2012 6:10 PM, Arnaud MERGEY wrote:
> Hello,
>
> For some url org.eclipse.swt.browser.Browser.setUrl does not work. The
> iframe content is empty but there is no error.
> It is possible to reproduce this in controlsdemo, in Browser demo try
> to set "http://www.google.com", clicking on Go does nothing. Is there
> a way to have this url working in Browser ?
>
> Best regards,
> Arnaud
>

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Non working url in browser widget [message #966114 is a reply to message #966016] Wed, 31 October 2012 15:21 Go to previous messageGo to next message
Cole Markham is currently offline Cole Markham
Messages: 127
Registered: July 2009
Senior Member
This is a browser "feature" and is not specific to RAP, see this site[1] for another example that will fail if you try http://www.google.com. Google is preventing its site from loading in the iframe[2]. I was not aware of this feature before, but it seems to be the same for both IE9 and Chrome at least. On IE you get this message:
Quote:

This content cannot be displayed in a frame

To help protect the security of information you enter into this website, the publisher of this content does not allow it to be displayed in a frame.


[1] http://www.w3schools.com/tags/tryit.asp?filename=tryhtml_iframe
[2] https://groups.google.com/forum/?fromgroups=#!topic/youtube-api/LSI2cxZyoJg

Cole
Re: Non working url in browser widget [message #968213 is a reply to message #966114] Fri, 02 November 2012 05:36 Go to previous message
Arnaud MERGEY is currently offline Arnaud MERGEY
Messages: 86
Registered: March 2010
Location: France
Member
Thanks for the info, I was not aware it was possible to prevent a site from beeing load inside an iframe (other than by writing some javascript to achieve this), so I have learned something today. I forgot to test it with IE, only with chome and FF, and they display about:blank instead of an error, that's why I was wondering what's happened.

Best regards,
Arnaud
Previous Topic:New RWT session on browser refresh
Next Topic:Theming ToolItem DropDown
Goto Forum:
  


Current Time: Mon May 20 02:08:23 EDT 2013

Powered by FUDForum. Page generated in 0.08371 seconds