When creating an empty Document object, Safari crashes on the selectedStylesheetSet property. You only need to run the 4th test-script, to reproduce the behaviour.
Document
selectedStylesheetSet