Bug 237240 - Loading a USDZ url as the main resource renders as garbage
Summary: Loading a USDZ url as the main resource renders as garbage
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Dean Jackson
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-02-26 12:29 PST by Dean Jackson
Modified: 2022-02-27 11:53 PST (History)
2 users (show)

See Also:


Attachments
Patch (1.60 KB, patch)
2022-02-26 12:33 PST, Dean Jackson
ews-feeder: commit-queue-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dean Jackson 2022-02-26 12:29:57 PST
Loading a USDZ url as the main resource renders as garbage
Comment 1 Dean Jackson 2022-02-26 12:30:49 PST
rdar://88767033
Comment 2 Dean Jackson 2022-02-26 12:31:08 PST
Load this URL in Safari:
https://autodesk-forks.github.io/USD/usd_for_web_demos/gearbox.usdz

It renders as garbage, despite being served with the correct MIME type:

WebKit % curl -I https://autodesk-forks.github.io/USD/usd_for_web_demos/gearbox.usdz
HTTP/2 200 
server: GitHub.com
content-type: model/vnd.usdz+zip
permissions-policy: interest-cohort=()
last-modified: Wed, 02 Feb 2022 21:41:43 GMT
access-control-allow-origin: *
etag: "61fafa97-73cc80"
expires: Thu, 10 Feb 2022 19:23:56 GMT
cache-control: max-age=600
x-proxy-cache: MISS
x-github-request-id: 5BF8:725B:13A4C:19367:620563F4
accept-ranges: bytes
date: Thu, 10 Feb 2022 19:13:56 GMT
via: 1.1 varnish
age: 0
x-served-by: cache-pao17464-PAO
x-cache: MISS
x-cache-hits: 0
x-timer: S1644520436.033243,VS0,VE295
vary: Accept-Encoding
x-fastly-request-id: d6a236410cf26bd17d4cbc7483bd719effedb50d
content-length: 7588992

Chrome downloads the file, which is more reasonable.
Comment 3 Dean Jackson 2022-02-26 12:33:09 PST
Created attachment 453306 [details]
Patch
Comment 4 EWS 2022-02-27 08:28:08 PST
Committed r290562 (247840@main): <https://commits.webkit.org/247840@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 453306 [details].