Page 1 of 1

Incorrect displaying of some websites

PostPosted: Tue Sep 15, 2009 5:51 pm
by bwo
1. The following website: http://ling.pl/miniling.php4?word=%GDWORD% is not displayed fully (i.e. only a header with search box is visible), if it is the only web dictionary within the given group. Sometimes adding another website to the group helps, but not always. Maybe it has something to do with the fact that it is mini version of the dictionary, with some javascript resizing the window (only guess).

To reproduce it's best to create a group with only this website.

2. This website: http://slowniki.gazeta.pl/angpl/%GDWORD% is taking whole window, so that results from other disctionaries are not visible.

Re: Incorrect displaying of some websites

PostPosted: Tue Sep 15, 2009 6:59 pm
by ikm
1. JavaScript may easily wreck just about everything. Specifically, resizing shouldn't be done by the site -- its frame is sized to match it once its load is complete.
2. This site escapes the frame (so called 'frame breaker'). Some sites don't like to be in a frame. Nothing can be done here except hack the underlying WebKit engine, which can't realistically be done since we use Qt's abstraction over it and forking Qt is not an option.

Overall, not all sites can work -- that's true. Some do, some don't.

Re: Incorrect displaying of some websites

PostPosted: Tue Sep 15, 2009 7:28 pm
by bwo
ikm wrote:1. JavaScript may easily wreck just about everything. Specifically, resizing shouldn't be done by the site -- its frame is sized to match it once its load is complete.


I realize that but I'm not the author of this site :). Wouldn't an option to disable javascript help though?

Re: Incorrect displaying of some websites

PostPosted: Tue Sep 15, 2009 8:09 pm
by ikm
No, not really. JavaScript is used by GD itself, and it is not possible to selectively disable JavaScript for individual iframes -- it's a page-wide option.