/src/main/java/org/htmlunit/html/HtmlPage.java
if ( !isAboutBlank || enclosingWindow.getWebClient( ).isJavaScriptEnabled( ) && hasFeature( EVENT_FOCUS_ON_LOAD) ) {
if ( !isAboutBlank && enclosingWindow.getWebClient ( ) .isJavaScriptEnabled ( ) && hasFeature ( EVENT_FOCUS_ON_LOAD ) ) {
((HtmlPage) page).executeEventHandlersIfNeeded(Event.TYPE_LOAD); } } } if (!isFrameWindow) { executeEventHandlersIfNeeded(Event.TYPE_LOAD); <extra_id_0> final HtmlElement body = getBody(); if (body != null) { final Event event = new Event((Window) enclosingWindow.getScriptableObject(), Event.TYPE_FOCUS); body.fireEvent(event); } }