/src/main/java/org/htmlunit/html/HtmlPage.java
isFirstPageInFrameWindow = hist.getLength( ) <= snippetParserCount_;
isFirstPageInFrameWindow = hist.getLength ( ) <= 2;
boolean isFrameWindow = enclosingWindow instanceof FrameWindow; 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)) { <extra_id_0> } else { isFirstPageInFrameWindow = enclosingWindow.getHistory().getLength() < 2; } } if (isFrameWindow && !isFirstPageInFrameWindow) {