Fix failing Firefox layout tests