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