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

オープン
#263 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
typescript

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.
主要言語
TypeScript
スター
18
フォーク
5
平均マージ
1日 16時間
マージ済み PR(30日)
15

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

internetarchive/elements のほかの issue

internetarchive/elements の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。