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, Mar 11, 5:17 PM
Unknown Object (File)
Sun, Mar 9, 7:41 PM
Unknown Object (File)
Sun, Mar 9, 7:41 PM
Unknown Object (File)
Sun, Mar 9, 7:41 PM
Unknown Object (File)
Sun, Mar 9, 7:41 PM
Unknown Object (File)
Sun, Mar 9, 7:35 PM
Unknown Object (File)
Fri, Mar 7, 2:18 AM
Unknown Object (File)
Thu, Mar 6, 3:15 PM
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