diff --git a/desktop/configuration/firefox.cfg b/desktop/configuration/firefox.cfg index fcfd3a58..e59900a1 100644 --- a/desktop/configuration/firefox.cfg +++ b/desktop/configuration/firefox.cfg @@ -13,6 +13,15 @@ if (getenv("MOZ_DISABLE_RDD_SANDBOX") == "1" && getenv("LIBVA_DRIVER_NAME") == " defaultPref("media.av1.enabled", false); defaultPref("media.mediasource.vp9.enabled", false); } +// Omarchy A: WebGPU on the GPU desktop. Firefox enables WebGPU only on +// drivers it knows, so it stays off on these boards' Vulkan drivers even +// though they bring the adapter and device up. The login session sets +// WLR_RENDERER=gles2 only when the desktop draws on the GPU (with its Vulkan +// driver beside it); on the software desktop Firefox keeps its defaults. +if (getenv("WLR_RENDERER") == "gles2") { + defaultPref("dom.webgpu.enabled", true); + defaultPref("gfx.webgpu.ignore-blocklist", true); +} // Omarchy A: Firefox's own toolbar minimums made its window wider than a // phone's screen (about 450 px against a phone's 375 to 414), so it hung off // the right edge with no way back. Without them the address bar narrows