Bug 303911

Summary: [WPEPlatform] Avoid null XKB context usage due to missing directories
Product: WebKit Reporter: Adrian Perez <aperez>
Component: WPE WebKitAssignee: Adrian Perez <aperez>
Status: RESOLVED FIXED    
Severity: Normal CC: bugs-noreply
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Adrian Perez
Reported 2025-12-10 01:15:53 PST
The xkb_context_new() function may return NULL if the default include directories for configuration files cannot be found. Instead, we can pass the XKB_CONTEXT_NO_DEFAULT_INCLUDES, and manually call xkb_context_include_path_append_default(), which itself may fail, but then we can let libxkbcommon log the error and keep using a valid context that may not be completely configured, but at least WebKit won't crash due to usage of a null xkb_context instances.
Attachments
Adrian Perez
Comment 1 2025-12-10 01:46:35 PST
EWS
Comment 2 2025-12-10 14:01:26 PST
Committed 304260@main (17a6481aedb0): <https://commits.webkit.org/304260@main> Reviewed commits have been landed. Closing PR #55164 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.