/src/main/java/org/htmlunit/html/HtmlPage.java
final org.htmlunit.TopLevelWindow topWindow =((org.htmlunit.TopLevelWindow)(enclosingWindow)); final org.htmlunit.WebWindow openerWindow = topWindow.getOpener(); if((openerWindow != null) &&((openerWindow.getEnclosedPage()) != null)) {  baseUrl_ = openerWindow.getEnclosedPage().getWebResponse().getWebRequest().getUrl();};
if ( enclosingWindow instanceof TopLevelWindow ) { final TopLevelWindow topWindow = ( TopLevelWindow ) enclosingWindow; final WebWindow openerWindow = topWindow.getOpener ( ) ; if ( openerWindow != null && openerWindow.getEnclosedPage ( ) != null ) { baseUrl_ = openerWindow.getEnclosedPage ( ) .getWebResponse ( ) .getWebRequest ( ) .getUrl ( ) ; }
final boolean isAboutBlank = getUrl() == UrlUtils.URL_ABOUT_BLANK; if (isAboutBlank) { if (enclosingWindow instanceof FrameWindow && !((FrameWindow) enclosingWindow).getFrameElement().isContentLoaded()) { return; } <extra_id_0> } } } if (!isAboutBlank) { setReadyState(READY_STATE_INTERACTIVE); getDocumentElement().setReadyState(READY_STATE_INTERACTIVE);