Commit fd5dd221 authored by andrew's avatar andrew

Reviewed by Darin.

        Fix http://bugs.webkit.org/show_bug.cgi?id=13275
        Safari crashed when trying to login using the windows live contact control

        Check for cleared windowObj in JSAbstractEventListener::handleEvent

        * bindings/js/kjs_events.cpp:
        (KJS::JSAbstractEventListener::handleEvent):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21451 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent b036816d
2007-05-14 Andrew Wellington <proton@wiretapped.net>
Reviewed by Darin.
Fix http://bugs.webkit.org/show_bug.cgi?id=13275
Safari crashed when trying to login using the windows live contact control
Check for cleared windowObj in JSAbstractEventListener::handleEvent
* bindings/js/kjs_events.cpp:
(KJS::JSAbstractEventListener::handleEvent):
2007-05-13 Alexey Proskuryakov <ap@webkit.org>
Reviewed by Darin.
......@@ -78,6 +78,10 @@ void JSAbstractEventListener::handleEvent(Event* ele, bool isWindowEvent)
return;
Window* window = windowObj();
// Null check as clearWindowObj() can clear this and we still get called back by
// xmlhttprequest objects. See http://bugs.webkit.org/show_bug.cgi?id=13275
if (!window)
return;
Frame *frame = window->frame();
if (!frame)
return;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment