Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Endless loop when opening this url?

オープン
#942 コメント 16 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
java, javascript
領域
backend

調査の方向性

Start by reproducing the hang with the provided Java snippet and URL, then trace HtmlUnit's page-loading and JavaScript execution behavior for endlessly scrolling pages. The issue does not name a source file or test; identify an existing loading or scrolling test to extend. Done means the page load terminates without preventing the intended scroll test.

索引モデルが issue の本文から書いたものです。

説明

When opening https://en.js.cx/task/endless-page/solution/ htmlunit gets stuck, probably loading the endlessly scrolling page forever.

Its interesting the driver itself never times out, it just keeps going. Had waits set up after driver get but those were never reached.


driver = new HtmlUnitDriver(BrowserVersion.FIREFOX, true) {
            @Override
            protected WebClient modifyWebClient(WebClient client) {
                final WebClient webClient = super.modifyWebClient(client);
                WebClientOptions options = webClient.getOptions();
                options.setCssEnabled(true);
                options.setThrowExceptionOnScriptError(false);
                webClient.setJavaScriptErrorListener(new SilentJavaScriptErrorListener());
                return webClient;
            }
        }

driver.get("https://en.js.cx/task/endless-page/solution/");

My goal was to trigger the scroll via scroll into view, but never reached that phase.

((JavascriptExecutor) driver).executeScript("arguments[0].scrollIntoView();",driver.findElement(lastElement));

I wanted to set up a test case for scroll not working correctly and found this bug instead.

Assume its due to htmlunit not having a ui and triggering scroll on the page due to showing the last element.

Can open the page in Firefox fine.

Image

主要言語
JavaScript
スター
952
フォーク
183
平均マージ
2日 1時間
マージ済み PR(30日)
1

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

HtmlUnit/htmlunit のほかの issue

HtmlUnit/htmlunit の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。