feat(browser): accept internationalized sites in the connected browser grant form

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

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
Mezza giornata
Idoneità per principianti
70/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
frontend

Direzione di ricerca

Start in src/sidepanel/browser/GrantForm.tsx and find the host validation that rejects https://bücher.example. Convert the accepted input with new URL(input).origin, and show both the Unicode and punycode forms when they differ. Keep the existing refusals for trailing dots, hosts over 253 characters, paths, wildcards and non-loopback http. Done when unit tests cover a Unicode host, a mixed-case host and an already-punycode host, and invalid input is still refused.

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

Descrizione

ai-handle enhancement

Problem

The connected browser grant form (src/sidepanel/browser/GrantForm.tsx) refuses an internationalized site typed as the person sees it, for example https://bücher.example, with "not a valid address". The relay contract requires origins in punycode (https://xn--bcher-kva.example, the form URL.origin gives), and the Gateway refuses a non-canonical origin rather than rewriting it.

Expected

  • The form accepts a Unicode host, converts it with new URL(input).origin, and shows the person the exact origin it will allow (both forms when they differ), so nothing is rewritten silently.
  • Invalid input is still refused. Trailing dots, hosts over 253 characters, paths, wildcards and non-loopback http stay refused.
  • Unit tests cover a Unicode host, a mixed-case host and an already-punycode host.

Found during the review of #17.

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.