Skip to content

Embeds image previews make Sable crash: Error: Cannot read properties of undefined (reading 'toLowerCase') #1046

Description

@LuckiestVenus

Describe the bug

When embeds are active (tested with everything turned on), some of the links make Sable crash.

Reproduction

  1. Test many links that are able to show an embed
  2. Crash
  3. This is one of the many links that crash Sable: https://pbs.twimg.com/media/HEiKecqaoAACxYN?format=jpg

Expected behavior

No response

Platform and versions

- OS: Linux x86_64
- Browser: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Sable/0.0.1 Chrome/144.0.7559.177 Electron/40.6.0 Safari/537.36
- Sable: v1.19.2 (04892f5)

Additional context

Automated Bug Report

Error occurred in the application.

Error Message

Cannot read properties of undefined (reading 'toLowerCase')

Stacktrace

TypeError: Cannot read properties of undefined (reading 'toLowerCase')
    at https://app.sable.moe/assets/index-B-V8WaO3.js:118018:395
    at JB (https://app.sable.moe/assets/index-B-V8WaO3.js:24664:156)
    at Qte (https://app.sable.moe/assets/index-B-V8WaO3.js:25295:28)
    at Ine (https://app.sable.moe/assets/index-B-V8WaO3.js:27228:90)
    at Dne (https://app.sable.moe/assets/index-B-V8WaO3.js:26926:15)
    at hIe (https://app.sable.moe/assets/index-B-V8WaO3.js:26920:29)
    at s9 (https://app.sable.moe/assets/index-B-V8WaO3.js:26910:11)
    at wL (https://app.sable.moe/assets/index-B-V8WaO3.js:26698:83)
    at Ene (https://app.sable.moe/assets/index-B-V8WaO3.js:26651:59)
    at T (https://app.sable.moe/assets/index-B-V8WaO3.js:21765:24)
    at MessagePort.W (https://app.sable.moe/assets/index-B-V8WaO3.js:21790:17)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions