Chromium Code Reviews
DescriptionMake TreeScopeEventContext have a RefPtr to TreeScope.rootNode to guard TreeScope.
This fixes a use-after-free caused by TreeScope being freed while TreeScopeEventContext still needs it.
Because TreeScope itself isn't a RefCounted, guard it by having a RefPtr to treeScope.rootNode(), instead.
BUG=442806
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=187435
Patch Set 1 #
Total comments: 2
Patch Set 2 : Yet another miinimization #
Messages
Total messages: 7 (2 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||