Repository navigation
本の連続切替とWebKitのサイズ監視を安定させる - #18
Merged
Merged
Conversation
yo4e
marked this pull request as ready for review
October 26, 2026 06:59
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
本を続けて切り替えた際、WebKitが共通の samples/index.json の中断直後の再取得に失敗することがありました。サンプル一覧の取得Promiseをホスト内で共有し、個々の本の中断から分離します。原稿・画像は引き続き各本のsignalで中断し、一覧の取得失敗は次の呼出しで再試行できます。
また、スクロール領域内部をResizeObserverで監視すると、空のcallbackでもWebKitで通知ループが再現しました。監視対象をホストが寸法を与えるreader外枠へ移し、状態変化・原稿パネルの開閉では測定を明示的に予約します。位置イベントの次フレームへの集約とdestroy時の解除は維持します。
検証: lint・strict型検査・Node 98件・buildが成功。既存のWebKit高速切替20回、ホスト中断/再生成とリサイズ通知各40回(計80件)に成功。全72件もルートと /YomPUB/ サブパスの両方で成功。GitHub CIを確認してからmergeします。新しいNode回帰は並列呼出しと中断、一覧の失敗後再取得、原稿取得の中断と復帰を検証します。
Core・原稿・表示設定の仕様は変更しません。CI失敗をskipしたりエラーを無視する変更はありません。失敗traceと検証経緯は docs/VALIDATION.md に記録しています。
Follows #17