Without it installed it crashes with the following log: firefox-bin xkbcommon: ERROR: failed to add default include path /usr/share/X11/xkb xkbcommon: ERROR: failed to add default include path /usr/share/X11/xkb ExceptionHandler::GenerateDump cloned child 5996 ExceptionHandler::SendContinueSignalToChild sent continue signal to child ExceptionHandler::WaitForContinueSignal waiting for continue signal... Segmentation fault strace: newfstatat(AT_FDCWD, "/home/kyle/.config/xkb", 0x7ffc60064100, 0) = -1 ENOENT (No such file or directory) newfstatat(AT_FDCWD, "/home/kyle/.xkb", 0x7ffc60064100, 0) = -1 ENOENT (No such file or directory) newfstatat(AT_FDCWD, "/etc/xkb", 0x7ffc60064100, 0) = -1 ENOENT (No such file or directory) newfstatat(AT_FDCWD, "/usr/share/X11/xkb", 0x7ffc60064100, 0) = -1 ENOENT (No such file or directory) write(2, "xkbcommon: ERROR: ", 18xkbcommon: ERROR: ) = 18 write(2, "failed to add default include pa"..., 54failed to add default include path /usr/share/X11/xkb ) = 54 --- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=NULL} --- emerging xkeyboard-config fixes it. both firefox and firefox-bin are missing the dependency.
No, it isn't firefox which is depending on this. libxkbcommon should depend on that: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=229127#c1
I have similar experience with rofi, which also failed to run without x11-misc/xkeyboard-config. The bug is here: https://bugs.gentoo.org/760048. x11-misc/xkeyboard-config should be a part of x11-libs/libxkbcommon dependency.