Changeset 214915 in webkit
- Timestamp:
- Apr 4, 2017 5:05:27 PM (7 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r214913 r214915 1 2017-04-04 Brent Fulgham <bfulgham@apple.com> 2 3 Do not assert when CharacterData representing an Attr fires events 4 https://bugs.webkit.org/show_bug.cgi?id=170454 5 <rdar://problem/30979320> 6 7 Reviewed by Ryosuke Niwa. 8 9 * fast/dom/no-assert-for-malformed-js-url-attribute-expected.txt: Added. 10 * fast/dom/no-assert-for-malformed-js-url-attribute.html: Added. 11 1 12 2017-04-04 Youenn Fablet <youenn@apple.com> 2 13 -
trunk/Source/WebCore/ChangeLog
r214913 r214915 1 2017-04-04 Brent Fulgham <bfulgham@apple.com> 2 3 Do not assert when CharacterData representing an Attr fires events 4 https://bugs.webkit.org/show_bug.cgi?id=170454 5 <rdar://problem/30979320> 6 7 Reviewed by Ryosuke Niwa. 8 9 Make the NoEventDispatchAssertion in CharacterData::notifyParentAfterChange conditional 10 since Attr elements should be allowed to fire events. 11 12 Tests: fast/dom/no-assert-for-malformed-js-url-attribute.html 13 14 * dom/CharacterData.cpp: 15 (WebCore::CharacterData::notifyParentAfterChange): 16 1 17 2017-04-04 Youenn Fablet <youenn@apple.com> 2 18 -
trunk/Source/WebCore/dom/CharacterData.cpp
r211965 r214915 23 23 #include "CharacterData.h" 24 24 25 #include "Attr.h" 25 26 #include "ElementTraversal.h" 26 27 #include "EventNames.h" … … 209 210 void CharacterData::notifyParentAfterChange(ContainerNode::ChildChangeSource source) 210 211 { 211 NoEventDispatchAssertion assertNoEventDispatch; 212 #if !ASSERT_DISABLED 213 auto assertNoEventDispatch = std::make_unique<NoEventDispatchAssertion>(); 214 #endif 212 215 213 216 document().incDOMTreeVersion(); … … 222 225 source 223 226 }; 227 228 #if !ASSERT_DISABLED 229 // Attribute CharacterData is expected to fire events. 230 if (is<Attr>(*parentNode())) 231 assertNoEventDispatch = nullptr; 232 #endif 233 224 234 parentNode()->childrenChanged(change); 225 235 }
Note: See TracChangeset
for help on using the changeset viewer.