Bug 868312 - Rooting fixes for dom r=bz