Skip to content
  • bdakin@apple.com's avatar
    WebCore: · fa1ce165
    bdakin@apple.com authored
    2008-09-18  Beth Dakin  <bdakin@apple.com>
    
            Reviewed by Dave Hyatt.
    
            Fix for https://bugs.webkit.org/show_bug.cgi?id=20515 Crash upon 
            parsing CSS: unicode-range: searchfield-cancel-buttonpt=-webkit-
            dashboard-region=
            and corresponding: <rdar://problem/6174100>
    
            This patch makes CSSParserValue::createCSSValue handle unknown 
            identifiers.
    
            * css/CSSParserValues.cpp:
            (WebCore::CSSParserValue::createCSSValue): If we have an identifier 
            with no id (an unknown identifier) create a CSSPrimitiveValue of 
            type CSS_PARSER_IDENTIFIER
            * css/CSSPrimitiveValue.cpp:
            (WebCore::CSSPrimitiveValue::cssText):
            (WebCore::CSSPrimitiveValue::parserValue):
            * css/CSSPrimitiveValue.h:
            (WebCore::CSSPrimitiveValue::):
    
    LayoutTests:
    
    2008-09-18  Beth Dakin  <bdakin@apple.com>
    
            Reviewed by Dave Hyatt.
    
            Test for https://bugs.webkit.org/show_bug.cgi?id=20515 Crash upon 
            parsing CSS: unicode-range: searchfield-cancel-buttonpt=-webkit-
            dashboard-region=
            and corresponding: <rdar://problem/6174100>
    
            * fast/css/variables/invalid-identifier-expected.txt: Added.
            * fast/css/variables/invalid-identifier.html: Added.
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@36624 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    fa1ce165