Few fixes to get remote iframe sandboxing working.