Add onbeforeunload warning to new-property