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)
Tue, Dec 17, 2:18 AM
Unknown Object (File)
Tue, Dec 17, 2:18 AM
Unknown Object (File)
Tue, Dec 17, 2:18 AM
Unknown Object (File)
Tue, Dec 17, 2:17 AM
Unknown Object (File)
Tue, Dec 17, 2:13 AM
Unknown Object (File)
Nov 8 2024, 11:36 AM
Unknown Object (File)
Nov 1 2024, 3:20 AM
Unknown Object (File)
Nov 1 2024, 3:20 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
Lint Not Applicable
Unit
Tests Not Applicable