Skip to content
This repository was archived by the owner on Nov 22, 2026. It is now read-only.

Decode base64 without the deprecated Qt.atob (C-082) - #65

Draft
dreinecke wants to merge 1 commit into
feat/c080-normal-appfrom
fix/c082-atob
Draft

dreinecke wants to merge 1 commit into
feat/c080-normal-appfrom
fix/c082-atob

Conversation

@dreinecke

Copy link
Copy Markdown
Collaborator

Qt 6.12 deprecates the string form of Qt.atob. This moves Mail's two uses onto the JavaScript decoder in ui/message/Message.js that its tests already cover:

  • Message.decodeBase64Url no longer tries Qt.atob first.
  • Importing an HTML signature in Settings decodes with it. A file larger than any signature the engine accepts is refused before decoding, so a large file can't stall the window.

Tests: an HTML import test that checks the engine receives decoded text, an oversized-file test, more UTF-8 cases, and a source check that keeps Qt.atob out of ui/ and app/qml/. Each new test fails against the old code. make validate passes.

🤖 Generated with Claude Code

https://claude.ai/code/session_01FLvc6ysxJTzP72yY4diHA3

Qt 6.12 deprecates the string form of Qt.atob. Mail's base64 decoding
now always uses its own JavaScript decoder, which its tests already
cover, and importing an HTML signature uses it too. A file too large to
ever fit in a signature is refused before it is decoded, and a check
keeps Qt.atob out of the app's code.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FLvc6ysxJTzP72yY4diHA3
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant