JavaScriptCore:
2006-06-18 Anders Carlsson <[email protected]>
Reviewed by Geoff.
- kjs/interpreter.cpp:
(KJS::TimeoutChecker::pauseTimeoutCheck):
Do nothing if the timeout check hasn't been started.
(KJS::TimeoutChecker::resumeTimeoutCheck):
Do nothing if the timeout check hasn't been started.
Use the right signal handler when unblocking.
(KJS::Interpreter::handleTimeout):
pause/resume the timeout check around the call to
shouldInterruptScript().
WebCore:
2006-06-17 Anders Carlsson <[email protected]>
Reviewed by Geoff.
- bindings/js/kjs_binding.cpp:
(KJS::ScriptInterpreter::ScriptInterpreter):
Set the default script timeout.
(KJS::ScriptInterpreter::shouldInterruptScript):
New function which asks the frame if the script should be interrupted.
- bindings/js/kjs_binding.h:
- bindings/js/kjs_events.cpp:
(KJS::JSAbstractEventListener::handleEvent):
- bindings/js/kjs_proxy.cpp:
(WebCore::KJSProxy::evaluate):
Add calls to startTimeoutCheck/stopTimeoutCheck
- bindings/js/kjs_window.cpp:
(KJS::WindowFunc::callAsFunction):
Add calls to pauseTimeoutCheck/unpauseTimeoutCheck
(KJS::ScheduledAction::execute):
Add calls to startTimeoutCheck/stopTimeoutCheck
- bridge/mac/FrameMac.h:
- bridge/mac/FrameMac.mm:
(WebCore::FrameMac::shouldInterruptJavaScript):
New function which asks the bridge if the script should be interrupted.
- bridge/mac/WebCoreFrameBridge.h:
- page/Frame.h:
Add function declarations.
WebKit:
2006-06-18 Anders Carlsson <[email protected]>
Reviewed by Geoff.
- WebCoreSupport/WebFrameBridge.m:
(-[WebFrameBridge shouldInterruptJavaScript]):
Ask the UI delegate if the script should be interrupted.
- WebView/WebUIDelegatePrivate.h:
Declare webViewShouldInterruptJavaScript: delegate method