Comment 8 for bug 40189

The solution by Sebastiaan Veldhuisen above works for me.