Page MenuHomePhabricator

[web] Fix preloading blob service URIs
ClosedPublic

Authored by bartek on Jun 1 2023, 12:03 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Apr 5, 8:23 PM
Unknown Object (File)
Tue, Mar 11, 5:17 PM
Unknown Object (File)
Mar 9 2025, 7:41 PM
Unknown Object (File)
Mar 9 2025, 7:41 PM
Unknown Object (File)
Mar 9 2025, 7:41 PM
Unknown Object (File)
Mar 9 2025, 7:41 PM
Unknown Object (File)
Mar 9 2025, 7:35 PM
Unknown Object (File)
Mar 7 2025, 2:18 AM
Subscribers

Details

Summary

I realized that the preloadImage and preloadMediaResource functions do not resolve Blob service URIs so preloading them would fail. This diff fixes that.

Depends on D8050

Test Plan

Called preloadMediaResource with a blob-service://XXXX URI, observed the devtools Network tab.
Before it failed with network error, now it succeeds: the request is sent to https://blob.commtechnologies.org/XXXX

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage