1. 21 Nov, 2013 1 commit
    • commit-queue@webkit.org's avatar
      Remove ENABLE_WORKERS · f0eff209
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=105784
      
      .:
      
      Patch by Peter Molnar <pmolnar.u-szeged@partner.samsung.com> on 2013-11-21
      Reviewed by Darin Adler.
      
      * Source/autotools/SetupWebKitFeatures.m4:
      * Source/cmake/WebKitFeatures.cmake:
      * Source/cmakeconfig.h.cmake:
      
      Source/WebCore:
      
      Patch by Peter Molnar <pmolnar.u-szeged@partner.samsung.com> on 2013-11-21
      Reviewed by Darin Adler.
      
      Source/WebKit:
      
      Patch by Peter Molnar <pmolnar.u-szeged@partner.samsung.com> on 2013-11-21
      Reviewed by Darin Adler.
      
      * WebKit.vcxproj/WebKitExportGenerator/WebKitExports.def.in:
      
      Source/WebKit/efl:
      
      Patch by Peter Molnar <pmolnar.u-szeged@partner.samsung.com> on 2013-11-21
      Reviewed by Darin Adler.
      
      * ewk/ewk_settings.cpp:
      (ewk_settings_memory_cache_clear):
      
      Source/WebKit/win:
      
      Patch by Peter Molnar <pmolnar.u-szeged@partner.samsung.com> on 2013-11-21
      Reviewed by Darin Adler.
      
      * WebWorkersPrivate.cpp:
      (WebWorkersPrivate::workerThreadCount):
      
      Source/WTF:
      
      Patch by Peter Molnar <pmolnar.u-szeged@partner.samsung.com> on 2013-11-21
      Reviewed by Darin Adler.
      
      * wtf/FeatureDefines.h:
      * wtf/nix/FeatureDefinesNix.h:
      
      Tools:
      
      Patch by Peter Molnar <pmolnar.u-szeged@partner.samsung.com> on 2013-11-21
      Reviewed by Darin Adler.
      
      * Scripts/webkitperl/FeatureList.pm:
      
      WebKitLibraries:
      
      Patch by Peter Molnar <pmolnar.u-szeged@partner.samsung.com> on 2013-11-21
      Reviewed by Darin Adler.
      
      * win/tools/vsprops/FeatureDefines.props:
      * win/tools/vsprops/FeatureDefinesCairo.props:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159679 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f0eff209
  2. 27 Jun, 2013 1 commit
    • ch.dumez@sisa.samsung.com's avatar
      Rename WorkerContext to WorkerGlobalScope · 14792a6b
      ch.dumez@sisa.samsung.com authored
      https://bugs.webkit.org/show_bug.cgi?id=118059
      
      Reviewed by Kentaro Hara.
      
      Source/WebCore:
      
      Rename WorkerContext / SharedWorkerContext / DedicatedWorkerContext to
      WorkerGlobalScope / SharedWorkerGlobalScope / DedicatedWorkerGlobalScope
      to match the latest specification:
      http://www.whatwg.org/specs/web-apps/current-work/multipage/workers.html#workerglobalscope
      
      Those interfaces have [NoInterfaceObject] IDL extended attribute so the
      name did not matter much so far. However, the specification was updated
      and [NoInterfaceObject] was removed. We should therefore rename those
      interfaces as a preparation for this change.
      
      No new tests, no behavior change as these interfaces are not exposed to
      JavaScript yet.
      
      * CMakeLists.txt:
      * DerivedSources.cpp:
      * DerivedSources.make:
      * DerivedSources.pri:
      * GNUmakefile.am:
      * GNUmakefile.list.am:
      * Modules/filesystem/WorkerGlobalScopeFileSystem.cpp: Renamed from Source/WebCore/Modules/filesystem/WorkerContextFileSystem.cpp.
      (WebCore::WorkerGlobalScopeFileSystem::webkitRequestFileSystem):
      (WebCore::WorkerGlobalScopeFileSystem::webkitRequestFileSystemSync):
      (WebCore::WorkerGlobalScopeFileSystem::webkitResolveLocalFileSystemURL):
      (WebCore::WorkerGlobalScopeFileSystem::webkitResolveLocalFileSystemSyncURL):
      * Modules/filesystem/WorkerGlobalScopeFileSystem.h: Renamed from Source/WebCore/Modules/filesystem/WorkerContextFileSystem.h.
      * Modules/filesystem/WorkerGlobalScopeFileSystem.idl: Renamed from Source/WebCore/Modules/filesystem/WorkerContextFileSystem.idl.
      * Modules/indexeddb/IDBFactory.cpp:
      * Modules/indexeddb/WorkerGlobalScopeIndexedDatabase.cpp: Renamed from Source/WebCore/Modules/indexeddb/WorkerContextIndexedDatabase.cpp.
      (WebCore::WorkerGlobalScopeIndexedDatabase::WorkerGlobalScopeIndexedDatabase):
      (WebCore::WorkerGlobalScopeIndexedDatabase::~WorkerGlobalScopeIndexedDatabase):
      (WebCore::WorkerGlobalScopeIndexedDatabase::supplementName):
      (WebCore::WorkerGlobalScopeIndexedDatabase::from):
      (WebCore::WorkerGlobalScopeIndexedDatabase::indexedDB):
      * Modules/indexeddb/WorkerGlobalScopeIndexedDatabase.h: Renamed from Source/WebCore/Modules/indexeddb/WorkerContextIndexedDatabase.h.
      * Modules/indexeddb/WorkerGlobalScopeIndexedDatabase.idl: Renamed from Source/WebCore/Modules/indexeddb/WorkerContextIndexedDatabase.idl.
      * Modules/notifications/Notification.cpp:
      * Modules/notifications/NotificationCenter.cpp:
      * Modules/notifications/WorkerGlobalScopeNotifications.cpp: Renamed from Source/WebCore/Modules/notifications/WorkerContextNotifications.cpp.
      (WebCore::WorkerGlobalScopeNotifications::WorkerGlobalScopeNotifications):
      (WebCore::WorkerGlobalScopeNotifications::~WorkerGlobalScopeNotifications):
      (WebCore::WorkerGlobalScopeNotifications::supplementName):
      (WebCore::WorkerGlobalScopeNotifications::from):
      (WebCore::WorkerGlobalScopeNotifications::webkitNotifications):
      * Modules/notifications/WorkerGlobalScopeNotifications.h: Renamed from Source/WebCore/Modules/notifications/WorkerContextNotifications.h.
      * Modules/notifications/WorkerGlobalScopeNotifications.idl: Renamed from Source/WebCore/Modules/notifications/WorkerContextNotifications.idl.
      * Modules/webdatabase/DatabaseContext.cpp:
      (WebCore::DatabaseContext::allowDatabaseAccess):
      (WebCore::DatabaseContext::databaseExceededQuota):
      * Modules/webdatabase/WorkerGlobalScopeWebDatabase.cpp: Renamed from Source/WebCore/Modules/webdatabase/WorkerContextWebDatabase.cpp.
      (WebCore::WorkerGlobalScopeWebDatabase::openDatabase):
      (WebCore::WorkerGlobalScopeWebDatabase::openDatabaseSync):
      * Modules/webdatabase/WorkerGlobalScopeWebDatabase.h: Renamed from Source/WebCore/Modules/webdatabase/WorkerContextWebDatabase.h.
      (WebCore::WorkerGlobalScopeWebDatabase::WorkerGlobalScopeWebDatabase):
      (WebCore::WorkerGlobalScopeWebDatabase::~WorkerGlobalScopeWebDatabase):
      * Modules/webdatabase/WorkerGlobalScopeWebDatabase.idl: Renamed from Source/WebCore/Modules/webdatabase/WorkerContextWebDatabase.idl.
      * Modules/websockets/ThreadableWebSocketChannel.cpp:
      (WebCore::ThreadableWebSocketChannel::create):
      * Modules/websockets/ThreadableWebSocketChannelClientWrapper.cpp:
      (WebCore::ThreadableWebSocketChannelClientWrapper::processPendingTasksCallback):
      * Modules/websockets/WorkerThreadableWebSocketChannel.cpp:
      (WebCore::WorkerThreadableWebSocketChannel::WorkerThreadableWebSocketChannel):
      (WebCore::workerGlobalScopeDidSend):
      (WebCore::WorkerThreadableWebSocketChannel::Peer::send):
      (WebCore::workerGlobalScopeDidGetBufferedAmount):
      (WebCore::WorkerThreadableWebSocketChannel::Peer::bufferedAmount):
      (WebCore::workerGlobalScopeDidConnect):
      (WebCore::WorkerThreadableWebSocketChannel::Peer::didConnect):
      (WebCore::workerGlobalScopeDidReceiveMessage):
      (WebCore::WorkerThreadableWebSocketChannel::Peer::didReceiveMessage):
      (WebCore::workerGlobalScopeDidReceiveBinaryData):
      (WebCore::WorkerThreadableWebSocketChannel::Peer::didReceiveBinaryData):
      (WebCore::workerGlobalScopeDidUpdateBufferedAmount):
      (WebCore::WorkerThreadableWebSocketChannel::Peer::didUpdateBufferedAmount):
      (WebCore::workerGlobalScopeDidStartClosingHandshake):
      (WebCore::WorkerThreadableWebSocketChannel::Peer::didStartClosingHandshake):
      (WebCore::workerGlobalScopeDidClose):
      (WebCore::WorkerThreadableWebSocketChannel::Peer::didClose):
      (WebCore::workerGlobalScopeDidReceiveMessageError):
      (WebCore::WorkerThreadableWebSocketChannel::Peer::didReceiveMessageError):
      (WebCore::WorkerThreadableWebSocketChannel::Bridge::Bridge):
      (WebCore::WorkerThreadableWebSocketChannel::WorkerGlobalScopeDidInitializeTask::create):
      (WebCore::WorkerThreadableWebSocketChannel::WorkerGlobalScopeDidInitializeTask::~WorkerGlobalScopeDidInitializeTask):
      (WebCore::WorkerThreadableWebSocketChannel::WorkerGlobalScopeDidInitializeTask::WorkerGlobalScopeDidInitializeTask):
      (WebCore::WorkerThreadableWebSocketChannel::Bridge::mainThreadInitialize):
      (WebCore::WorkerThreadableWebSocketChannel::Bridge::disconnect):
      (WebCore::WorkerThreadableWebSocketChannel::Bridge::waitForMethodCompletion):
      * Modules/websockets/WorkerThreadableWebSocketChannel.h:
      (WebCore::WorkerThreadableWebSocketChannel::create):
      (WebCore::WorkerThreadableWebSocketChannel::Bridge::create):
      * Target.pri:
      * UseJSC.cmake:
      * WebCore.order:
      * WebCore.vcxproj/WebCore.vcxproj:
      * WebCore.vcxproj/WebCore.vcxproj.filters:
      * WebCore.xcodeproj/project.pbxproj:
      * bindings/cpp/WebDOMEventTarget.cpp:
      (toWebKit):
      * bindings/cpp/WebDOMEventTarget.h:
      * bindings/generic/ActiveDOMCallback.cpp:
      * bindings/js/DOMRequestState.h:
      (WebCore::DOMRequestState::DOMRequestState):
      * bindings/js/JSBindingsAllInOne.cpp:
      * bindings/js/JSDOMBinding.h:
      * bindings/js/JSDOMGlobalObject.cpp:
      (WebCore::JSDOMGlobalObject::scriptExecutionContext):
      (WebCore::toJSDOMGlobalObject):
      * bindings/js/JSDedicatedWorkerGlobalScopeCustom.cpp: Renamed from Source/WebCore/bindings/js/JSDedicatedWorkerContextCustom.cpp.
      (WebCore::JSDedicatedWorkerGlobalScope::postMessage):
      * bindings/js/JSEventListener.cpp:
      (WebCore::JSEventListener::handleEvent):
      * bindings/js/JSEventTargetCustom.cpp:
      (WebCore::toJS):
      * bindings/js/JSWorkerGlobalScopeBase.cpp: Renamed from Source/WebCore/bindings/js/JSWorkerContextBase.cpp.
      (WebCore::JSWorkerGlobalScopeBase::JSWorkerGlobalScopeBase):
      (WebCore::JSWorkerGlobalScopeBase::finishCreation):
      (WebCore::JSWorkerGlobalScopeBase::destroy):
      (WebCore::JSWorkerGlobalScopeBase::scriptExecutionContext):
      (WebCore::toJS):
      (WebCore::toJSDedicatedWorkerGlobalScope):
      (WebCore::toJSSharedWorkerGlobalScope):
      (WebCore::toJSWorkerGlobalScope):
      * bindings/js/JSWorkerGlobalScopeBase.h: Renamed from Source/WebCore/bindings/js/JSWorkerContextBase.h.
      (WebCore::JSWorkerGlobalScopeBase::impl):
      (WebCore::JSWorkerGlobalScopeBase::createStructure):
      * bindings/js/JSWorkerGlobalScopeCustom.cpp: Renamed from Source/WebCore/bindings/js/JSWorkerContextCustom.cpp.
      (WebCore::JSWorkerGlobalScope::visitChildren):
      (WebCore::JSWorkerGlobalScope::getOwnPropertySlotDelegate):
      (WebCore::JSWorkerGlobalScope::getOwnPropertyDescriptorDelegate):
      (WebCore::JSWorkerGlobalScope::importScripts):
      (WebCore::JSWorkerGlobalScope::setTimeout):
      (WebCore::JSWorkerGlobalScope::setInterval):
      * bindings/js/ScheduledAction.cpp:
      (WebCore::ScheduledAction::execute):
      * bindings/js/ScheduledAction.h:
      * bindings/js/ScriptProfiler.cpp:
      (WebCore::ScriptProfiler::startForWorkerGlobalScope):
      (WebCore::ScriptProfiler::stopForWorkerGlobalScope):
      * bindings/js/ScriptProfiler.h:
      * bindings/js/ScriptState.cpp:
      (WebCore::scriptStateFromWorkerGlobalScope):
      * bindings/js/ScriptState.h:
      * bindings/js/WorkerScriptController.cpp:
      (WebCore::WorkerScriptController::WorkerScriptController):
      (WebCore::WorkerScriptController::~WorkerScriptController):
      (WebCore::WorkerScriptController::initScript):
      (WebCore::WorkerScriptController::evaluate):
      (WebCore::WorkerScriptController::setException):
      (WebCore::WorkerScriptController::forbidExecution):
      (WebCore::WorkerScriptController::isExecutionForbidden):
      (WebCore::WorkerScriptController::disableEval):
      (WebCore::WorkerScriptController::attachDebugger):
      (WebCore::WorkerScriptController::detachDebugger):
      * bindings/js/WorkerScriptController.h:
      (WebCore::WorkerScriptController::workerGlobalScopeWrapper):
      (WebCore::WorkerScriptController::initScriptIfNeeded):
      * bindings/js/WorkerScriptDebugServer.cpp:
      (WebCore::WorkerScriptDebugServer::WorkerScriptDebugServer):
      (WebCore::WorkerScriptDebugServer::addListener):
      (WebCore::WorkerScriptDebugServer::recompileAllJSFunctions):
      (WebCore::WorkerScriptDebugServer::removeListener):
      (WebCore::WorkerScriptDebugServer::runEventLoopWhilePaused):
      * bindings/js/WorkerScriptDebugServer.h:
      * bindings/scripts/CodeGeneratorJS.pm:
      (GenerateHeader):
      (GenerateImplementation):
      * bindings/scripts/IDLAttributes.txt:
      * bindings/scripts/preprocess-idls.pl:
      * dom/ActiveDOMObject.cpp:
      * dom/EventTarget.h:
      * dom/EventTargetFactory.in:
      * dom/MessagePort.cpp:
      (WebCore::MessagePort::dispatchMessages):
      * dom/ScriptExecutionContext.cpp:
      (WebCore::ScriptExecutionContext::createdMessagePort):
      (WebCore::ScriptExecutionContext::destroyedMessagePort):
      (WebCore::ScriptExecutionContext::vm):
      * dom/ScriptExecutionContext.h:
      (WebCore::ScriptExecutionContext::isWorkerGlobalScope):
      * inspector/InjectedScriptManager.cpp:
      (WebCore::InjectedScriptManager::createForWorker):
      (WebCore::InjectedScriptManager::canAccessInspectedWorkerGlobalScope):
      * inspector/InjectedScriptManager.h:
      * inspector/InspectorConsoleInstrumentation.h:
      (WebCore::InspectorInstrumentation::addMessageToConsole):
      * inspector/InspectorInstrumentation.cpp:
      (WebCore::InspectorInstrumentation::didStartWorkerGlobalScopeImpl):
      (WebCore::InspectorInstrumentation::willEvaluateWorkerScript):
      (WebCore::InspectorInstrumentation::workerGlobalScopeTerminatedImpl):
      (WebCore::InspectorInstrumentation::instrumentingAgentsForWorkerGlobalScope):
      (WebCore::InspectorInstrumentation::instrumentingAgentsForNonDocumentContext):
      * inspector/InspectorInstrumentation.h:
      (WebCore::InspectorInstrumentation::didStartWorkerGlobalScope):
      (WebCore::InspectorInstrumentation::workerGlobalScopeTerminated):
      * inspector/InspectorProfilerAgent.cpp:
      (WebCore::WorkerProfilerAgent::WorkerProfilerAgent):
      (WebCore::WorkerProfilerAgent::startProfiling):
      (WebCore::WorkerProfilerAgent::stopProfiling):
      (WebCore::InspectorProfilerAgent::create):
      * inspector/InspectorProfilerAgent.h:
      * inspector/InspectorRuntimeAgent.h:
      * inspector/InspectorWorkerAgent.cpp:
      (WebCore::InspectorWorkerAgent::WorkerFrontendChannel::WorkerFrontendChannel):
      (WebCore::InspectorWorkerAgent::WorkerFrontendChannel::~WorkerFrontendChannel):
      (WebCore::InspectorWorkerAgent::WorkerFrontendChannel::proxy):
      (WebCore::InspectorWorkerAgent::WorkerFrontendChannel::connectToWorkerGlobalScope):
      (WebCore::InspectorWorkerAgent::WorkerFrontendChannel::disconnectFromWorkerGlobalScope):
      (WebCore::InspectorWorkerAgent::connectToWorker):
      (WebCore::InspectorWorkerAgent::disconnectFromWorker):
      (WebCore::InspectorWorkerAgent::didStartWorkerGlobalScope):
      (WebCore::InspectorWorkerAgent::workerGlobalScopeTerminated):
      (WebCore::InspectorWorkerAgent::destroyWorkerFrontendChannels):
      (WebCore::InspectorWorkerAgent::createWorkerFrontendChannel):
      * inspector/InspectorWorkerAgent.h:
      * inspector/InstrumentingAgents.cpp:
      (WebCore::instrumentationForWorkerGlobalScope):
      * inspector/InstrumentingAgents.h:
      * inspector/WorkerDebuggerAgent.cpp:
      (WebCore::WorkerDebuggerAgent::create):
      (WebCore::WorkerDebuggerAgent::WorkerDebuggerAgent):
      (WebCore::WorkerDebuggerAgent::~WorkerDebuggerAgent):
      (WebCore::WorkerDebuggerAgent::interruptAndDispatchInspectorCommands):
      (WebCore::WorkerDebuggerAgent::injectedScriptForEval):
      * inspector/WorkerDebuggerAgent.h:
      * inspector/WorkerInspectorController.cpp:
      (WebCore::WorkerInspectorController::WorkerInspectorController):
      (WebCore::WorkerInspectorController::connectFrontend):
      * inspector/WorkerInspectorController.h:
      * inspector/WorkerRuntimeAgent.cpp:
      (WebCore::WorkerRuntimeAgent::WorkerRuntimeAgent):
      (WebCore::WorkerRuntimeAgent::injectedScriptForEval):
      (WebCore::WorkerRuntimeAgent::pauseWorkerGlobalScope):
      * inspector/WorkerRuntimeAgent.h:
      (WebCore::WorkerRuntimeAgent::create):
      * loader/ThreadableLoader.cpp:
      (WebCore::ThreadableLoader::create):
      (WebCore::ThreadableLoader::loadResourceSynchronously):
      * loader/WorkerThreadableLoader.cpp:
      (WebCore::WorkerThreadableLoader::WorkerThreadableLoader):
      (WebCore::WorkerThreadableLoader::loadResourceSynchronously):
      (WebCore::workerGlobalScopeDidSendData):
      (WebCore::WorkerThreadableLoader::MainThreadBridge::didSendData):
      (WebCore::workerGlobalScopeDidReceiveResponse):
      (WebCore::WorkerThreadableLoader::MainThreadBridge::didReceiveResponse):
      (WebCore::workerGlobalScopeDidReceiveData):
      (WebCore::WorkerThreadableLoader::MainThreadBridge::didReceiveData):
      (WebCore::workerGlobalScopeDidFinishLoading):
      (WebCore::WorkerThreadableLoader::MainThreadBridge::didFinishLoading):
      (WebCore::workerGlobalScopeDidFail):
      (WebCore::WorkerThreadableLoader::MainThreadBridge::didFail):
      (WebCore::workerGlobalScopeDidFailAccessControlCheck):
      (WebCore::WorkerThreadableLoader::MainThreadBridge::didFailAccessControlCheck):
      (WebCore::workerGlobalScopeDidFailRedirectCheck):
      (WebCore::WorkerThreadableLoader::MainThreadBridge::didFailRedirectCheck):
      * loader/WorkerThreadableLoader.h:
      (WebCore::WorkerThreadableLoader::create):
      * loader/cache/MemoryCache.cpp:
      (WebCore::MemoryCache::removeRequestFromCache):
      * platform/blackberry/LocalFileSystemBlackBerry.cpp:
      (WebCore::openFileSystem):
      (WebCore::LocalFileSystem::deleteFileSystem):
      * platform/blackberry/WorkerAsyncFileSystemBlackBerry.cpp:
      (WebCore::WorkerAsyncFileSystemBlackBerry::WorkerAsyncFileSystemBlackBerry):
      (WebCore::WorkerAsyncFileSystemBlackBerry::openFileSystem):
      (WebCore::WorkerAsyncFileSystemBlackBerry::deleteFileSystem):
      * platform/blackberry/WorkerAsyncFileSystemBlackBerry.h:
      (WebCore::WorkerAsyncFileSystemBlackBerry::create):
      * platform/blackberry/WorkerAsyncFileWriterBlackBerry.h:
      * platform/blackberry/WorkerPlatformAsyncFileSystemCallbacks.cpp:
      (WebCore::WorkerPlatformAsyncFileSystemCallbacks::postTaskToWorkerThread):
      * platform/blackberry/WorkerPlatformAsyncFileSystemCallbacks.h:
      * platform/blackberry/WorkerPlatformFileWriterClient.cpp:
      (WebCore::WorkerPlatformFileWriterClient::postTaskToWorkerThreadIfNeeded):
      * platform/blackberry/WorkerPlatformFileWriterClient.h:
      * workers/DedicatedWorkerGlobalScope.cpp: Renamed from Source/WebCore/workers/DedicatedWorkerContext.cpp.
      (WebCore::DedicatedWorkerGlobalScope::create):
      (WebCore::DedicatedWorkerGlobalScope::DedicatedWorkerGlobalScope):
      (WebCore::DedicatedWorkerGlobalScope::~DedicatedWorkerGlobalScope):
      (WebCore::DedicatedWorkerGlobalScope::interfaceName):
      (WebCore::DedicatedWorkerGlobalScope::postMessage):
      (WebCore::DedicatedWorkerGlobalScope::importScripts):
      (WebCore::DedicatedWorkerGlobalScope::thread):
      * workers/DedicatedWorkerGlobalScope.h: Renamed from Source/WebCore/workers/DedicatedWorkerContext.h.
      * workers/DedicatedWorkerGlobalScope.idl: Renamed from Source/WebCore/workers/DedicatedWorkerContext.idl.
      * workers/DedicatedWorkerThread.cpp:
      (WebCore::DedicatedWorkerThread::createWorkerGlobalScope):
      (WebCore::DedicatedWorkerThread::runEventLoop):
      * workers/DedicatedWorkerThread.h:
      * workers/DefaultSharedWorkerRepository.cpp:
      (WebCore::SharedWorkerProxy::postTaskForModeToWorkerGlobalScope):
      (WebCore::SharedWorkerProxy::workerGlobalScopeClosed):
      (WebCore::SharedWorkerProxy::workerGlobalScopeDestroyed):
      (WebCore::SharedWorkerConnectTask::performTask):
      (WebCore::SharedWorkerScriptLoader::notifyFinished):
      (WebCore::DefaultSharedWorkerRepository::workerScriptLoaded):
      * workers/SharedWorkerGlobalScope.cpp: Renamed from Source/WebCore/workers/SharedWorkerContext.cpp.
      (WebCore::createConnectEvent):
      (WebCore::SharedWorkerGlobalScope::create):
      (WebCore::SharedWorkerGlobalScope::SharedWorkerGlobalScope):
      (WebCore::SharedWorkerGlobalScope::~SharedWorkerGlobalScope):
      (WebCore::SharedWorkerGlobalScope::interfaceName):
      (WebCore::SharedWorkerGlobalScope::thread):
      (WebCore::SharedWorkerGlobalScope::logExceptionToConsole):
      * workers/SharedWorkerGlobalScope.h: Renamed from Source/WebCore/workers/SharedWorkerContext.h.
      (WebCore::SharedWorkerGlobalScope::name):
      * workers/SharedWorkerGlobalScope.idl: Renamed from Source/WebCore/workers/SharedWorkerContext.idl.
      * workers/SharedWorkerThread.cpp:
      (WebCore::SharedWorkerThread::createWorkerGlobalScope):
      * workers/SharedWorkerThread.h:
      * workers/Worker.cpp:
      (WebCore::Worker::Worker):
      (WebCore::Worker::postMessage):
      (WebCore::Worker::terminate):
      (WebCore::Worker::notifyFinished):
      * workers/Worker.h:
      * workers/WorkerGlobalScope.cpp: Renamed from Source/WebCore/workers/WorkerContext.cpp.
      (WebCore::CloseWorkerGlobalScopeTask::create):
      (WebCore::CloseWorkerGlobalScopeTask::performTask):
      (WebCore::CloseWorkerGlobalScopeTask::isCleanupTask):
      (WebCore::WorkerGlobalScope::WorkerGlobalScope):
      (WebCore::WorkerGlobalScope::~WorkerGlobalScope):
      (WebCore::WorkerGlobalScope::applyContentSecurityPolicyFromString):
      (WebCore::WorkerGlobalScope::scriptExecutionContext):
      (WebCore::WorkerGlobalScope::virtualURL):
      (WebCore::WorkerGlobalScope::virtualCompleteURL):
      (WebCore::WorkerGlobalScope::completeURL):
      (WebCore::WorkerGlobalScope::userAgent):
      (WebCore::WorkerGlobalScope::disableEval):
      (WebCore::WorkerGlobalScope::location):
      (WebCore::WorkerGlobalScope::close):
      (WebCore::WorkerGlobalScope::navigator):
      (WebCore::WorkerGlobalScope::hasPendingActivity):
      (WebCore::WorkerGlobalScope::postTask):
      (WebCore::WorkerGlobalScope::setTimeout):
      (WebCore::WorkerGlobalScope::clearTimeout):
      (WebCore::WorkerGlobalScope::clearInspector):
      (WebCore::WorkerGlobalScope::setInterval):
      (WebCore::WorkerGlobalScope::clearInterval):
      (WebCore::WorkerGlobalScope::importScripts):
      (WebCore::WorkerGlobalScope::errorEventTarget):
      (WebCore::WorkerGlobalScope::logExceptionToConsole):
      (WebCore::WorkerGlobalScope::addConsoleMessage):
      (WebCore::WorkerGlobalScope::addMessage):
      (WebCore::WorkerGlobalScope::addMessageToWorkerConsole):
      (WebCore::WorkerGlobalScope::isContextThread):
      (WebCore::WorkerGlobalScope::isJSExecutionForbidden):
      (WebCore::WorkerGlobalScope::eventTargetData):
      (WebCore::WorkerGlobalScope::ensureEventTargetData):
      (WebCore::WorkerGlobalScope::Observer::Observer):
      (WebCore::WorkerGlobalScope::Observer::~Observer):
      (WebCore::WorkerGlobalScope::Observer::stopObserving):
      (WebCore::WorkerGlobalScope::registerObserver):
      (WebCore::WorkerGlobalScope::unregisterObserver):
      (WebCore::WorkerGlobalScope::notifyObserversOfStop):
      (WebCore::WorkerGlobalScope::eventQueue):
      * workers/WorkerGlobalScope.h: Renamed from Source/WebCore/workers/WorkerContext.h.
      (WebCore::WorkerGlobalScope::isSharedWorkerGlobalScope):
      (WebCore::WorkerGlobalScope::isDedicatedWorkerGlobalScope):
      (WebCore::WorkerGlobalScope::url):
      (WebCore::WorkerGlobalScope::groupSettings):
      (WebCore::WorkerGlobalScope::script):
      (WebCore::WorkerGlobalScope::clearScript):
      (WebCore::WorkerGlobalScope::thread):
      (WebCore::WorkerGlobalScope::self):
      (WebCore::WorkerGlobalScope::workerInspectorController):
      (WebCore::WorkerGlobalScope::optionalNavigator):
      (WebCore::WorkerGlobalScope::optionalLocation):
      (WebCore::WorkerGlobalScope::isClosing):
      * workers/WorkerGlobalScope.idl: Renamed from Source/WebCore/workers/WorkerContext.idl.
      * workers/WorkerGlobalScopeProxy.h: Renamed from Source/WebCore/workers/WorkerContextProxy.h.
      (WebCore::WorkerGlobalScopeProxy::~WorkerGlobalScopeProxy):
      (WebCore::WorkerGlobalScopeProxy::PageInspector::~PageInspector):
      (WebCore::WorkerGlobalScopeProxy::connectToInspector):
      (WebCore::WorkerGlobalScopeProxy::disconnectFromInspector):
      (WebCore::WorkerGlobalScopeProxy::sendMessageToInspector):
      * workers/WorkerLoaderProxy.h:
      * workers/WorkerMessagingProxy.cpp:
      (WebCore::MessageWorkerGlobalScopeTask::create):
      (WebCore::MessageWorkerGlobalScopeTask::MessageWorkerGlobalScopeTask):
      (WebCore::MessageWorkerGlobalScopeTask::performTask):
      (WebCore::WorkerGlobalScopeDestroyedTask::create):
      (WebCore::WorkerGlobalScopeDestroyedTask::WorkerGlobalScopeDestroyedTask):
      (WebCore::WorkerGlobalScopeDestroyedTask::performTask):
      (WebCore::WorkerTerminateTask::performTask):
      (WebCore::PostMessageToPageInspectorTask::performTask):
      (WebCore::WorkerGlobalScopeProxy::create):
      (WebCore::WorkerMessagingProxy::WorkerMessagingProxy):
      (WebCore::WorkerMessagingProxy::~WorkerMessagingProxy):
      (WebCore::WorkerMessagingProxy::startWorkerGlobalScope):
      (WebCore::WorkerMessagingProxy::postMessageToWorkerGlobalScope):
      (WebCore::WorkerMessagingProxy::postTaskForModeToWorkerGlobalScope):
      (WebCore::WorkerMessagingProxy::workerObjectDestroyedInternal):
      (WebCore::connectToWorkerGlobalScopeInspectorTask):
      (WebCore::WorkerMessagingProxy::connectToInspector):
      (WebCore::disconnectFromWorkerGlobalScopeInspectorTask):
      (WebCore::WorkerMessagingProxy::disconnectFromInspector):
      (WebCore::dispatchOnInspectorBackendTask):
      (WebCore::WorkerMessagingProxy::workerGlobalScopeDestroyed):
      (WebCore::WorkerMessagingProxy::workerGlobalScopeClosed):
      (WebCore::WorkerMessagingProxy::workerGlobalScopeDestroyedInternal):
      (WebCore::WorkerMessagingProxy::terminateWorkerGlobalScope):
      * workers/WorkerMessagingProxy.h:
      * workers/WorkerObjectProxy.h:
      * workers/WorkerReportingProxy.h:
      * workers/WorkerRunLoop.cpp:
      (WebCore::WorkerRunLoop::run):
      (WebCore::WorkerRunLoop::runInMode):
      (WebCore::WorkerRunLoop::runCleanupTasks):
      (WebCore::WorkerRunLoop::Task::performTask):
      * workers/WorkerRunLoop.h:
      * workers/WorkerScriptLoader.cpp:
      (WebCore::WorkerScriptLoader::loadSynchronously):
      * workers/WorkerThread.cpp:
      (WebCore::WorkerThread::workerThread):
      (WebCore::WorkerThread::runEventLoop):
      (WebCore::WorkerThreadShutdownFinishTask::performTask):
      (WebCore::WorkerThreadShutdownStartTask::performTask):
      (WebCore::WorkerThread::stop):
      * workers/WorkerThread.h:
      (WebCore::WorkerThread::workerGlobalScope):
      * xml/XMLHttpRequest.cpp:
      (WebCore::XMLHttpRequest::usesDashboardBackwardCompatibilityMode):
      (WebCore::XMLHttpRequest::responseXML):
      
      Source/WebKit/qt:
      
      Update calls to ScriptExecutionContext::isWorkerContext() as it was
      renamed to ScriptExecutionContext::isWorkerGlobalScope().
      
      * WebCoreSupport/NotificationPresenterClientQt.cpp:
      (WebCore::NotificationPresenterClientQt::show):
      (WebCore::NotificationPresenterClientQt::toPage):
      (WebCore::NotificationPresenterClientQt::toFrame):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@152080 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      14792a6b
  3. 16 Apr, 2013 1 commit
    • mjs@apple.com's avatar
      Remove even yet still more traces of v8 · d52258b1
      mjs@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=114693
      
      Reviewed by Anders Carlsson.
      
      ../WebCore: 
      
      No behavior change.
      
      * bindings/generic/ActiveDOMCallback.h:
      (WebCore::ActiveDOMCallback::isScriptControllerTerminating): Remove a V8-specific
      method and the comment referencing it.
      * bindings/generic/ActiveDOMCallback.cpp:
      (WebCore::ActiveDOMCallback::isScriptControllerTerminating): ditto
      * fileapi/File.cpp:
      (WebCore::File::File): Remove a comment referencing v8
      * inspector/InjectedScriptExterns.js: ditto
      
      ../WebKit2: 
      
      * Scripts/generate-forwarding-headers.pl: Remove v8 from list of platforms.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148534 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d52258b1
  4. 07 Mar, 2012 2 commits
    • michaeln@google.com's avatar
      Unreviewed build fix · b38e3454
      michaeln@google.com authored
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@110136 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b38e3454
    • michaeln@google.com's avatar
      [Chromium] Don't be so CRASH() happy in the bindings layer. · 6e104c0f
      michaeln@google.com authored
      https://bugs.webkit.org/show_bug.cgi?id=75111
      - change the v8 bindings generated code to check for the 'worker is terminating'
        condition prior to committing a suicidal CRASH()
      - fixup custom v8 bindings accordingly
      - simplify bindings/generic/ActiveDOMCallback, there is no need for it to support
        destruction on a different thread
      
      Reviewed by David Levin.
      
      No new tests, existing tests apply.
      
      * bindings/generic/ActiveDOMCallback.cpp: Simplified in general.
      (WebCore):
      (WebCore::ActiveDOMCallback::ActiveDOMCallback):
      (WebCore::ActiveDOMCallback::~ActiveDOMCallback):
      (WebCore::ActiveDOMCallback::canInvokeCallback):
      (WebCore::ActiveDOMCallback::isScriptControllerTerminating): New method to avoid CRASH()ing in exceptional conditions in v8 bindings.
      * bindings/generic/ActiveDOMCallback.h: Derive from ContextDestructionObserver.
      * bindings/js/WorkerScriptController.cpp:
      (WebCore::WorkerScriptController::scheduleExecutionTermination): Use a mutex to provide a memory barrier.
      (WebCore::WorkerScriptController::isExecutionTerminating): New supporting method to avoid CRASH()ing in exceptional conditions.
      * bindings/js/WorkerScriptController.h:
      (WorkerScriptController):
      * bindings/scripts/CodeGeneratorV8.pm: Generates v8 bindding code that uses isScriptControllerTerminating to avoid CRASH()ing.
      (GenerateCallbackImplementation):
      * bindings/scripts/test/V8/V8TestCallback.cpp: Fixup expected outputs of the modified CodeGeneratorV8.pm script.
      (WebCore::V8TestCallback::callbackWithClass1Param):
      (WebCore::V8TestCallback::callbackWithClass2Param):
      (WebCore::V8TestCallback::callbackWithStringList):
      * bindings/v8/WorkerScriptController.cpp:
      (WebCore::WorkerScriptController::WorkerScriptController): Initialize a new data member.
      (WebCore::WorkerScriptController::scheduleExecutionTermination): Use a mutex to provide a memory barrier.
      (WebCore::WorkerScriptController::isExecutionTerminating): New supporting method to avoid CRASH()ing in exceptional conditions.
      * bindings/v8/WorkerScriptController.h: Add a pair of new data members, bool + mutex.
      (WorkerScriptController):
      * bindings/v8/custom/V8CustomSQLStatementErrorCallback.cpp:
      (WebCore::V8SQLStatementErrorCallback::handleEvent):
      * bindings/v8/custom/V8MutationCallbackCustom.cpp:
      (WebCore::V8MutationCallback::handleEvent):
      * dom/ScriptExecutionContext.cpp:
      (WebCore::ScriptExecutionContext::ScriptExecutionContext): Initilaize data members.
      (WebCore::ScriptExecutionContext::stopActiveDOMObjects): Set m_activeDOMObjectsAreStopped.
      * dom/ScriptExecutionContext.h: Add m_activeDOMObjectsAreStopped data member.
      (WebCore::ScriptExecutionContext::activeDOMObjectsAreStopped): Simple getter.
      (ScriptExecutionContext):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@110131 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6e104c0f
  5. 09 Feb, 2012 1 commit
    • commit-queue@webkit.org's avatar
      Source/WebCore: Ensure timers and other active DOM objects do not fire in suspended documents. · ca6a06fe
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=53733
      
      ScriptExecutionContext now remembers it has suspended active DOM objects
      and suspends all newly installed active DOM objects as well.
      
      All create-calls active DOM objects now calls the post constructor method
      suspendIfNeeded that updates the suspend state. It is post constructor
      because the suspend/resume functions are virtual and thus can not be called
      from constructors.
      
      Patch by Allan Sandfeld Jensen <allan.jensen@nokia.com> on 2012-02-09
      Reviewed by Mihai Parparita.
      
      Test: fast/events/suspend-timers.html
      
      * Modules/intents/IntentRequest.cpp:
      (WebCore::IntentRequest::create):
      * bindings/generic/ActiveDOMCallback.cpp:
      (WebCore::ActiveDOMCallback::ActiveDOMCallback):
      * dom/ActiveDOMObject.cpp:
      (WebCore::ActiveDOMObject::ActiveDOMObject):
      (WebCore::ActiveDOMObject::~ActiveDOMObject):
      (WebCore::ActiveDOMObject::suspendIfNeeded):
      * dom/ActiveDOMObject.h:
      (WebCore::ActiveDOMObject::suspendIfNeededCalled):
      * dom/DocumentEventQueue.cpp:
      (WebCore::DocumentEventQueue::DocumentEventQueue):
      * dom/ScriptExecutionContext.cpp:
      (WebCore::ScriptExecutionContext::ScriptExecutionContext):
      (WebCore::ScriptExecutionContext::~ScriptExecutionContext):
      (WebCore::ScriptExecutionContext::canSuspendActiveDOMObjects):
      (WebCore::ScriptExecutionContext::suspendActiveDOMObjects):
      (WebCore::ScriptExecutionContext::resumeActiveDOMObjects):
      (WebCore::ScriptExecutionContext::stopActiveDOMObjects):
      (WebCore::ScriptExecutionContext::suspendActiveDOMObjectIfNeeded):
      * dom/ScriptExecutionContext.h:
      (ScriptExecutionContext):
      (WebCore::ScriptExecutionContext::activeDOMObjectsAreSuspended):
      * fileapi/DOMFileSystem.cpp:
      (WebCore::DOMFileSystem::create):
      * fileapi/FileReader.cpp:
      (WebCore::FileReader::create):
      * fileapi/FileReader.h:
      * fileapi/FileWriter.cpp:
      (WebCore::FileWriter::create):
      * fileapi/FileWriter.h:
      * history/CachedFrame.cpp:
      (WebCore::CachedFrame::CachedFrame):
      * html/HTMLAudioElement.cpp:
      (WebCore::HTMLAudioElement::create):
      (WebCore::HTMLAudioElement::createForJSConstructor):
      * html/HTMLMarqueeElement.cpp:
      (WebCore::HTMLMarqueeElement::create):
      * html/HTMLVideoElement.cpp:
      (WebCore::HTMLVideoElement::create):
      * mediastream/PeerConnection.cpp:
      (WebCore::PeerConnection::create):
      * notifications/Notification.cpp:
      (WebCore::Notification::create):
      * notifications/NotificationCenter.cpp:
      (WebCore::NotificationCenter::create):
      * notifications/NotificationCenter.h:
      * page/DOMTimer.cpp:
      (WebCore::DOMTimer::install):
      (WebCore::DOMTimer::fired):
      * page/EventSource.cpp:
      (WebCore::EventSource::create):
      * page/SuspendableTimer.cpp:
      (WebCore::SuspendableTimer::SuspendableTimer):
      * storage/IDBDatabase.cpp:
      (WebCore::IDBDatabase::create):
      * storage/IDBRequest.cpp:
      (WebCore::IDBRequest::create):
      * storage/IDBTransaction.cpp:
      (WebCore::IDBTransaction::create):
      * storage/IDBVersionChangeRequest.cpp:
      (WebCore::IDBVersionChangeRequest::create):
      * webaudio/AudioContext.cpp:
      (WebCore::AudioContext::create):
      (WebCore::AudioContext::createOfflineContext):
      * websockets/WebSocket.cpp:
      (WebCore::WebSocket::create):
      * websockets/WebSocket.h:
      * workers/SharedWorker.cpp:
      (WebCore::SharedWorker::create):
      * workers/Worker.cpp:
      (WebCore::Worker::create):
      * xml/XMLHttpRequest.cpp:
      (WebCore::XMLHttpRequest::create):
      
      LayoutTests: Test that timers do not fire from subframes of suspended documents.
      https://bugs.webkit.org/show_bug.cgi?id=53733
      
      Patch by Allan Sandfeld Jensen <allan.jensen@nokia.com> on 2012-02-09
      Reviewed by Mihai Parparita.
      
      * fast/events/resources/suspend-subframe-1.html: Added.
      * fast/events/resources/suspend-subframe-2.html: Added.
      * fast/events/suspend-timers-expected.txt: Added.
      * fast/events/suspend-timers.html: Added.
      * platform/chromium/test_expectations.txt:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@107239 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ca6a06fe
  6. 06 Feb, 2012 2 commits
    • jchaffraix@webkit.org's avatar
      Unreviewed, rolling out r106797 and r106806. · 33dde258
      jchaffraix@webkit.org authored
      http://trac.webkit.org/changeset/106797
      http://trac.webkit.org/changeset/106806
      https://bugs.webkit.org/show_bug.cgi?id=77888
      
      The change is still causing some crashes in webaudio/ on the
      Chromium bots (Requested by jchaffraix on #webkit).
      
      Patch by Sheriff Bot <webkit.review.bot@gmail.com> on 2012-02-06
      
      Source/WebCore: 
      
      * Modules/intents/IntentRequest.cpp:
      (WebCore::IntentRequest::create):
      * bindings/generic/ActiveDOMCallback.cpp:
      (WebCore::ActiveDOMCallback::ActiveDOMCallback):
      * dom/ActiveDOMObject.cpp:
      (WebCore::ActiveDOMObject::ActiveDOMObject):
      (WebCore::ActiveDOMObject::~ActiveDOMObject):
      * dom/ActiveDOMObject.h:
      (ActiveDOMObject):
      * dom/DocumentEventQueue.cpp:
      (WebCore::DocumentEventQueue::DocumentEventQueue):
      * dom/ScriptExecutionContext.cpp:
      (WebCore::ScriptExecutionContext::ScriptExecutionContext):
      (WebCore::ScriptExecutionContext::~ScriptExecutionContext):
      (WebCore::ScriptExecutionContext::canSuspendActiveDOMObjects):
      (WebCore::ScriptExecutionContext::suspendActiveDOMObjects):
      (WebCore::ScriptExecutionContext::resumeActiveDOMObjects):
      (WebCore::ScriptExecutionContext::stopActiveDOMObjects):
      * dom/ScriptExecutionContext.h:
      (ScriptExecutionContext):
      * fileapi/DOMFileSystem.cpp:
      (WebCore::DOMFileSystem::create):
      * fileapi/FileReader.cpp:
      (WebCore):
      * fileapi/FileReader.h:
      (WebCore::FileReader::create):
      * fileapi/FileWriter.cpp:
      (WebCore):
      * fileapi/FileWriter.h:
      (WebCore::FileWriter::create):
      * history/CachedFrame.cpp:
      (WebCore::CachedFrame::CachedFrame):
      * html/HTMLAudioElement.cpp:
      (WebCore::HTMLAudioElement::create):
      (WebCore::HTMLAudioElement::createForJSConstructor):
      * html/HTMLMarqueeElement.cpp:
      (WebCore::HTMLMarqueeElement::create):
      * html/HTMLVideoElement.cpp:
      (WebCore::HTMLVideoElement::create):
      * mediastream/PeerConnection.cpp:
      (WebCore::PeerConnection::create):
      * notifications/Notification.cpp:
      (WebCore::Notification::create):
      * notifications/NotificationCenter.cpp:
      * notifications/NotificationCenter.h:
      (WebCore::NotificationCenter::create):
      * page/DOMTimer.cpp:
      (WebCore::DOMTimer::install):
      (WebCore::DOMTimer::fired):
      * page/EventSource.cpp:
      (WebCore::EventSource::create):
      * page/SuspendableTimer.cpp:
      (WebCore::SuspendableTimer::SuspendableTimer):
      * storage/IDBDatabase.cpp:
      (WebCore::IDBDatabase::create):
      * storage/IDBRequest.cpp:
      (WebCore::IDBRequest::create):
      * storage/IDBTransaction.cpp:
      (WebCore::IDBTransaction::create):
      * storage/IDBVersionChangeRequest.cpp:
      (WebCore::IDBVersionChangeRequest::create):
      * webaudio/AudioContext.cpp:
      (WebCore::AudioContext::create):
      * websockets/WebSocket.cpp:
      * websockets/WebSocket.h:
      (WebCore::WebSocket::create):
      * workers/SharedWorker.cpp:
      (WebCore::SharedWorker::create):
      * workers/Worker.cpp:
      (WebCore::Worker::create):
      * xml/XMLHttpRequest.cpp:
      (WebCore::XMLHttpRequest::create):
      
      LayoutTests: 
      
      * fast/events/resources/suspend-subframe-1.html: Removed.
      * fast/events/resources/suspend-subframe-2.html: Removed.
      * fast/events/suspend-timers-expected.txt: Removed.
      * fast/events/suspend-timers.html: Removed.
      * platform/chromium/test_expectations.txt:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106823 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      33dde258
    • commit-queue@webkit.org's avatar
      Source/WebCore: Ensure timers and other active DOM objects do not fire in suspended documents. · 6e77be08
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=53733
      
      ScriptExecutionContext now remembers it has suspended active DOM objects
      and suspends all newly installed active DOM objects as well.
      
      All create-calls active DOM objects now calls the post constructor method
      suspendIfNeeded that updates the suspend state. It is post constructor
      because the suspend/resume functions are virtual and thus can not be called
      from constructors.
      
      Patch by Allan Sandfeld Jensen <allan.jensen@nokia.com> on 2012-02-06
      Reviewed by Mihai Parparita.
      
      Test: fast/events/suspend-timers.html
      
      * Modules/intents/IntentRequest.cpp:
      (WebCore::IntentRequest::create):
      * bindings/generic/ActiveDOMCallback.cpp:
      (WebCore::ActiveDOMCallback::ActiveDOMCallback):
      * dom/ActiveDOMObject.cpp:
      (WebCore::ActiveDOMObject::ActiveDOMObject):
      (WebCore::ActiveDOMObject::~ActiveDOMObject):
      (WebCore::ActiveDOMObject::suspendIfNeeded):
      * dom/ActiveDOMObject.h:
      (WebCore::ActiveDOMObject::suspendIfNeededCalled):
      * dom/DocumentEventQueue.cpp:
      (WebCore::DocumentEventQueue::DocumentEventQueue):
      * dom/ScriptExecutionContext.cpp:
      (WebCore::ScriptExecutionContext::ScriptExecutionContext):
      (WebCore::ScriptExecutionContext::~ScriptExecutionContext):
      (WebCore::ScriptExecutionContext::canSuspendActiveDOMObjects):
      (WebCore::ScriptExecutionContext::suspendActiveDOMObjects):
      (WebCore::ScriptExecutionContext::resumeActiveDOMObjects):
      (WebCore::ScriptExecutionContext::stopActiveDOMObjects):
      (WebCore::ScriptExecutionContext::suspendActiveDOMObjectIfNeeded):
      * dom/ScriptExecutionContext.h:
      (WebCore::ScriptExecutionContext::activeDOMObjectsAreSuspended):
      * fileapi/DOMFileSystem.cpp:
      (WebCore::DOMFileSystem::create):
      * fileapi/FileReader.cpp:
      (WebCore::FileReader::create):
      * fileapi/FileReader.h:
      * fileapi/FileWriter.cpp:
      (WebCore::FileWriter::create):
      * fileapi/FileWriter.h:
      * history/CachedFrame.cpp:
      (WebCore::CachedFrame::CachedFrame):
      * html/HTMLAudioElement.cpp:
      (WebCore::HTMLAudioElement::create):
      * html/HTMLMarqueeElement.cpp:
      (WebCore::HTMLMarqueeElement::create):
      * html/HTMLVideoElement.cpp:
      (WebCore::HTMLVideoElement::create):
      * mediastream/PeerConnection.cpp:
      (WebCore::PeerConnection::create):
      * notifications/Notification.cpp:
      (WebCore::Notification::create):
      * notifications/NotificationCenter.cpp:
      (WebCore::NotificationCenter::create):
      * notifications/NotificationCenter.h:
      * page/DOMTimer.cpp:
      (WebCore::DOMTimer::install):
      (WebCore::DOMTimer::fired):
      * page/EventSource.cpp:
      (WebCore::EventSource::create):
      * page/SuspendableTimer.cpp:
      (WebCore::SuspendableTimer::SuspendableTimer):
      * storage/IDBDatabase.cpp:
      (WebCore::IDBDatabase::create):
      * storage/IDBRequest.cpp:
      (WebCore::IDBRequest::create):
      * storage/IDBTransaction.cpp:
      (WebCore::IDBTransaction::create):
      * webaudio/AudioContext.cpp:
      (WebCore::AudioContext::create):
      * websockets/WebSocket.cpp:
      (WebCore::WebSocket::create):
      * websockets/WebSocket.h:
      * workers/SharedWorker.cpp:
      (WebCore::SharedWorker::create):
      * workers/Worker.cpp:
      (WebCore::Worker::create):
      * xml/XMLHttpRequest.cpp:
      (WebCore::XMLHttpRequest::create):
      
      LayoutTests: Test that timers do not fire from subframes of suspended documents.
      https://bugs.webkit.org/show_bug.cgi?id=53733
      
      Patch by Allan Sandfeld Jensen <allan.jensen@nokia.com> on 2012-02-06
      Reviewed by Mihai Parparita.
      
      * fast/events/resources/suspend-subframe-1.html: Added.
      * fast/events/resources/suspend-subframe-2.html: Added.
      * fast/events/suspend-timers-expected.txt: Added.
      * fast/events/suspend-timers.html: Added.
      * platform/chromium/test_expectations.txt:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106797 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6e77be08
  7. 03 Feb, 2012 2 commits
    • commit-queue@webkit.org's avatar
      Unreviewed, rolling out r106654. · 5928282e
      commit-queue@webkit.org authored
      http://trac.webkit.org/changeset/106654
      https://bugs.webkit.org/show_bug.cgi?id=77742
      
      triggers asserts on mac, win, gtk, qt debug bots (Requested by
      philn-tp on #webkit).
      
      Patch by Sheriff Bot <webkit.review.bot@gmail.com> on 2012-02-03
      
      Source/WebCore:
      
      * Modules/intents/IntentRequest.cpp:
      (WebCore::IntentRequest::create):
      * bindings/generic/ActiveDOMCallback.cpp:
      (WebCore::ActiveDOMCallback::ActiveDOMCallback):
      * dom/ActiveDOMObject.cpp:
      (WebCore::ActiveDOMObject::ActiveDOMObject):
      (WebCore::ActiveDOMObject::~ActiveDOMObject):
      * dom/ActiveDOMObject.h:
      (ActiveDOMObject):
      * dom/DocumentEventQueue.cpp:
      (WebCore::DocumentEventQueue::DocumentEventQueue):
      * dom/ScriptExecutionContext.cpp:
      (WebCore::ScriptExecutionContext::ScriptExecutionContext):
      (WebCore::ScriptExecutionContext::~ScriptExecutionContext):
      (WebCore::ScriptExecutionContext::canSuspendActiveDOMObjects):
      (WebCore::ScriptExecutionContext::suspendActiveDOMObjects):
      (WebCore::ScriptExecutionContext::resumeActiveDOMObjects):
      (WebCore::ScriptExecutionContext::stopActiveDOMObjects):
      * dom/ScriptExecutionContext.h:
      (ScriptExecutionContext):
      * fileapi/DOMFileSystem.cpp:
      (WebCore::DOMFileSystem::create):
      * fileapi/FileReader.cpp:
      (WebCore):
      * fileapi/FileReader.h:
      (WebCore::FileReader::create):
      * fileapi/FileWriter.cpp:
      (WebCore):
      * fileapi/FileWriter.h:
      (WebCore::FileWriter::create):
      * history/CachedFrame.cpp:
      (WebCore::CachedFrame::CachedFrame):
      * html/HTMLAudioElement.cpp:
      (WebCore::HTMLAudioElement::create):
      * html/HTMLMarqueeElement.cpp:
      (WebCore::HTMLMarqueeElement::create):
      * html/HTMLVideoElement.cpp:
      (WebCore::HTMLVideoElement::create):
      * mediastream/PeerConnection.cpp:
      (WebCore::PeerConnection::create):
      * notifications/Notification.cpp:
      (WebCore::Notification::create):
      * notifications/NotificationCenter.cpp:
      * notifications/NotificationCenter.h:
      (WebCore::NotificationCenter::create):
      * page/DOMTimer.cpp:
      (WebCore::DOMTimer::install):
      (WebCore::DOMTimer::fired):
      * page/EventSource.cpp:
      (WebCore::EventSource::create):
      * page/SuspendableTimer.cpp:
      (WebCore::SuspendableTimer::SuspendableTimer):
      * storage/IDBDatabase.cpp:
      (WebCore::IDBDatabase::create):
      * storage/IDBRequest.cpp:
      (WebCore::IDBRequest::create):
      * storage/IDBTransaction.cpp:
      (WebCore::IDBTransaction::create):
      * webaudio/AudioContext.cpp:
      (WebCore::AudioContext::create):
      * websockets/WebSocket.cpp:
      * websockets/WebSocket.h:
      (WebCore::WebSocket::create):
      * workers/SharedWorker.cpp:
      (WebCore::SharedWorker::create):
      * workers/Worker.cpp:
      (WebCore::Worker::create):
      * xml/XMLHttpRequest.cpp:
      (WebCore::XMLHttpRequest::create):
      
      LayoutTests:
      
      * fast/events/resources/suspend-subframe-1.html: Removed.
      * fast/events/resources/suspend-subframe-2.html: Removed.
      * fast/events/suspend-timers-expected.txt: Removed.
      * fast/events/suspend-timers.html: Removed.
      * platform/chromium/test_expectations.txt:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106667 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5928282e
    • commit-queue@webkit.org's avatar
      Source/WebCore: Ensure timers and other active DOM objects do not fire in suspended documents. · a8ca33b3
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=53733
      
      ScriptExecutionContext now remembers it has suspended active DOM objects
      and suspends all newly installed active DOM objects as well.
      
      All create-calls active DOM objects now calls the post constructor method
      suspendIfNeeded that updates the suspend state. It is post constructor
      because the suspend/resume functions are virtual and thus can not be called
      from constructors.
      
      Patch by Allan Sandfeld Jensen <allan.jensen@nokia.com> on 2012-02-03
      Reviewed by Mihai Parparita.
      
      Test: fast/events/suspend-timers.html
      
      * Modules/intents/IntentRequest.cpp:
      (WebCore::IntentRequest::create):
      * bindings/generic/ActiveDOMCallback.cpp:
      (WebCore::ActiveDOMCallback::ActiveDOMCallback):
      * dom/ActiveDOMObject.cpp:
      (WebCore::ActiveDOMObject::ActiveDOMObject):
      (WebCore::ActiveDOMObject::~ActiveDOMObject):
      (WebCore::ActiveDOMObject::suspendIfNeeded):
      * dom/ActiveDOMObject.h:
      (WebCore::ActiveDOMObject::suspendIfNeededCalled):
      * dom/DocumentEventQueue.cpp:
      (WebCore::DocumentEventQueue::DocumentEventQueue):
      * dom/ScriptExecutionContext.cpp:
      (WebCore::ScriptExecutionContext::ScriptExecutionContext):
      (WebCore::ScriptExecutionContext::~ScriptExecutionContext):
      (WebCore::ScriptExecutionContext::canSuspendActiveDOMObjects):
      (WebCore::ScriptExecutionContext::suspendActiveDOMObjects):
      (WebCore::ScriptExecutionContext::resumeActiveDOMObjects):
      (WebCore::ScriptExecutionContext::stopActiveDOMObjects):
      (WebCore::ScriptExecutionContext::suspendActiveDOMObjectIfNeeded):
      * dom/ScriptExecutionContext.h:
      (WebCore::ScriptExecutionContext::activeDOMObjectsAreSuspended):
      * fileapi/DOMFileSystem.cpp:
      (WebCore::DOMFileSystem::create):
      * fileapi/FileReader.cpp:
      (WebCore::FileReader::create):
      * fileapi/FileReader.h:
      * fileapi/FileWriter.cpp:
      (WebCore::FileWriter::create):
      * fileapi/FileWriter.h:
      * history/CachedFrame.cpp:
      (WebCore::CachedFrame::CachedFrame):
      * html/HTMLAudioElement.cpp:
      (WebCore::HTMLAudioElement::create):
      * html/HTMLMarqueeElement.cpp:
      (WebCore::HTMLMarqueeElement::create):
      * html/HTMLVideoElement.cpp:
      (WebCore::HTMLVideoElement::create):
      * mediastream/PeerConnection.cpp:
      (WebCore::PeerConnection::create):
      * notifications/Notification.cpp:
      (WebCore::Notification::create):
      * notifications/NotificationCenter.cpp:
      (WebCore::NotificationCenter::create):
      * notifications/NotificationCenter.h:
      * page/DOMTimer.cpp:
      (WebCore::DOMTimer::install):
      (WebCore::DOMTimer::fired):
      * page/EventSource.cpp:
      (WebCore::EventSource::create):
      * page/SuspendableTimer.cpp:
      (WebCore::SuspendableTimer::SuspendableTimer):
      * storage/IDBDatabase.cpp:
      (WebCore::IDBDatabase::create):
      * storage/IDBRequest.cpp:
      (WebCore::IDBRequest::create):
      * storage/IDBTransaction.cpp:
      (WebCore::IDBTransaction::create):
      * webaudio/AudioContext.cpp:
      (WebCore::AudioContext::create):
      * websockets/WebSocket.cpp:
      (WebCore::WebSocket::create):
      * websockets/WebSocket.h:
      * workers/SharedWorker.cpp:
      (WebCore::SharedWorker::create):
      * workers/Worker.cpp:
      (WebCore::Worker::create):
      * xml/XMLHttpRequest.cpp:
      (WebCore::XMLHttpRequest::create):
      
      LayoutTests: Test that timers do not fire from subframes of suspended documents.
      https://bugs.webkit.org/show_bug.cgi?id=53733
      
      Patch by Allan Sandfeld Jensen <allan.jensen@nokia.com> on 2012-02-03
      Reviewed by Mihai Parparita.
      
      * fast/events/resources/suspend-subframe-1.html: Added.
      * fast/events/resources/suspend-subframe-2.html: Added.
      * fast/events/suspend-timers-expected.txt: Added.
      * fast/events/suspend-timers.html: Added.
      * platform/chromium/test_expectations.txt:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106654 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a8ca33b3
  8. 25 Apr, 2011 1 commit
  9. 08 Jan, 2011 1 commit
  10. 13 Sep, 2010 1 commit
    • eric.carlson@apple.com's avatar
      2010-09-13 Eric Carlson <eric.carlson@apple.com> · 097ca95f
      eric.carlson@apple.com authored
              Reviewed by Geoff Garen.
      
              JavaScript dialog should not deactivate media element
              https://bugs.webkit.org/show_bug.cgi?id=45688
      
              Test: http/tests/media/reload-after-dialog.html
      
              * bindings/generic/ActiveDOMCallback.cpp:
              (WebCore::ActiveDOMObjectCallbackImpl::suspend): Add ReasonForSuspension parameter.
      
              * bindings/js/ScriptDebugServer.cpp:
              (WebCore::ScriptDebugServer::setJavaScriptPaused): Pass new parameter to suspendActiveDOMObjects.
      
              * dom/ActiveDOMObject.cpp:
              (WebCore::ActiveDOMObject::suspend): Add ReasonForSuspension parameter.
              * dom/ActiveDOMObject.h:
      
              * dom/ScriptExecutionContext.cpp:
              (WebCore::ScriptExecutionContext::suspendActiveDOMObjects): Ditto.
              * dom/ScriptExecutionContext.h:
      
              * history/CachedFrame.cpp:
              (WebCore::CachedFrame::CachedFrame): Pass new parameter to suspendActiveDOMObjects.
      
              * html/HTMLMarqueeElement.cpp:
              (WebCore::HTMLMarqueeElement::suspend): Add ReasonForSuspension parameter.
              * html/HTMLMarqueeElement.h:
      
              * html/HTMLMediaElement.cpp:
              (WebCore::HTMLMediaElement::stop): Deal with element being suspended.
              (WebCore::HTMLMediaElement::suspend): Do nothing unless reason for suspension is document
              becoming inactive.
              * html/HTMLMediaElement.h:
      
              * page/PageGroupLoadDeferrer.cpp:
              (WebCore::PageGroupLoadDeferrer::PageGroupLoadDeferrer): Pass WillShowDialog to suspendActiveDOMObjects.
      
              * page/SuspendableTimer.cpp:
              (WebCore::SuspendableTimer::suspend): Add ReasonForSuspension parameter.
              * page/SuspendableTimer.h:
      
              * websockets/WebSocket.cpp:
              (WebCore::WebSocket::suspend): Ditto.
              * websockets/WebSocket.h:
      
              * xml/XMLHttpRequest.cpp:
              (WebCore::XMLHttpRequest::suspend): Ditto.
              * xml/XMLHttpRequest.h:
      
      2010-09-13  Eric Carlson  <eric.carlson@apple.com>
      
              Reviewed by Geoff Garen.
      
              JavaScript dialog should not deactivate media element
              https://bugs.webkit.org/show_bug.cgi?id=45688
      
              * http/tests/media/reload-after-dialog-expected.txt: Added.
              * http/tests/media/reload-after-dialog.html: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@67432 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      097ca95f
  11. 09 Sep, 2010 1 commit
  12. 10 Aug, 2010 1 commit
    • dumi@chromium.org's avatar
      Do not post a sync task to the DB thread if it's terminating. · fb69dd33
      dumi@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=43676
      
      Reviewed by David Levin.
      
      * bindings/generic/ActiveDOMCallback.cpp: The context can
      sometimes be NULL. Check if it's NULL instead of asserting that
      it's not.
      (WebCore::ActiveDOMCallback::ActiveDOMCallback):
      * dom/ActiveDOMObject.cpp:
      (WebCore::ActiveDOMObject::ActiveDOMObject):
      
      * storage/Database.cpp: Do not post a sync task to the DB thread
      if the DB thread is terminating. Also, when a task is destroyed,
      ASSERT that it was completed, or that it had no synchronizer.
      (WebCore::Database::openAndVerifyVersion):
      (WebCore::Database::markAsDeletedAndClose):
      (WebCore::Database::tableNames):
      * storage/DatabaseTask.cpp:
      (WebCore::DatabaseTaskSynchronizer::DatabaseTaskSynchronizer):
      (WebCore::DatabaseTask::~DatabaseTask):
      (WebCore::DatabaseTask::performTask):
      * storage/DatabaseTask.h:
      (WebCore::DatabaseTaskSynchronizer::hasCheckedForTermination):
      (WebCore::DatabaseTaskSynchronizer::setHasCheckedForTermination):
      (WebCore::DatabaseTask::hasSynchronizer):
      (WebCore::DatabaseTask::hasCheckedForTermination):
      * storage/DatabaseThread.cpp:
      (WebCore::DatabaseThread::terminationRequested):
      (WebCore::DatabaseThread::scheduleTask):
      (WebCore::DatabaseThread::scheduleImmediateTask):
      * storage/DatabaseThread.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65108 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      fb69dd33
  13. 03 Aug, 2010 1 commit
    • dumi@chromium.org's avatar
      WebCore: Turn all callbacks into ActiveDOMObjects and create callbacks in the correct context. · 086b676d
      dumi@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=40112
      
      Reviewed by Adam Barth.
      
      Test: http/tests/storage/callbacks-are-called-in-correct-context.html
      
      * CMakeLists.txt: Added new files.
      * DerivedSources.make:
      * GNUmakefile.am:
      * WebCore.gypi:
      * WebCore.pro:
      * WebCore.vcproj/WebCore.vcproj:
      * WebCore.xcodeproj/project.pbxproj:
      
      * bindings/generic/ActiveDOMCallback.cpp: Added. The base class
      for all callbacks, that behaves like an ActiveDOMObject.
      (WebCore::DestroyOnContextThreadTask::create):
      (WebCore::DestroyOnContextThreadTask::performTask):
      (WebCore::DestroyOnContextThreadTask::DestroyOnContextThreadTask):
      (WebCore::ActiveDOMObjectCallbackImpl::ActiveDOMObjectCallbackImpl):
      (WebCore::ActiveDOMObjectCallbackImpl::contextDestroyed):
      (WebCore::ActiveDOMObjectCallbackImpl::canSuspend):
      (WebCore::ActiveDOMObjectCallbackImpl::suspend):
      (WebCore::ActiveDOMObjectCallbackImpl::resume):
      (WebCore::ActiveDOMObjectCallbackImpl::stop):
      (WebCore::ActiveDOMObjectCallbackImpl::canInvokeCallback):
      (WebCore::ActiveDOMObjectCallbackImpl::scriptExecutionContext):
      (WebCore::ActiveDOMObjectCallbackImpl::mutex):
      (WebCore::destroyOnContextThread):
      (WebCore::ActiveDOMCallback::ActiveDOMCallback):
      (WebCore::ActiveDOMCallback::~ActiveDOMCallback):
      (WebCore::ActiveDOMCallback::canInvokeCallback):
      (WebCore::ActiveDOMCallback::scriptExecutionContext):
      * bindings/generic/ActiveDOMCallback.h: Added.
      
      * bindings/js/JSCustomSQLStatementErrorCallback.cpp: Pass the
      right ScriptExecutionContext to the JSC callbacks.
      (WebCore::JSSQLStatementErrorCallback::handleEvent):
      * bindings/js/JSSQLTransactionCustom.cpp:
      (WebCore::JSSQLTransaction::executeSql):
      
      * bindings/scripts/CodeGeneratorJS.pm: Make all callbacks inherit
      from ActiveDOMCallback, and make them use the right
      ScriptExecutionContext.
      * bindings/scripts/CodeGeneratorV8.pm:
      
      * bindings/scripts/test/JS/JSTestCallback.cpp: Update the
      expectations for the code generated by CodeGenerator{JS|V8}.pm.
      (WebCore::JSTestCallback::JSTestCallback):
      (WebCore::JSTestCallback::~JSTestCallback):
      (WebCore::JSTestCallback::callbackWithClass1Param):
      (WebCore::JSTestCallback::callbackWithClass2Param):
      * bindings/scripts/test/JS/JSTestCallback.h:
      * bindings/scripts/test/V8/V8TestCallback.cpp:
      (WebCore::V8TestCallback::V8TestCallback):
      (WebCore::V8TestCallback::callbackWithClass1Param):
      (WebCore::V8TestCallback::callbackWithClass2Param):
      * bindings/scripts/test/V8/V8TestCallback.h:
      (WebCore::V8TestCallback::create):
      * bindings/scripts/test/V8/V8TestObj.cpp:
      (WebCore::TestObjInternal::methodWithCallbackArgCallback):
      (WebCore::TestObjInternal::methodWithNonCallbackArgAndCallbackArgCallback):
      (WebCore::TestObjInternal::methodWithCallbackAndOptionalArgCallback):
      
      * bindings/v8/custom/V8CustomSQLStatementErrorCallback.cpp: Pass
      the right ScriptExecutionContext to the V8 callbacks.
      (WebCore::V8SQLStatementErrorCallback::handleEvent):
      * bindings/v8/custom/V8DOMWindowCustom.cpp:
      (WebCore::V8DOMWindow::openDatabaseCallback):
      * bindings/v8/custom/V8DatabaseCustom.cpp:
      (WebCore::V8Database::changeVersionCallback):
      (WebCore::createTransaction):
      * bindings/v8/custom/V8DatabaseSyncCustom.cpp:
      (WebCore::V8DatabaseSync::changeVersionCallback):
      (WebCore::createTransaction):
      * bindings/v8/custom/V8SQLTransactionCustom.cpp:
      (WebCore::V8SQLTransaction::executeSqlCallback):
      * bindings/v8/custom/V8WorkerContextCustom.cpp:
      (WebCore::V8WorkerContext::openDatabaseCallback):
      (WebCore::V8WorkerContext::openDatabaseSyncCallback):
      
      * dom/ActiveDOMObject.cpp: Simplify the code.
      (WebCore::ActiveDOMObject::ActiveDOMObject):
      (WebCore::ActiveDOMObject::~ActiveDOMObject):
      
      * storage/Database.cpp: CallbackClass::handleEvent() doesn't take
      a ScriptExecutionContext anymore.
      (WebCore::DatabaseCreationCallbackTask::performTask):
      * storage/DatabaseCallback.h:
      * storage/DatabaseSync.cpp:
      (WebCore::DatabaseSync::openDatabaseSync):
      * storage/EntryCallback.h:
      * storage/ErrorCallback.h:
      * storage/FileSystemCallback.h:
      * storage/MetadataCallback.h:
      * storage/SQLStatement.cpp:
      (WebCore::SQLStatement::performCallback):
      * storage/SQLStatementCallback.h:
      * storage/SQLStatementErrorCallback.h:
      * storage/SQLTransaction.cpp:
      (WebCore::SQLTransaction::deliverTransactionCallback):
      (WebCore::SQLTransaction::deliverTransactionErrorCallback):
      * storage/SQLTransactionCallback.h:
      * storage/SQLTransactionErrorCallback.h:
      * storage/SQLTransactionSync.cpp:
      (WebCore::SQLTransactionSync::execute):
      * storage/SQLTransactionSyncCallback.h:
      
      LayoutTests: Make sure all DB callbacks run in the correct context.
      https://bugs.webkit.org/show_bug.cgi?id=40112
      
      Reviewed by Adam Barth.
      
      * http/tests/storage: Added.
      * http/tests/storage/callbacks-are-called-in-correct-context-expected.txt: Added.
      * http/tests/storage/callbacks-are-called-in-correct-context.html: Added.
      * http/tests/storage/resources: Added.
      * http/tests/storage/resources/callbacks-are-called-in-correct-context-first-frame.html: Added.
      * http/tests/storage/resources/callbacks-are-called-in-correct-context-output-frame.html: Added.
      * http/tests/storage/resources/callbacks-are-called-in-correct-context-second-frame.html: Added.
      * http/tests/storage/resources/callbacks-are-called-in-correct-context-third-frame.html: Added.
      * http/tests/storage/resources/callbacks-are-called-in-correct-context.cgi: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64537 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      086b676d