Reviewed by Maciej.
authorap@webkit.org <ap@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 27 Dec 2007 08:22:24 +0000 (08:22 +0000)
committerap@webkit.org <ap@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 27 Dec 2007 08:22:24 +0000 (08:22 +0000)
commit6e188c54f83542ac88df3dbeda62eb91223d5808
tree105a4aaafe31cd186ebe11c2210035794dbed4ed
parenta075e06485085de53cc90116c95310902798016f
    Reviewed by Maciej.

        http://bugs.webkit.org/show_bug.cgi?id=14500
        need to be more generous about charset declaration with meta tag

        http://bugs.webkit.org/show_bug.cgi?id=12526
        <rdar://problem/4867183> Safari ignores encoding description "charset=Shift_JIS" in invalid html

        <rdar://problem/4892428> Unlike other browsers, WebKit ignores <meta> charset definitions outside the head

        <rdar://problem/5643774> REGRESSION: Text is garbled when clicking a link inside an Arabic website

        Tests: fast/encoding/ahram-org-eg.html
               fast/encoding/bandai-co-jp-releases.html
               fast/encoding/floraexpress-ru.html
               fast/encoding/hanarei-blog32-fc2-com.html
               fast/encoding/yahoo-mail.html

        * loader/TextResourceDecoder.cpp:
        (WebCore::TextResourceDecoder::checkForHeadCharset): Don't stop looking for <meta> until we've
        seen at least 512 bytes of input.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@28998 268f45cc-cd09-0410-ab3c-d52691b4dbfc
13 files changed:
LayoutTests/ChangeLog
LayoutTests/fast/encoding/ahram-org-eg-expected.txt [new file with mode: 0644]
LayoutTests/fast/encoding/ahram-org-eg.html [new file with mode: 0644]
LayoutTests/fast/encoding/bandai-co-jp-releases-expected.txt [new file with mode: 0644]
LayoutTests/fast/encoding/bandai-co-jp-releases.html [new file with mode: 0644]
LayoutTests/fast/encoding/floraexpress-ru-expected.txt [new file with mode: 0644]
LayoutTests/fast/encoding/floraexpress-ru.html [new file with mode: 0644]
LayoutTests/fast/encoding/hanarei-blog32-fc2-com-expected.txt [new file with mode: 0644]
LayoutTests/fast/encoding/hanarei-blog32-fc2-com.html [new file with mode: 0644]
LayoutTests/fast/encoding/yahoo-mail-expected.txt [new file with mode: 0644]
LayoutTests/fast/encoding/yahoo-mail.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/loader/TextResourceDecoder.cpp