bitwarden / bitwarden/clients

`TypeError: "create" is read-only` logged to Browser DevTools console

Open
#11,639 4 comments 0 reactions 0 assignees View on GitHub
browser bug
Dominant language
TypeScript
Stars
13.8k
Forks
2k
Avg merge
3d 15h
Merged PRs (30d)
389

Description

### Steps To Reproduce

1. Go to any page
2. Open the Browser DevTools

### Expected Result

No error in the console.

### Actual Result

`TypeError: "create" is read-only` coming from `fido2-page-script.js:449` is logged to the Browser console.
This is the line triggering the error: `navigator.credentials.create = createWebAuthnCredential;`

### Screenshots or Videos

![image](https://github.com/user-attachments/assets/573eeaf5-2e0c-4b37-a0a1-c388a3e4eeb5)

### Additional Context

_No response_

### Operating System

Linux

### Operating System Version

Linux Mint 22

### Web Browser

Firefox

### Browser Version

131.0.3 (64-bit)

### Build Version

2024.10.0

### Issue Tracking Info

- [X] I understand that work is tracked outside of Github. A PR will be linked to this issue should one be opened to address it, but Bitwarden doesn't use fields like "assigned", "milestone", or "project" to track progress.

Contributor guide

Open the contributing guide

Research direction

Start by inspecting fido2-page-script.js around line 449, where navigator.credentials.create is assigned, and reproduce the issue in Firefox DevTools using the listed browser and build versions if available. Done means opening any page and the Browser DevTools without the read-only TypeError appearing in the console.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
authentication
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.