-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
models must not be allowed to download external content #60
Comments
I wanted to flag a connection to #49 here. For portability reasons, glTF has the ability to define 'fallback' data for compressed textures and geometry. If the author wants to define compressed textures (KTX2, WebP) or geometry (Draco, Meshopt) using glTF extensions, but doesn't know for sure that all clients loading that asset will support these extensions, they can include uncompressed data as a fallback. To avoid downloading both the compressed and uncompressed data, we want that fallback uncompressed data to be external:
If model element doesn't have the ability to download external content, it becomes more important that the element be able to signal to the user agent that two models (of the same format) require different features/extensions/capabilities. These capabilities make a huge difference in the downloaded file size, and the GPU memory consumption while rendering. In current use on the web, I believe it's more common for users to define multiple versions of the entire asset (e.g. |
Having switches inside a format that trigger downloads on specific user agent abilities would be a security nightmare. I think there was some discussion that there should be a special version of gltf/usd for the web and this would be another good reason. |
I think it's reasonable to disallow external content. By convention, the binary form of glTF ( |
Are we sure that document isn't obsolete? Seems that fetching be would be governed by HTML (and SVG itself). |
I'm sure :-) |
Because models loaded through a tag behave a lot like an image that has an
<svg>
source, the same limitations must apply.See the SVG integration spec on what things are allowed and forbidden in such a context.
Basically, we don't want to load external resources because they allow ping backs to the creator of the model.
Maybe we relax access to interactivity if CORS is enabled.
The text was updated successfully, but these errors were encountered: