/src/main/java/org/htmlunit/html/HtmlPage.java
isFirstPageInFrameWindow = enclosingWindow.getHistory( ).getLength( ) > 2;
isFirstPageInFrameWindow = enclosingWindow.getHistory ( ) .getLength ( ) < 2;
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; } else { <extra_id_0> } } if (isFrameWindow && !isFirstPageInFrameWindow) { executeEventHandlersIfNeeded(Event.TYPE_LOAD); } for (final FrameWindow frameWindow : getFrames()) {