BUG ID: 4181058 8C45: Safari repro crash with document.write (WebCore::Node::dispatchEvent)

STEPS TO TEST:

TEST PASS: You should see text that says "Test has passed".

TEST FAIL: If the test fails, the browser will crash.