[Webkit-unassigned] [Bug 18692] Garbage on the pop up page and right click doesn't work

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Apr 23 04:40:36 PDT 2008


http://bugs.webkit.org/show_bug.cgi?id=18692





------- Comment #1 from xijiay at gmail.com  2008-04-23 04:40 PDT -------
(In reply to comment #0)
> [Steps]
> 1 Launch Safari 3.1.1
> 2 Navigate to
> http://s.kuaiche.com/s/search?sid=1684&q=SnagIt%20V8.3.2%20Build%20014%20%E7%A0%B4%E8%A7%A3&stime=0.45721800%201208919835&srefer=http%3A%2F%2Fwww.tiansha.net%2Fdown%2Fsoft%2F708.htm&surl=a1804d9e8ffda43e721ecfa672f2a35c&r=99&s=0&t=0&f=0&p=0
> 3 Click the first download link in this page (The green down arrow)
> 4 Observe
> 
> [Result]
> 1 The popped up page displayed as garbage
> 2 Right click on this page, the context menu doesn't show up
> 
> [Expected]
> 1 The page should be decoded correctly and no garbage
> 2 The context menu should pop up
> 
> [Notes]
> View source of the popped up page from FF, you can see actually this page has
> meta charset declared
> 

If you look the meta charset declaration, it is <meta http-equiv="Content-Type"
content="text/html; charset="gb2312" />, you will find there is a extra double
quotation mark before the literal gb2312.
So the method TextResourceDecoder::checkForHeadCharset (WebKit code) will treat
the attribute declaration part of the meta tag as more than three parts because
it ignore ">", opening tag ends symbol,  which is quoted.
part1 : http-equiv="Content-Type"
part2: content="text/html; charset="
part3: gb2312" />.......
So you see TextResourceDecoder::checkForHeadCharset can not find the end of
meta tag, so it is failed to detect charset.


-- 
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list