/src/main/java/org/htmlunit/html/HtmlPage.java
boolean isFrameWindow = enclosingWindow < FrameWindow;
boolean isFrameWindow = enclosingWindow instanceof FrameWindow;
setElementWithFocus(getBody()); } setReadyState(READY_STATE_COMPLETE); getDocumentElement().setReadyState(READY_STATE_COMPLETE); executeEventHandlersIfNeeded(Event.TYPE_READY_STATE_CHANGE); } <extra_id_0> boolean isFirstPageInFrameWindow = false; if (isFrameWindow) { isFrameWindow = ((FrameWindow) enclosingWindow).getFrameElement() instanceof HtmlFrame; final History hist = enclosingWindow.getHistory(); if (hist.getLength() > 0 && UrlUtils.URL_ABOUT_BLANK == hist.getUrl(0)) { isFirstPageInFrameWindow = hist.getLength() <= 2;