Skip to content

Harper breaks search on Discord website on Firefox #2060

@atkirtland

Description

@atkirtland

Describe the bug

When I type certain strings on the Discord web search, the website crashes halfway through inputting the string. E.g. it crashes at 'e' in "qwerty" and 'v' in "never", but it allows me to type "cat" and "dog".

To Reproduce
Steps to reproduce the behavior:

  1. Open the Discord website on Firefox
  2. Try to type certain strings in the server search box.
  3. Discord crashes, and the terminal message given in "Additional context" is displayed.

Expected behavior

Be able to type full words in the search box.

Platform

Firefox on Ubuntu 24.04

Additional context

The error given in the terminal is

Error: invariant(...): Second argument must be a string.
    t https://discord.com/assets/web.a1bebe27deb4a672.js:1
    exports https://discord.com/assets/web.a1bebe27deb4a672.js:1
    _setSelection https://discord.com/assets/web.a1bebe27deb4a672.js:1
    componentDidUpdate https://discord.com/assets/web.a1bebe27deb4a672.js:1
    sa https://discord.com/assets/web.a1bebe27deb4a672.js:12
    sb https://discord.com/assets/web.a1bebe27deb4a672.js:12
    sa https://discord.com/assets/web.a1bebe27deb4a672.js:12
    sb https://discord.com/assets/web.a1bebe27deb4a672.js:12

   ... (the above 2 lines are alternated many times repeatedly)

[sentry.62598dc9e7819ab1.js:14:2202](https://discord.com/assets/sentry.62598dc9e7819ab1.js)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcrash

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions