Bug 232880 - WebXR uses IOKit in WebContent process
Summary: WebXR uses IOKit in WebContent process
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebXR (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-11-09 06:26 PST by Kimmo Kinnunen
Modified: 2021-11-09 06:27 PST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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>