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

Open
#14,871 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
44/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
javascript

Research direction

The issue identifies a form and an ia-button class="submit-btn" inside nested shadow roots under app-root and login-page, but gives no source files or tests. Start by tracing the login page component and how its submit button handles clicks, then reproduce the failure in Firefox. Done means clicking Log in submits valid credentials and produces the expected login behavior.

Written by the indexing model from the issue text.

Description

Needs: Breakdown Needs: Lead Needs: Staff / Internal Needs: Staff Decision Needs: Triage
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.
Dominant language
Python
Stars
7k
Forks
2.1k
Avg merge
22h 25m
Merged PRs (30d)
384

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from internetarchive/openlibrary

All issues in internetarchive/openlibrary

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.