I would just update it in JTH if newer versions are [more-or-less] compatible. It is a development tool, so we can afford some breakages when plugin parent POM gets updated.
I do not remember why the fork was needed tho. BR, Oleg On Wednesday, May 2, 2018 at 12:39:27 AM UTC+2, Ullrich Hafner wrote: > > I stumbled again about an old patched version of a library that is > included in Jenkins (Jenkins Test Harness module): > org.jenkins-ci.main:jenkins-test-harness-htmlunit:2.18-1 The release is > from 2015, it does not work with modern JS frameworks. Is there a simple > workaround to replace it with a newer version? > > With the 2015 version I get the following error when jquery is loading: > > EcmaError: lineNumber=[2] column=[0] lineSource=[<no source>] > name=[TypeError] sourceName=[https://code.jquery.com/jquery-3.3.1.min.js] > message=[TypeError: Cannot find function createHTMLDocument in object > [object DOMImplementation]. (https://code.jquery.com/jquery-3.3.1.min.js#2) > > ] > com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot find > function createHTMLDocument in object [object DOMImplementation]. ( > https://code.jquery.com/jquery-3.3.1.min.js#2) > at > com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:865) > > > at > net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:628) > > I can deactivate JS, this helps at least to prevent the error. But I’m not > sure what else is missing though... > -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/0bdcab17-cd0a-4253-b71c-17afcbc8c96b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
