Commit 57bf9d7391114ad7bc532eaa1dec70b1127f5b55

  • avatar
  • Patrick Stählin <pstaehlin @futu…lab.ch>
  • Wed Aug 25 13:30:35 CEST 2010
Prevent context destruction when waiting for frame
core/scripting/ds485scriptextension.cpp
(1 / 0)
  
8181 void waitForFrame(boost::shared_ptr<FrameBucketCollector> _bucket, boost::shared_ptr<ScriptObject> _callbackObject, jsval _function, int _timeout, boost::shared_ptr<ScriptFunctionRooter> _rootedFunction) {
8282 bool goOn = true;
8383 JSContext* cx = getContext()->getJSContext();
84 boost::shared_ptr<ScriptContextAttachedObject> preventContextDestruction(new ScriptContextAttachedObject(getContext()));
8485 do {
8586 bool hasFrame = _bucket->waitForFrame(_timeout);
8687 try {