Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

All pages show error JavaScript promise rejection: Cannot set properties of null (setting 'textContent'). #31675

Closed
wolfogre opened this issue Jul 23, 2024 · 0 comments · Fixed by #31676 or #31691
Labels
issue/regression Issue needs no code to be fixed, only a description on how to fix it yourself topic/ui Change the appearance of the Gitea UI type/bug

Comments

@wolfogre
Copy link
Member

wolfogre commented Jul 23, 2024

Description

image

How to reproduce

  1. Start Gitea WITHOUT a Secure contexts, like http://192.168.85.1:3000/
    • No https.
    • No 127.0.0.1, localhost, *.localhost
  2. Visit the sign-in page, and you will see a right warning about WebAuthn:
image
  1. And visit any other pages (even the home page), you will see:
image image

Possible causes

It seems introduced by

  1. After #31504, every page will run detectWebAuthnSupport
image
  1. And it emits error insecure
image
  1. But it's not sign-in page, it cannot get #webauthn-error-msg, so it shows a strange error.
image

Gitea Version

main (ad91a59)

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

Command line.

Database

None

@wolfogre wolfogre added type/bug topic/ui Change the appearance of the Gitea UI issue/regression Issue needs no code to be fixed, only a description on how to fix it yourself labels Jul 23, 2024
@wolfogre wolfogre reopened this Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue/regression Issue needs no code to be fixed, only a description on how to fix it yourself topic/ui Change the appearance of the Gitea UI type/bug
Projects
None yet
1 participant