Advanced build refuses keys in background tabs with about:blank or srcdoc frames

Aperta
#27 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
30/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
devtools, security

Direzione di ricerca

Start with the key-routing check that requires every frame owner to hold a readable document of the granted main origin, then the CDP adapter unit tests in tests/unit/browser/cdp-adapter.test.ts. Work out how about:blank and srcdoc frames should inherit their parent's origin, and keep refusing when the document is missing or any ancestor is not granted. Done means the unit tests cover both cases and an e2e page with a blank editor iframe in a background tab routes keys correctly.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

ai-handle enhancement

Problem

In the Advanced build, when no accessibility tree shows focus (always the case for the page itself in a background agent tab), a key goes to the main document only if every frame owner on the page holds a readable document of the granted main origin. Frames whose document is about:blank or srcdoc have no origin in the frame tree, so they fail this check. Pages that use blank iframes as editors (CKEditor 4, TinyMCE in iframe mode) or empty ad slots therefore refuse every key in a background tab with origin_not_granted. This is safe (it never lets a key through) but blocks real pages.

Expected

  • Treat an about:blank / srcdoc frame as same-origin with its parent when Chrome returned its document to the session (same process) and the parent chain up to the main frame is granted, matching the HTML origin inheritance rule.
  • Keep refusing when the document is missing (out of process) or any ancestor is not granted.
  • Unit tests in tests/unit/browser/cdp-adapter.test.ts and an e2e page with a blank editor iframe in a background tab.

Found in review of #18.

Lingua principale
TypeScript
Stelle
2
Fork
1
Merge medio
2g 5h
PR unite (30g)
4

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di nextlevelbuilder/dewee-chrome-ext

Tutte le issue di nextlevelbuilder/dewee-chrome-ext

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.