Quantcast

[HtmlUnit] SVN: [13835] branches/huThread/htmlunit/src/main/java/com/gargoylesoftware /htmlunit

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[HtmlUnit] SVN: [13835] branches/huThread/htmlunit/src/main/java/com/gargoylesoftware /htmlunit

asashour-2
Revision: 13835
          http://sourceforge.net/p/htmlunit/code/13835
Author:   asashour
Date:     2017-03-20 07:15:07 +0000 (Mon, 20 Mar 2017)
Log Message:
-----------
thread: update

Modified Paths:
--------------
    branches/huThread/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/WebClient.java
    branches/huThread/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/html/DomElement.java

Modified: branches/huThread/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/WebClient.java
===================================================================
--- branches/huThread/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/WebClient.java 2017-03-20 07:11:58 UTC (rev 13834)
+++ branches/huThread/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/WebClient.java 2017-03-20 07:15:07 UTC (rev 13835)
@@ -498,8 +498,7 @@
         WebAssert.notNull("webResponse", webResponse);
         WebAssert.notNull("webWindow", webWindow);
 
-        if (webResponse.getStatusCode() == HttpStatus.SC_NO_CONTENT
-                || scriptEngine_ == null) {
+        if (webResponse.getStatusCode() == HttpStatus.SC_NO_CONTENT) {
             return webWindow.getEnclosedPage();
         }
 
@@ -1837,7 +1836,6 @@
         // start a new window that will start the thread again
         if (scriptEngine_ != null) {
             scriptEngine_.shutdown();
-            scriptEngine_ = null;
         }
 
         try {

Modified: branches/huThread/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/html/DomElement.java
===================================================================
--- branches/huThread/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/html/DomElement.java 2017-03-20 07:11:58 UTC (rev 13834)
+++ branches/huThread/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/html/DomElement.java 2017-03-20 07:15:07 UTC (rev 13835)
@@ -1390,10 +1390,6 @@
             }
         };
 
-        final JavaScriptEngine engine = client.getJavaScriptEngine();
-        if (engine == null) {
-            return null;
-        }
         final ContextFactory cf = client.getJavaScriptEngine().getContextFactory();
         final ScriptResult result = (ScriptResult) cf.call(action);
         if (event.isAborted(result)) {


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
HtmlUnit-develop mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/htmlunit-develop
Loading...