Changeset 38240 in webkit


Ignore:
Timestamp:
Nov 8, 2008 8:11:26 PM (15 years ago)
Author:
Antti Koivisto
Message:

WebCore:

2008-11-08 Antti Koivisto <Antti Koivisto>

Reviewed by Sam Weinig.


Fix https://bugs.webkit.org/show_bug.cgi?id=22141
REGRESSION: Safari error page is not fully styled when loaded from cache


Reset text decoder on flush so it does not pass through the BOM when it is reused.

Test: fast/encoding/css-cached-bom.html

  • loader/TextResourceDecoder.cpp: (WebCore::TextResourceDecoder::flush):

LayoutTests:

2008-11-08 Antti Koivisto <Antti Koivisto>

Reviewed by Sam Weinig.


Test for https://bugs.webkit.org/show_bug.cgi?id=22141
REGRESSION: Safari error page is not fully styled when loaded from cache

  • fast/encoding/css-cached-bom.html: Added.
  • fast/encoding/css-cached-bom-expected.txt: Added.
  • fast/encoding/resources/css-cached-bom-frame.html: Added.
  • fast/encoding/resources/utf-16-little-endian.css: Added.
Location:
trunk
Files:
4 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r38237 r38240  
     12008-11-08  Antti Koivisto  <antti@apple.com>
     2
     3        Reviewed by Sam Weinig.
     4       
     5        Test for https://bugs.webkit.org/show_bug.cgi?id=22141
     6        REGRESSION: Safari error page is not fully styled when loaded from cache
     7
     8        * fast/encoding/css-cached-bom.html: Added.
     9        * fast/encoding/css-cached-bom-expected.txt: Added.
     10        * fast/encoding/resources/css-cached-bom-frame.html: Added.
     11        * fast/encoding/resources/utf-16-little-endian.css: Added.
     12
    1132008-11-08  Simon Fraser  <simon.fraser@apple.com>
    214
  • trunk/WebCore/ChangeLog

    r38239 r38240  
     12008-11-08  Antti Koivisto  <antti@apple.com>
     2
     3        Reviewed by Sam Weinig.
     4       
     5        Fix https://bugs.webkit.org/show_bug.cgi?id=22141
     6        REGRESSION: Safari error page is not fully styled when loaded from cache
     7       
     8        Reset text decoder on flush so it does not pass through the BOM when it is reused.
     9
     10        Test: fast/encoding/css-cached-bom.html
     11
     12        * loader/TextResourceDecoder.cpp:
     13        (WebCore::TextResourceDecoder::flush):
     14
    1152008-11-08  Kevin Ollivier  <kevino@theolliviers.com>
    216 
  • trunk/WebCore/loader/TextResourceDecoder.cpp

    r37555 r38240  
    794794    String result = m_decoder.decode(m_buffer.data(), m_buffer.size(), true, m_contentType == XML, m_sawError);
    795795    m_buffer.clear();
     796    m_decoder.reset(m_decoder.encoding());
    796797    return result;
    797798}
Note: See TracChangeset for help on using the changeset viewer.