or come up with a better fix.
I can reproduce the crash on ToT WebKit.
Certain libxslt versions appear to leave the doc in an invalid state when parsing fails. We should cache this result and avoid re-parsing.
(The test cannot be converted to text-only due to its invalid stylesheet).
> (The test cannot be converted to text-only due to its invalid stylesheet).
This is likely untrue. Should be possible to do that with a subframe or separate window.
I think this has been fixed by adding Blink changes though bit differently.
I looked for "m_compilationFailed" within XSLStyleSheet.h and XSLStyleSheetLibxslt.cpp within Webkit Github mirror as below and it is present.
XSLStyleSheet.h - https://github.com/WebKit/WebKit/blob/0393f2f7c7a1e97a7a4c63441b50703cc11d493f/Source/WebCore/xml/XSLStyleSheet.h
XSLStyleSheetLibxslt.cpp - https://github.com/WebKit/WebKit/blob/0393f2f7c7a1e97a7a4c63441b50703cc11d493f/Source/WebCore/xml/XSLStyleSheetLibxslt.cpp
Unless if there is anything else or I looked incorrectly, I think this was fixed. Thanks!
The test doesn't crash Safari any more, so all must be good.