Bug 232880

Summary: WebXR uses IOKit in WebContent process
Product: WebKit Reporter: Kimmo Kinnunen <kkinnunen>
Component: WebXRAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Kimmo Kinnunen 2021-11-09 06:26:49 PST
WebXR uses IOKit in WebContent process

#if USE(IOSURFACE_FOR_XR_LAYER_DATA)
    MachSendRight surfaceSendRight;
    if (!decoder.decode(surfaceSendRight))
        return std::nullopt;
    layerData.surface = WebCore::IOSurface::createFromSendRight(WTFMove(surfaceSendRight), WebCore::DestinationColorSpace::SRGB());
    if (!decoder.decode(layerData.isShared))
        return std::nullopt;
#else
Comment 1 Radar WebKit Bug Importer 2021-11-09 06:27:19 PST
<rdar://problem/85200236>