Mark Document::saveTempFile() as internal