New user registration is currently disabled due to spam abuse / Регистрация новых пользователей в настоящее время приостановлена из-за злоупотреблений спаммерами

Incorrect displaying of some websites

Report bugs here

Incorrect displaying of some websites

Postby bwo » Tue Sep 15, 2009 5:51 pm

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.
bwo
 
Posts: 6
Joined: Tue Sep 15, 2009 5:40 pm

Re: Incorrect displaying of some websites

Postby ikm » Tue Sep 15, 2009 6:59 pm

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.
ikm
Автор GoldenDict
 
Posts: 1595
Joined: Wed Feb 04, 2009 10:40 am

Re: Incorrect displaying of some websites

Postby bwo » Tue Sep 15, 2009 7:28 pm

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?
bwo
 
Posts: 6
Joined: Tue Sep 15, 2009 5:40 pm

Re: Incorrect displaying of some websites

Postby ikm » Tue Sep 15, 2009 8:09 pm

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.
ikm
Автор GoldenDict
 
Posts: 1595
Joined: Wed Feb 04, 2009 10:40 am


Return to Bugs

Who is online

Users browsing this forum: No registered users and 12 guests