Page MenuHomePhabricator

[web] Fix preloading blob service URIs
ClosedPublic

Authored by bartek on Jun 1 2023, 12:03 AM.
Tags
None
Referenced Files
F3700466: D8051.id27452.diff
Tue, Jan 7, 4:48 PM
F3700459: D8051.id27336.diff
Tue, Jan 7, 4:46 PM
F3700452: D8051.id27436.diff
Tue, Jan 7, 4:43 PM
Unknown Object (File)
Mon, Jan 6, 7:59 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:18 AM
Unknown Object (File)
Tue, Dec 17, 2:17 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