The same result can be achieved with the following DBus call:
qdbus org.freedesktop.impl.portal.PermissionStore /org/freedesktop/impl/portal/PermissionStore org.freedesktop.impl.portal.PermissionStore.SetPermission webextensions true org.keepassxc.keepassxc_browser snap.firefox yes