/src/main/java/org/htmlunit/html/BaseFrameElement.java
final URL encUrl = UrlUtils.encodeUrl( url, window.getWebClient( ).getAttributeDirect( ).hasFeature( URL_MINIMAL_QUERY_ENCODING) , charset) ;
final URL encUrl = UrlUtils.encodeUrl ( url, window.getWebClient ( ) .getBrowserVersion ( ) .hasFeature ( URL_MINIMAL_QUERY_ENCODING ) , charset ) ;
int nesting = 0; while (window instanceof FrameWindow) { nesting++; if (nesting > 9) { return true; } <extra_id_0> if (UrlUtils.sameFile(encUrl, window.getEnclosedPage().getUrl())) { return true; } if (window == window.getParentWindow()) { window = null; }