Bug 237240

Summary: Loading a USDZ url as the main resource renders as garbage
Product: WebKit Reporter: Dean Jackson <dino>
Component: New BugsAssignee: Dean Jackson <dino>
Status: RESOLVED FIXED    
Severity: Normal CC: graouts, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch ews-feeder: commit-queue-

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].