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   

Simon Fraser (smfr)
Reported 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.
Attachments
Radar WebKit Bug Importer
Comment 1 2022-11-01 13:14:17 PDT
Simon Fraser (smfr)
Comment 2 2022-11-01 13:56:23 PDT Comment hidden (obsolete)
Simon Fraser (smfr)
Comment 3 2022-11-01 14:13:12 PDT
The config in MobileSafari is such that these checks succeed.
Per Arne Vollan
Comment 4 2023-06-06 13:22:04 PDT
*** This bug has been marked as a duplicate of bug 257750 ***
Note You need to log in before you can comment on or make changes to this bug.