Focus and style reads still run in the page's own world
メンテナーはふだん 1 日以内に返信
関連するプルリクエストがすでにマージされています。
- #341 @eparenti による — マージ済み
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 55/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- playwright, typescript
- 領域
- accessibility, testing
調査の方向性
Start with focusBody, activeElementIs, activeElementWithin, and the getComputedStyle reads in src/deps/real.ts, then trace how element paths and announcement capture run in isolated worlds. Add tests where page scripts redefine each function used by these reads. Done means the reads run in an isolated world and the tests show page redefinitions cannot falsify focus or style checks.
索引モデルが issue の本文から書いたものです。
説明
What happens
Some page reads still run in the page's own JavaScript world: focusBody, activeElementIs, activeElementWithin, and the getComputedStyle reads in src/deps/real.ts. Page script can redefine document.querySelector or getComputedStyle, and then a focus check reports whatever the page wants.
Why it matters
Page text and page script are untrusted. Element paths and the announcement capture now run in isolated worlds. These reads should too, or a hostile page can pass a keyboard or focus check it fails.
Expected
Run these reads in the same kind of isolated world, and add a test for a page that redefines each function it uses.
Status
Found while moving element paths and the announcement capture into isolated worlds. The threat model lists it as not handled yet.
- 主要言語
- TypeScript
- スター
- 0
- フォーク
- 0
- 平均マージ
- 6時間 42分
- マージ済み PR(30日)
- 44
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
usabl-dev/usabl のほかの issue
-
area: engine enhancement performance
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
Scan browser runs without Chromium's sandbox対応中かも @eparenti が今日担当しました。 オープンarea: engine security
難易度 4/5 3〜5日 初心者へのやさしさ 46/100
メンテナーはふだん 1 日以内に返信
-
area: engine enhancement performance
難易度 4/5 1〜2日 初心者へのやさしさ 45/100
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
メンテナーはふだん 1 日以内に返信
-
area: engine enhancement performance
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
メンテナーはふだん 1 日以内に返信
usabl-dev/usabl の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
area:web p3
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
Lets-Parley/Parley#912 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
wealthfolio/wealthfolio#2376 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
be-BOP-io-SA/be-BOP#2817 ·
メンテナーはふだん 5 日以内に返信
-
documentation good first issue
難易度 1/5 1〜3時間 初心者へのやさしさ 84/100
sno-ai/sno-station#149 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信