Repository navigation
Drop the charset checks and file bridge the core made obsolete - #789
Merged
Merged
Conversation
Core refuses bytes that are not text, so the app need not check for a known charset. It reads an empty file as text, so FileIdentifier now rejects one by its size. No page has called sendFile since #564. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FW6WZZdVv7JbM9FVRtHWUP
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 Generated with Claude Code
Removes code that worked around older versions of core.
.odtwould open as a blank page without those checks.FileIdentifiernow rejects a file of size 0. The old check waited for a MIME type that core no longer returns.PageView.sendFile: nothing has called it since Let the core render the raw files it has learned to render #564, and it let page scripts make the app open a file.Tests: two new device tests cover binary and empty files, and all of
CoreTestpasses, as do lint and the unit tests. The full device suite did not pass locally: a few UI tests failed, different ones on each run, on a heavily loaded machine. One of them, the search test, also fails there on main. CI has to confirm the UI tests.