Login button on /login does not respond to clicks (form.requestSubmit() works)

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

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

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

Direzione di ricerca

Start by tracing the login form and ia-button click handling in the repository’s web components; the issue names no source files or tests. Reproduce the Firefox failure and compare clicking the button with the working form.requestSubmit() workaround, then inspect whether the reported console errors affect submission. Done when clicking Log in submits the valid form and the behavior is covered by a regression test.

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

Descrizione

Problem

The “Log in” button on [archive.org/login](https://archive.org/login) does nothing when clicked. The form is valid and can be submitted programmatically, but the button’s click handler never fires. Console shows multiple Google Sign-In / CSP / CORS errors on page load that appear related.

Reproducing the bug
  1. Go to [archive.org/login](https://archive.org/login)
  2. Enter a valid email and password
  3. Click the “Log in” button
  • Expected behavior: Form submits and the user is logged in
  • Actual behavior: Nothing happens. No network request, no error message

Workaround that succeeds in the console:

document.querySelector('app-root').shadowRoot
  .querySelector('login-page').shadowRoot
  .querySelector('form')
  .requestSubmit();

Calling .click() on the ia-button class="submit-btn" also does nothing.

Context
  • Browser (Chrome, Safari, Firefox, etc): Firefox
  • OS (Windows, Mac, etc): Windows
  • Logged in (Y/N): N
  • Environment (prod, dev, local): prod

Relevant console errors on load include CSP blocks on inline scripts, google.accounts.id.initialize() called multiple times, CORS failures to play.google.com/log, and MIME-type issues from apollo.archive.org. The button is an ia-button class="submit-btn" inside nested shadow roots under app-root, login-page.

Breakdown
Implementation Details (for maintainers)
Requirements Checklist
Related files
Stakeholders

Instructions for Contributors
  • Please run these commands to ensure your repository is up to date before creating a new branch to work on this issue and each time after pushing code to Github, because the pre-commit bot may add commits to your PRs upstream.
Lingua principale
TypeScript
Stelle
18
Fork
5
Merge medio
1g 16h
PR unite (30g)
15

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 internetarchive/elements

Tutte le issue di internetarchive/elements

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.