Quantcast

[HtmlUnit] SVN: [14434] trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/ WebClient.java

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: [14434] trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/ WebClient.java

asashour-2
Revision: 14434
          http://sourceforge.net/p/htmlunit/code/14434
Author:   asashour
Date:     2017-05-11 08:05:46 +0000 (Thu, 11 May 2017)
Log Message:
-----------
Fix Nashorn usage, thanks to Ronald

Modified Paths:
--------------
    trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/WebClient.java

Modified: trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/WebClient.java
===================================================================
--- trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/WebClient.java 2017-05-11 06:56:35 UTC (rev 14433)
+++ trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/WebClient.java 2017-05-11 08:05:46 UTC (rev 14434)
@@ -808,7 +808,7 @@
                         ((HtmlPage) enclosedPage).setFocusedElement(activeElement.getDomNodeOrDie(), true);
                     }
                 }
-                else {
+                else if (jsWindow instanceof Window2) {
                     final HTMLElement2 activeElement =
                             ((HTMLDocument2) Window2.getDocument(jsWindow)).getActiveElement();
                     if (activeElement != null) {


------------------------------------------------------------------------------
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...