We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 195101d commit 51a4824Copy full SHA for 51a4824
1 file changed
src/main/java/org/htmlunit/html/HtmlLink.java
@@ -30,7 +30,6 @@
30
import org.htmlunit.WebResponse;
31
import org.htmlunit.css.CssStyleSheet;
32
import org.htmlunit.cssparser.dom.MediaListImpl;
33
-import org.htmlunit.javascript.AbstractJavaScriptEngine;
34
import org.htmlunit.javascript.PostponedAction;
35
import org.htmlunit.javascript.host.event.Event;
36
import org.htmlunit.javascript.host.html.HTMLLinkElement;
@@ -325,9 +324,8 @@ public void execute() {
325
324
}
326
};
327
328
- final AbstractJavaScriptEngine<?> engine = webClient.getJavaScriptEngine();
329
if (postponed) {
330
- engine.addPostponedAction(action);
+ webClient.getJavaScriptEngine().addPostponedAction(action);
331
332
else {
333
try {
0 commit comments