- fixed <rdar://problem/
3567047>: REGRESSION: repro crash inside KJS (dispatchToBoolean) at www.thedonnas.com
- fixed <rdar://problem/
3550461>: REGRESSION: repro crash in JavaScript at www.alaska.com
* khtml/ecma/kjs_window.cpp:
(Window::getListener): Return Null() when the listener object is
null, indicating the code failed to parse. Otherwise we return a
bad value which can later crash the JS interpreter.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6140
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2004-03-01 Maciej Stachowiak <mjs@apple.com>
+
+ Reviewed by NOBODY (OOPS!).
+
+ - fixed <rdar://problem/3567047>: REGRESSION: repro crash inside KJS (dispatchToBoolean) at www.thedonnas.com
+ - fixed <rdar://problem/3550461>: REGRESSION: repro crash in JavaScript at www.alaska.com
+
+ * khtml/ecma/kjs_window.cpp:
+ (Window::getListener): Return Null() when the listener object is
+ null, indicating the code failed to parse. Otherwise we return a
+ bad value which can later crash the JS interpreter.
+
2004-03-01 Darin Adler <darin@apple.com>
Reviewed by Vicki.
return Undefined();
DOM::EventListener *listener = doc->getHTMLWindowEventListener(eventId);
- if (listener)
+ if (listener && static_cast<JSEventListener*>(listener)->listenerObjImp())
return static_cast<JSEventListener*>(listener)->listenerObj();
else
return Null();