dydx: inferno-sec, kling: For bug #75978, did you consider defining a NullifyOnReturn RAII object such that it can be used to clear m_stylesheet on destruction? [09:49am] dydx: inferno-sec, kling: The function XSLTProcessor::transformToString() is reasonably sized (79 lines long) and there seems to be a explicit ordering for using m_stylesheet [09:49am] inferno-sec: dydx: that XSLTProcessorLibxslt needs to maintain a ref to the stylesheet for callback [09:51am] dydx: inferno-sec: ok, and ... [09:51am] kling: dydx: inferno-sec: we could do that. i didn't think this case was exactly screaming for a special solution like that, but your idea is good [09:52am] dydx: kling: For your consideration, I suggest such a solution since this function seems to have an ordering dependency due to callback nature and it's reasonable long.
Came after discussion from fix in https://bugs.webkit.org/show_bug.cgi?id=75978
Don't we already have some sort of NullifyOnReturn WTF object?
I think I was thinking of http://trac.webkit.org/browser/trunk/Source/JavaScriptCore/wtf/TemporaryChange.h