During this time , ethnic Bosnians ( the majority of which were Muslim ) often faced oppression and persecution , and even mass genocide during the Second World War ( when it was briefly annexed by Croatia , which was a puppet state of Nazi Germany ) .