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

未关闭
#263 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
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 小时
30 天内合并 PR
15

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

internetarchive/elements 的其他 Issue

查看 internetarchive/elements 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。