I also found this old tread
http://jenkins-ci.361315.n4.nabble.com/Why-is-Jenkins-using-a-HtmlUnit-fork-td4761630.html
 
<http://jenkins-ci.361315.n4.nabble.com/Why-is-Jenkins-using-a-HtmlUnit-fork-td4761630.html>

and the corresponding PR:
- https://github.com/jenkinsci/jenkins/pull/1774 
<https://github.com/jenkinsci/jenkins/pull/1774>

The PR is marked as merged, however we still have the dependency to our forked 
HTMLUnit version. Any ideas?

> Am 03.05.2018 um 22:37 schrieb Ullrich Hafner <[email protected]>:
> 
> Hmm, while trying to update I found some interesting files:
> https://github.com/jenkinsci/jenkins-test-harness/tree/master/src/main/java/com/gargoylesoftware/htmlunit
>  
> <https://github.com/jenkinsci/jenkins-test-harness/tree/master/src/main/java/com/gargoylesoftware/htmlunit>
> 
> Did Tom already try that? And never finished it? Or what is the state of 
> these changes?
> 
>> Am 02.05.2018 um 09:47 schrieb Oleg Nenashev <[email protected] 
>> <mailto:[email protected]>>:
>> 
>> 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 
>> <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 
>> <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 
>> <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] 
>> <mailto:[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
>>  
>> <https://groups.google.com/d/msgid/jenkinsci-dev/0bdcab17-cd0a-4253-b71c-17afcbc8c96b%40googlegroups.com?utm_medium=email&utm_source=footer>.
>> For more options, visit https://groups.google.com/d/optout 
>> <https://groups.google.com/d/optout>.
> 

-- 
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/D02F21B3-5CC1-4D97-B714-1C20E9991B68%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Attachment: signature.asc
Description: Message signed with OpenPGP

Reply via email to