MOZ_ENABLE_WAYLAND=1 firefox
This makes firefox a full wayland app. But I only use sway, so maybe there are KDE specific bugs.