Bug 247332

Summary: Checking m_defaultPageGroup->preferences() in WebProcessPool::platformInitializeWebProcess() is probably wrong
Product: WebKit Reporter: Simon Fraser (smfr) <simon.fraser>
Component: WebKit Process ModelAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: pvollan, simon.fraser, webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: WebKit Local Build   
Hardware: Unspecified   
OS: Unspecified   

Description Simon Fraser (smfr) 2022-11-01 13:13:45 PDT
WebProcessPool::platformInitializeWebProcess() does:

    if (m_defaultPageGroup->preferences().useGPUProcessForDOMRenderingEnabled())
        parameters.maximumIOSurfaceSize = WebCore::IOSurface::maximumSize();

but m_defaultPageGroup->preferences() is uninitialized at this point, so this condition is never hit.

The same applies to checks for mediaDevicesEnabled and captureAudioInGPUProcessEnabled lower down.

Behavior might be different in different UI apps (depending on their use of the API). I reproduced the issue in MiniBrowser on macOS.
Comment 1 Radar WebKit Bug Importer 2022-11-01 13:14:17 PDT
<rdar://problem/101821075>
Comment 2 Simon Fraser (smfr) 2022-11-01 13:56:23 PDT Comment hidden (obsolete)
Comment 3 Simon Fraser (smfr) 2022-11-01 14:13:12 PDT
The config in MobileSafari is such that these checks succeed.
Comment 4 Per Arne Vollan 2023-06-06 13:22:04 PDT

*** This bug has been marked as a duplicate of bug 257750 ***