Bug 1046022 - fix LoadURI to not let people load anything inside onbeforeunload, r=bz