2011-05-14 Abhishek Arya <inferno@chromium.org>
authorAbhishek Arya <inferno@chromium.org>
Sun, 15 May 2011 01:51:14 +0000 (01:51 +0000)
committerAdemar de Souza Reis Jr <ademar.reis@openbossa.org>
Tue, 24 May 2011 18:53:53 +0000 (15:53 -0300)
commit6b1ee9e3feaf460e77636a2993af931d7e8d75f8
tree031d9205fad2ac4257241a91a8089f7219968b20
parente38ff03cd4ec9e67845323c1d04b5e00e429259f
2011-05-14  Abhishek Arya  <inferno@chromium.org>

        Reviewed by Dan Bernstein.

        Tests that we do not crash when trying to parse an invalid font family
        value of 'inherit' or 'initial' in a font face rule.
        https://bugs.webkit.org/show_bug.cgi?id=60837

        * fast/css/invalid-font-family-in-font-face-crash-expected.txt: Added.
        * fast/css/invalid-font-family-in-font-face-crash.html: Added.
2011-05-14  Abhishek Arya  <inferno@chromium.org>

        Reviewed by Dan Bernstein.

        As per spec, only allow one font family name in a font face rule.
        Other things like initial value, inherited value or multiple names
        are discarded.
        https://bugs.webkit.org/show_bug.cgi?id=60837

        Test: fast/css/invalid-font-family-in-font-face-crash.html

        * css/CSSParser.cpp:
        (WebCore::CSSParser::createFontFaceRule):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@86500 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/css/invalid-font-family-in-font-face-crash-expected.txt [new file with mode: 0644]
LayoutTests/fast/css/invalid-font-family-in-font-face-crash.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/css/CSSParser.cpp