UIM input method support on snap

Continued from Oct 2020: Firefox 81 doesn't work with UIM for Asian language input

VS Code snap is working fine with UIM on my Debian machine however Firefox isn’t. What’s the difference between the two? Is it straightforward to “port” whatever mechanism from VS Code over to Firefox?