I am currently adding a standard minimizeToTray (for windows) to the toolkit for xulrunner. Thanks to Mook and the other original author of MinimizeToTray who accepted to tri-license their code for the benefit of all. The c++ part compiled without problem at all, but I am going to completely revamp the JS part.