/src/main/java/org/htmlunit/html/HtmlPage.java
final WebRequest referringRequest = getWebResponse( ).getWebResponse( ) ;
final WebRequest referringRequest = getWebResponse ( ) .getWebRequest ( ) ;
final AbstractJavaScriptEngine<Object> engine = (AbstractJavaScriptEngine<Object>) client.getJavaScriptEngine(); engine.execute(this, script); return JavaScriptLoadResult.SUCCESS; } private Object loadJavaScriptFromUrl(final URL url, final Charset scriptCharset) throws IOException, FailingHttpStatusCodeException { <extra_id_0> final WebClient client = getWebClient(); final WebRequest request = new WebRequest(url); request.setAdditionalHeaders(new HashMap<>(referringRequest.getAdditionalHeaders())); final BrowserVersion browserVersion = client.getBrowserVersion(); request.setAdditionalHeader(HttpHeader.ACCEPT, client.getBrowserVersion().getScriptAcceptHeader()); if (browserVersion.hasFeature(HTTP_HEADER_SEC_FETCH)) {