Changeset 217227 in webkit
- Timestamp:
- May 22, 2017 11:16:18 AM (7 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r217225 r217227 1 2017-05-22 Antti Koivisto <antti@apple.com> 2 3 Crash in WebCore::StyleRuleKeyframes::findKeyframeIndex 4 https://bugs.webkit.org/show_bug.cgi?id=170756 5 <rdar://problem/31573157> 6 7 Reviewed by Andreas Kling. 8 9 Expand the tests to cover the malformed key case. 10 11 * animations/keyframes-rule.html: 12 * animations/unprefixed-keyframes-rule.html: 13 1 14 2017-05-22 youenn fablet <youenn@apple.com> 2 15 -
trunk/LayoutTests/animations/keyframes-rule-expected.txt
r179197 r217227 58 58 PASS Non-existent rule was not found 59 59 60 Try to find a rule using a malformed key 61 PASS rule is null 62 60 63 Delete a rule 61 64 PASS rules2.length is 2 -
trunk/LayoutTests/animations/keyframes-rule.html
r191132 r217227 162 162 163 163 debug(""); 164 debug("Try to find a rule using a malformed key"); 165 166 rule = keyframes2.findRule("1"); 167 168 shouldBe("rule", "null"); 169 170 debug(""); 164 171 debug("Delete a rule"); 165 172 -
trunk/LayoutTests/animations/unprefixed-keyframes-rule-expected.txt
r180441 r217227 58 58 PASS Non-existent rule was not found 59 59 60 Try to find a rule using a malformed key 61 PASS rule is null 62 60 63 Delete a rule 61 64 PASS rules2.length is 2 -
trunk/LayoutTests/animations/unprefixed-keyframes-rule.html
r191132 r217227 162 162 163 163 debug(""); 164 debug("Try to find a rule using a malformed key"); 165 166 rule = keyframes2.findRule("1"); 167 168 shouldBe("rule", "null"); 169 170 debug(""); 164 171 debug("Delete a rule"); 165 172 -
trunk/Source/WebCore/ChangeLog
r217224 r217227 1 2017-05-22 Antti Koivisto <antti@apple.com> 2 3 Crash in WebCore::StyleRuleKeyframes::findKeyframeIndex 4 https://bugs.webkit.org/show_bug.cgi?id=170756 5 <rdar://problem/31573157> 6 7 Reviewed by Andreas Kling. 8 9 Using a malformed key with CSSKeyframesRule.findRule crashes because 10 CSSParser::parseKeyframeKeyList returns null which is then dereferenced. 11 12 * css/CSSKeyframesRule.cpp: 13 (WebCore::StyleRuleKeyframes::findKeyframeIndex): Null test. 14 1 15 2017-05-22 Wenson Hsieh <wenson_hsieh@apple.com> 2 16 -
trunk/Source/WebCore/css/CSSKeyframesRule.cpp
r210758 r217227 106 106 auto keys = CSSParser::parseKeyframeKeyList(key); 107 107 108 if (!keys) 109 return notFound; 110 108 111 for (size_t i = m_keyframes.size(); i--; ) { 109 112 if (m_keyframes[i]->keys() == *keys)
Note: See TracChangeset
for help on using the changeset viewer.