Improve fix for corrupted font resource loading in older documents (#4482)

* Revert "Fix corrupted font resource loading in older documents"

This reverts commit 404d9f3047.

* Fix migrations for the Read Vector, Dot Product, Query JSON, and Sample Polyline nodes

* Fix text node migrations

* Provide resource storage to the resource message handler

* Refetch resources whose stored bytes are missing

* Add test for refetching resources with missing bytes
This commit is contained in:
Timon
2026-08-29 02:01:37 +02:00
committed by GitHub
parent c2afc07a04
commit d5bb887b79
5 changed files with 31 additions and 70 deletions

View File

@@ -276,7 +276,6 @@ pub async fn resource<'a: 'n>(
return placeholder();
};
// Stored bytes go missing when the browser evicts its storage or a write is interrupted
let Some(resource) = application_io.load_resource(hash).await else {
log::error!("Resource {hash} was not found in storage");
return placeholder();