Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 17a6481aedb00911337bd6c7e3a7ec3e00639350
      
https://github.com/WebKit/WebKit/commit/17a6481aedb00911337bd6c7e3a7ec3e00639350
  Author: Adrian Perez de Castro <[email protected]>
  Date:   2025-12-10 (Wed, 10 Dec 2025)

  Changed paths:
    M Source/WebKit/WPEPlatform/wpe/WPEKeymapXKB.cpp

  Log Message:
  -----------
  [WPEPlatform] Avoid null XKB context usage due to missing directories
https://bugs.webkit.org/show_bug.cgi?id=303911

Reviewed by Carlos Garcia Campos.

Instead of using XKB_CONTEXT_NO_FLAGS, which makes creation of XKB
contexts fail when the default include configuration directories are
not present, use XKB_CONTEXT_NO_DEFAULT_INCLUDES and manually add them
with xkb_context_include_path_append_default(). This way the context is
always created and failure to add the paths is handled more gracefully.

While at it, skip adding the default paths on Android (they do not
exist) and introduce usage of RefPtr to simplify memory management.

* Source/WebKit/WPEPlatform/wpe/WPEKeymapXKB.cpp:
(createXKBContext): Add helper function to create and configure an XKB context.
(wpe_keymap_xkb_new): Change to use the helper function.
(wpe_keymap_xkb_update): Ditto.

Canonical link: https://commits.webkit.org/304260@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to