-
aroben@apple.com authored
Part of Bug 17133: Should support pausing JavaScript execution without hanging the process <http://bugs.webkit.org/show_bug.cgi?id=17133> <rdar://problem/5719551> Two new methods are added to KJSProxy: setPaused and isPaused. When setPaused(true) is called, JS event handlers are blocked and javascript: URIs will not be evaluated. Reviewed by Tim Hatcher. * bindings/js/kjs_events.cpp: (WebCore::JSAbstractEventListener::handleEvent): - Removed some old KJS_DEBUGGER code - Don't run the handler if the KJSProxy is paused. * bindings/js/kjs_proxy.cpp: (WebCore::KJSProxy::KJSProxy): Initialize new member. * bindings/js/kjs_proxy.h: Added new methods. * loader/FrameLoader.cpp: (WebCore::FrameLoader::executeScript): Don't execute the script if the KJSProxy is paused. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31197 268f45cc-cd09-0410-ab3c-d52691b4dbfc
4d69cd1f