Changeset 290562 in webkit


Ignore:
Timestamp:
Feb 27, 2022 8:26:51 AM (5 months ago)
Author:
dino@apple.com
Message:

Loading a USDZ url as the main resource renders as garbage
https://bugs.webkit.org/show_bug.cgi?id=237240
rdar://88767033

Reviewed by Antoine Quint.

We can't render a USD document if the ModelDocument feature is not enabled.

  • platform/MIMETypeRegistry.cpp:

(WebCore::MIMETypeRegistry::canShowMIMEType):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r290561 r290562  
     12022-02-27  Dean Jackson  <dino@apple.com>
     2
     3        Loading a USDZ url as the main resource renders as garbage
     4        https://bugs.webkit.org/show_bug.cgi?id=237240
     5        rdar://88767033
     6
     7        Reviewed by Antoine Quint.
     8
     9        We can't render a USD document if the ModelDocument feature is not enabled.
     10
     11        * platform/MIMETypeRegistry.cpp:
     12        (WebCore::MIMETypeRegistry::canShowMIMEType):
     13
    1142022-02-27  Antoine Quint  <graouts@webkit.org>
    215
  • trunk/Source/WebCore/platform/MIMETypeRegistry.cpp

    r290300 r290562  
    2929
    3030#include "MediaPlayer.h"
     31#include "RuntimeEnabledFeatures.h"
    3132#include "ThreadGlobalData.h"
    3233#include <wtf/FixedVector.h>
     
    668669
    669670#if ENABLE(MODEL_ELEMENT)
    670     if (isSupportedModelMIMEType(mimeType))
     671    if (isSupportedModelMIMEType(mimeType) && RuntimeEnabledFeatures::sharedFeatures().modelDocumentEnabled())
    671672        return true;
    672673#endif
Note: See TracChangeset for help on using the changeset viewer.