Skip to content

fix(mobile): prevent crash with certain bookmark attributes#2654

Draft
xuatz wants to merge 1 commit intomainfrom
claude/issue-2596-20260321-1401
Draft

fix(mobile): prevent crash with certain bookmark attributes#2654
xuatz wants to merge 1 commit intomainfrom
claude/issue-2596-20260321-1401

Conversation

@xuatz
Copy link
Copy Markdown
Collaborator

@xuatz xuatz commented Apr 5, 2026

Fixes #2596

Changes

  • In crawlerWorker, check content-type from response headers before downloading the full file body. Return null early (with a warning log) for unsupported content types like image/svg+xml, avoiding wasted bandwidth and changing the log from error to warn level.
  • In mobile BookmarkCard, filter out external SVG URLs before passing to expo-image, which does not support SVG and crashes on Android.

Generated with Claude Code

… handling

- In crawlerWorker, check content-type from response headers before
  downloading the full file body. Return null early (with a warning log)
  for unsupported content types like image/svg+xml, avoiding wasted
  bandwidth and changing the log from error to warn level.

- In mobile BookmarkCard, filter out external SVG URLs before passing to
  expo-image, which does not support SVG and crashes on Android when an
  SVG imageUrl is encountered.

Fixes #2596

Co-authored-by: Mohamed Bassem <MohamedBassem@users.noreply.github.com>
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Apr 5, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 7f5bc3b0-d3a7-473e-a9d9-ae72c742c9b2

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@MohamedBassem MohamedBassem modified the milestones: 0.31.0, 0.32.0 Apr 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Specific bookmark causes Android app to crash

2 participants