Bug 19682 - Encoding issue with hebrew characters in an iframe
Summary: Encoding issue with hebrew characters in an iframe
Status: RESOLVED WONTFIX
Alias: None
Product: WebKit
Classification: Unclassified
Component: Text (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Nobody
URL: http://zira.themarker.com/tmc/consult...
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-19 16:40 PDT by Ojan Vafai
Modified: 2008-06-26 22:50 PDT (History)
2 users (show)

See Also:


Attachments
screenshot of the page in a number of browsers (223.21 KB, image/gif)
2008-06-19 16:41 PDT, Ojan Vafai
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ojan Vafai 2008-06-19 16:40:11 PDT
The text gets garbled. This chunk of this page only works in IE as best I can tell. Load the page and scroll about halfway down. Screenshot coming...
Comment 1 Ojan Vafai 2008-06-19 16:41:44 PDT
Created attachment 21851 [details]
screenshot of the page in a number of browsers
Comment 2 Alexey Proskuryakov 2008-06-19 17:42:45 PDT
The iframe content is coming from a different domain, and doesn't have encoding explicitly specified.

IE gets the top frame encoding inherited from the main frame, but we think that this is a security problem. See <http://www.mozilla.org/security/announce/2007/mfsa2007-02.html> and <http://www.opera.com/support/search/view/855/> for some explanation.

As such, there doesn't seem to be anything that we could do here.
Comment 3 Jungshik Shin 2008-06-26 14:30:51 PDT
Firefox inherits charset from the parent if a child and its parent are in the same domain. On the other hand, Safari does not inherit in any case.  (  https://bugs.webkit.org/show_bug.cgi?id=6118 has that change.  https://bugs.webkit.org/show_bug.cgi?id=14683 has some more discussion)

As a result, comments (that get unfolded with a mouse click on their title) at 
http://community.walla.co.il/?w=/509/2766  get rendered gibberish (interpreted as the default charset) in Safari (unless the default is windows-1255) while it's rendered correctly in Firefox regardless of the default charset. 


Comment 4 Alexey Proskuryakov 2008-06-26 22:50:02 PDT
This has changed, we do inherit charset from the parent now, as much as security rules allow (this is not shipping yet, but you should be able to verify with a nightly build).

> As a result, comments (that get unfolded with a mouse click on their title) at 
> http://community.walla.co.il/?w=/509/2766  get rendered gibberish

I cannot reproduce this with ToT.