1. 02 Oct, 2013 1 commit
    • weinig@apple.com's avatar
      Convert PageGroup to using std::unique_ptr · e8dfefaf
      weinig@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=122184
      
      Reviewed by Anders Carlsson.
      
      * page/CaptionUserPreferences.cpp:
      * page/CaptionUserPreferences.h:
      * page/CaptionUserPreferencesMediaAF.cpp:
      * page/CaptionUserPreferencesMediaAF.h:
      * page/Frame.cpp:
      * page/GroupSettings.h:
      * page/Page.cpp:
      * page/PageGroup.cpp:
      * page/PageGroup.h:
      * page/UserScriptTypes.h:
      * page/UserStyleSheetTypes.h:
      * workers/DedicatedWorkerGlobalScope.h:
      * workers/DedicatedWorkerThread.cpp:
      * workers/DedicatedWorkerThread.h:
      * workers/SharedWorkerGlobalScope.cpp:
      * workers/SharedWorkerGlobalScope.h:
      * workers/SharedWorkerThread.cpp:
      * workers/SharedWorkerThread.h:
      * workers/WorkerGlobalScope.cpp:
      * workers/WorkerGlobalScope.h:
      * workers/WorkerThread.cpp:
      * workers/WorkerThread.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@156751 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e8dfefaf
  2. 27 Sep, 2013 1 commit
    • darin@apple.com's avatar
      rename KURL to URL · 5ffbb5c7
      darin@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=16214
      
      Reviewed by Andreas Kling.
      
      Source/WebCore:
      
      * many files: Renamed, using script.
      
      Source/WebKit:
      
      * WebKit.vcxproj/WebKitExportGenerator/WebKitExports.def.in:
      Let the script to try to rename here.
      
      Source/WebKit/blackberry:
      
      * many files: Renamed, using script.
      
      Source/WebKit/efl:
      
      * many files: Renamed, using script.
      
      Source/WebKit/gtk:
      
      * many files: Renamed, using script.
      
      Source/WebKit/mac:
      
      * many files: Renamed, using script.
      
      Source/WebKit/qt:
      
      * many files: Renamed, using script.
      
      Source/WebKit/win:
      
      * many files: Renamed, using script.
      
      Source/WebKit/wince:
      
      * many files: Renamed, using script.
      
      Source/WebKit2:
      
      * many files: Renamed, using script.
      
      Tools:
      
      * many files: Renamed, using script.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@156550 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5ffbb5c7
  3. 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
  4. 15 Mar, 2013 1 commit
    • ap@apple.com's avatar
      Minor cleanup in worker code · b42f3fb0
      ap@apple.com authored
              https://bugs.webkit.org/show_bug.cgi?id=112455
      
              Reviewed by Anders Carlsson.
      
              - Added OVERRIDE keywords.
              - Toned down FIXMEs about single MessagePort versions of functions. It's not a given
              that we'll want to get rid of them even when implementing array versions.
              - Explicitly marked virtual destructors as virtual.
      
              * dom/MessageEvent.cpp:
              * dom/MessageEvent.h:
              * workers/Worker.cpp:
              * workers/Worker.h:
              Removed an unused version of postMessage() that took no MessagePorts. This makes
              it less confusing why MessagePortArray is passed by pointer, and not by reference.
      
              * workers/DedicatedWorkerContext.cpp:
              (WebCore::DedicatedWorkerContext::~DedicatedWorkerContext):
              * workers/DedicatedWorkerContext.h:
              Added a destructor instead of an implicit one.
              Removed an unused version of postMessage() that took no MessagePorts.
      
              * workers/SharedWorker.h: Removed an unused virtual function (thank you OVERRIDE!)
      
              * dom/MessagePort.cpp:
              * dom/MessagePort.h:
              * loader/WorkerThreadableLoader.h:
              * page/DOMWindow.h:
              * workers/AbstractWorker.h:
              * workers/DedicatedWorkerThread.h:
              * workers/SharedWorkerContext.h:
              * workers/SharedWorkerThread.h:
              * workers/WorkerContext.h:
              * workers/WorkerMessagingProxy.h:
              * workers/WorkerObjectProxy.h:
              * workers/WorkerScriptLoader.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@145930 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b42f3fb0
  5. 22 Aug, 2012 1 commit
    • jpfau@apple.com's avatar
      Allow blocking of Web SQL databases in third-party web workers · bcbbf661
      jpfau@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=94170
      
      Reviewed by Adam Barth.
      
      Source/WebCore:
      
      Web workers did not previously know anything about the document that
      spawned them. This is undefined for shared workers, but for dedicated
      workers, we now pipe the information through.
      
      Tests: http/tests/security/cross-origin-worker-websql-allowed.html
             http/tests/security/cross-origin-worker-websql.html
      
      * Modules/webdatabase/WorkerContextWebDatabase.cpp: Pass information about the top origin to canAccessDatabase
      (WebCore::WorkerContextWebDatabase::openDatabase):
      (WebCore::WorkerContextWebDatabase::openDatabaseSync):
      * WebCore.exp.in: Make SecurityOrigin::isolatedCopy const
      * page/SecurityOrigin.cpp:
      (WebCore::SecurityOrigin::isolatedCopy):
      (WebCore::SecurityOrigin::canAccessStorage):
      * page/SecurityOrigin.h:
      * workers/DedicatedWorkerContext.cpp: Pass topOrigin
      (WebCore::DedicatedWorkerContext::create):
      (WebCore::DedicatedWorkerContext::DedicatedWorkerContext):
      * workers/DedicatedWorkerContext.h:
      (DedicatedWorkerContext):
      * workers/DedicatedWorkerThread.cpp: Pass topOrigin
      (WebCore::DedicatedWorkerThread::create):
      (WebCore::DedicatedWorkerThread::DedicatedWorkerThread):
      (WebCore::DedicatedWorkerThread::createWorkerContext):
      * workers/DedicatedWorkerThread.h:
      (DedicatedWorkerThread):
      * workers/SharedWorkerContext.cpp: Pass topOrigin
      (WebCore::SharedWorkerContext::SharedWorkerContext):
      * workers/SharedWorkerThread.cpp:
      (WebCore::SharedWorkerThread::SharedWorkerThread):
      (WebCore::SharedWorkerThread::createWorkerContext):
      * workers/SharedWorkerThread.h:
      (SharedWorkerThread): Pass topOrigin
      * workers/WorkerContext.cpp:
      (WebCore::WorkerContext::WorkerContext):
      * workers/WorkerContext.h:
      (WebCore::WorkerContext::topOrigin):
      (WorkerContext):
      * workers/WorkerMessagingProxy.cpp: Pass topOrigin
      (WebCore::WorkerMessagingProxy::startWorkerContext):
      * workers/WorkerThread.cpp:
      (WebCore::WorkerThreadStartupData::create):
      (WorkerThreadStartupData):
      (WebCore::WorkerThreadStartupData::WorkerThreadStartupData):
      (WebCore::WorkerThread::WorkerThread):
      (WebCore::WorkerThread::workerThread):
      * workers/WorkerThread.h:
      (WorkerThread):
      
      Source/WebKit/chromium:
      
      Web workers did not previously know anything about the document that
      spawned them. This is undefined for shared workers, but for dedicated
      workers, we now pipe the information through.
      
      * src/WebWorkerClientImpl.cpp:
      (WebKit::WebWorkerClientImpl::startWorkerContext): Pass top document's origin
      
      LayoutTests:
      
      Created tests for accessing openDatabase from a third party and first party dedicated workers when third-party blocking is on and off.
      
      * http/tests/security/cross-origin-worker-websql-allowed-expected.txt: Added.
      * http/tests/security/cross-origin-worker-websql-allowed.html: Added.
      * http/tests/security/cross-origin-worker-websql-expected.txt: Added.
      * http/tests/security/cross-origin-worker-websql.html: Added.
      * http/tests/security/resources/cross-origin-iframe-for-worker-websql.html: Added.
      * http/tests/security/resources/document-for-cross-origin-worker-websql.html: Added.
      * http/tests/security/resources/worker-for-websql.js: Added.
      (self.onmessage):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@126365 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bcbbf661
  6. 12 Jul, 2012 1 commit
    • jsbell@chromium.org's avatar
      IndexedDB: ASSERT hit calling open from callback in Worker · 334cfc03
      jsbell@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=90832
      
      Reviewed by Kentaro Hara.
      
      Source/WebCore:
      
      GroupSettings are used to provide the backing store path in some
      ports. Accessing those settings from a Worker was added, but the
      access referenced thread startup data that is cleared before the
      run loop, so an IDBFactory.open() call executed asynchronously
      would dereference a null pointer. Plumb the settings startup
      data into the context itself, like all of the other properties.
      
      Test: storage/indexeddb/open-twice-workers.html
      
      * Modules/indexeddb/IDBFactory.cpp:
      (WebCore::IDBFactory::open):
      * workers/DedicatedWorkerContext.cpp:
      (WebCore::DedicatedWorkerContext::DedicatedWorkerContext):
      * workers/DedicatedWorkerContext.h:
      (WebCore::DedicatedWorkerContext::create):
      (DedicatedWorkerContext):
      * workers/DedicatedWorkerThread.cpp:
      (WebCore::DedicatedWorkerThread::createWorkerContext):
      * workers/DedicatedWorkerThread.h:
      (DedicatedWorkerThread):
      * workers/SharedWorkerContext.cpp:
      (WebCore::SharedWorkerContext::SharedWorkerContext):
      * workers/SharedWorkerContext.h:
      (WebCore::SharedWorkerContext::create):
      (SharedWorkerContext):
      * workers/SharedWorkerThread.cpp:
      (WebCore::SharedWorkerThread::createWorkerContext):
      * workers/SharedWorkerThread.h:
      (SharedWorkerThread):
      * workers/WorkerContext.cpp:
      (WebCore::WorkerContext::WorkerContext):
      * workers/WorkerContext.h:
      (WebCore::WorkerContext::groupSettings):
      (WorkerContext):
      * workers/WorkerThread.cpp:
      (WebCore::WorkerThread::workerThread):
      * workers/WorkerThread.h:
      (WorkerThread):
      
      LayoutTests:
      
      Call IDBFactory.open() twice from a worker - once from the initial worker
      script evaluation, and once in a callback after the worker thread data
      has been purged.
      
      * storage/indexeddb/open-twice-workers-expected.txt: Added.
      * storage/indexeddb/open-twice-workers.html: Added.
      * storage/indexeddb/resources/open-twice.js: Added.
      (test):
      (openAnother):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@122463 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      334cfc03
  7. 03 Jul, 2012 1 commit
    • charles.wei@torchmobile.com.cn's avatar
      IndexedDB: should make the LevelDB persistant to the directory indicated in... · c0516122
      charles.wei@torchmobile.com.cn authored
      IndexedDB: should make the LevelDB persistant to the directory indicated in PageGroupSettings::indexedDBDataBasePath
      https://bugs.webkit.org/show_bug.cgi?id=88338
      
      Reviewed by David Levin.
      
      Source/WebCore:
      
      If the indexedDB runs in main thread it can access the GroupSettings via the document;
      otherwise, we need to pass the page GroupSettings to the worker thread so that accessible
      to the indexedDB running in WorkerContext.
      
      * Modules/indexeddb/IDBFactory.cpp:
      (WebCore::IDBFactory::open):
      * workers/DedicatedWorkerThread.cpp:
      (WebCore::DedicatedWorkerThread::create):
      (WebCore::DedicatedWorkerThread::DedicatedWorkerThread):
      * workers/DedicatedWorkerThread.h:
      (DedicatedWorkerThread):
      * workers/DefaultSharedWorkerRepository.cpp:
      (SharedWorkerProxy):
      (WebCore::SharedWorkerProxy::groupSettings):
      (WebCore):
      (WebCore::DefaultSharedWorkerRepository::workerScriptLoaded):
      * workers/SharedWorkerThread.cpp:
      (WebCore::SharedWorkerThread::create):
      (WebCore::SharedWorkerThread::SharedWorkerThread):
      * workers/SharedWorkerThread.h:
      (SharedWorkerThread):
      * workers/WorkerMessagingProxy.cpp:
      (WebCore::WorkerMessagingProxy::startWorkerContext):
      * workers/WorkerThread.cpp:
      (WebCore::WorkerThreadStartupData::create):
      (WorkerThreadStartupData):
      (WebCore::WorkerThreadStartupData::WorkerThreadStartupData):
      (WebCore::WorkerThread::WorkerThread):
      (WebCore::WorkerThread::groupSettings):
      (WebCore):
      * workers/WorkerThread.h:
      (WorkerThread):
      
      Source/WebKit/chromium:
      
      * src/WebSharedWorkerImpl.cpp:
      (WebKit::WebSharedWorkerImpl::startWorkerContext):
      * src/WebWorkerClientImpl.cpp:
      (WebKit::WebWorkerClientImpl::startWorkerContext):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@121742 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c0516122
  8. 28 Jun, 2012 2 commits
    • zandobersek@gmail.com's avatar
      Unreviewed, rolling out r121395. · 376e024f
      zandobersek@gmail.com authored
      http://trac.webkit.org/changeset/121395
      https://bugs.webkit.org/show_bug.cgi?id=90143
      
      Patch causes crashes in fast/workers/worker-context-gc.html
      (Requested by zdobersek on #webkit).
      
      Patch by Sheriff Bot <webkit.review.bot@gmail.com> on 2012-06-28
      
      Source/WebCore: 
      
      * Modules/indexeddb/IDBFactory.cpp:
      (WebCore::IDBFactory::open):
      * workers/DedicatedWorkerThread.cpp:
      (WebCore::DedicatedWorkerThread::create):
      (WebCore::DedicatedWorkerThread::DedicatedWorkerThread):
      * workers/DedicatedWorkerThread.h:
      (DedicatedWorkerThread):
      * workers/DefaultSharedWorkerRepository.cpp:
      (SharedWorkerProxy):
      (WebCore::DefaultSharedWorkerRepository::workerScriptLoaded):
      * workers/SharedWorkerThread.cpp:
      (WebCore::SharedWorkerThread::create):
      (WebCore::SharedWorkerThread::SharedWorkerThread):
      * workers/SharedWorkerThread.h:
      (SharedWorkerThread):
      * workers/WorkerMessagingProxy.cpp:
      (WebCore::WorkerMessagingProxy::startWorkerContext):
      * workers/WorkerThread.cpp:
      (WebCore::WorkerThreadStartupData::create):
      (WorkerThreadStartupData):
      (WebCore::WorkerThreadStartupData::WorkerThreadStartupData):
      (WebCore::WorkerThread::WorkerThread):
      * workers/WorkerThread.h:
      (WorkerThread):
      
      Source/WebKit/chromium: 
      
      * src/WebSharedWorkerImpl.cpp:
      (WebKit::WebSharedWorkerImpl::startWorkerContext):
      * src/WebWorkerClientImpl.cpp:
      (WebKit::WebWorkerClientImpl::startWorkerContext):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@121417 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      376e024f
    • charles.wei@torchmobile.com.cn's avatar
      IndexedDB: should make the LevelDB persistant to the directory indicated in... · 4980ea51
      charles.wei@torchmobile.com.cn authored
      IndexedDB: should make the LevelDB persistant to the directory indicated in PageGroupSettings::indexedDBDataBasePath
      https://bugs.webkit.org/show_bug.cgi?id=88338
      
      Reviewed by David Levin.
      
      Source/WebCore:
      
      If the indexedDB runs in main thread it can access the GroupSettings via the document;
      otherwise, we need to pass the page GroupSettings to the worker thread so that accessible
      to the indexedDB running in WorkerContext.
      
      * Modules/indexeddb/IDBFactory.cpp:
      (WebCore::IDBFactory::open):
      * workers/DedicatedWorkerThread.cpp:
      (WebCore::DedicatedWorkerThread::create):
      (WebCore::DedicatedWorkerThread::DedicatedWorkerThread):
      * workers/DedicatedWorkerThread.h:
      (DedicatedWorkerThread):
      * workers/DefaultSharedWorkerRepository.cpp:
      (SharedWorkerProxy):
      (WebCore::SharedWorkerProxy::groupSettings):
      (WebCore):
      (WebCore::DefaultSharedWorkerRepository::workerScriptLoaded):
      * workers/SharedWorkerThread.cpp:
      (WebCore::SharedWorkerThread::create):
      (WebCore::SharedWorkerThread::SharedWorkerThread):
      * workers/SharedWorkerThread.h:
      (SharedWorkerThread):
      * workers/WorkerMessagingProxy.cpp:
      (WebCore::WorkerMessagingProxy::startWorkerContext):
      * workers/WorkerThread.cpp:
      (WebCore::WorkerThreadStartupData::create):
      (WorkerThreadStartupData):
      (WebCore::WorkerThreadStartupData::WorkerThreadStartupData):
      (WebCore::WorkerThread::WorkerThread):
      (WebCore::WorkerThread::groupSettings):
      (WebCore):
      * workers/WorkerThread.h:
      (WorkerThread):
      
      Source/WebKit/chromium:
      
      * src/WebSharedWorkerImpl.cpp:
      (WebKit::WebSharedWorkerImpl::startWorkerContext):
      * src/WebWorkerClientImpl.cpp:
      (WebKit::WebWorkerClientImpl::startWorkerContext):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@121395 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4980ea51
  9. 06 Jan, 2012 1 commit
    • tsepez@chromium.org's avatar
      Source/WebCore: Pass Content-Security-Policy directives to worker threads. · 34a3d9f3
      tsepez@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=73242
      
      Reviewed by David Levin.
      
      Tests: http/tests/security/contentSecurityPolicy/shared-worker-connect-src-allowed.html
             http/tests/security/contentSecurityPolicy/shared-worker-connect-src-blocked.html
             http/tests/security/contentSecurityPolicy/worker-connect-src-allowed.html
             http/tests/security/contentSecurityPolicy/worker-connect-src-blocked.html
      
      * page/ContentSecurityPolicy.h:
      (WebCore::ContentSecurityPolicy::policy):
      (WebCore::ContentSecurityPolicy::headerType):
      * workers/DedicatedWorkerContext.cpp:
      (WebCore::DedicatedWorkerContext::DedicatedWorkerContext):
      * workers/DedicatedWorkerContext.h:
      (WebCore::DedicatedWorkerContext::create):
      * workers/DedicatedWorkerThread.cpp:
      (WebCore::DedicatedWorkerThread::create):
      (WebCore::DedicatedWorkerThread::DedicatedWorkerThread):
      (WebCore::DedicatedWorkerThread::createWorkerContext):
      * workers/DedicatedWorkerThread.h:
      * workers/DefaultSharedWorkerRepository.cpp:
      (WebCore::SharedWorkerScriptLoader::notifyFinished):
      (WebCore::DefaultSharedWorkerRepository::workerScriptLoaded):
      * workers/DefaultSharedWorkerRepository.h:
      * workers/SharedWorkerContext.cpp:
      (WebCore::SharedWorkerContext::SharedWorkerContext):
      * workers/SharedWorkerContext.h:
      (WebCore::SharedWorkerContext::create):
      * workers/SharedWorkerThread.cpp:
      (WebCore::SharedWorkerThread::create):
      (WebCore::SharedWorkerThread::SharedWorkerThread):
      (WebCore::SharedWorkerThread::createWorkerContext):
      * workers/SharedWorkerThread.h:
      * workers/WorkerContext.cpp:
      (WebCore::WorkerContext::WorkerContext):
      * workers/WorkerContext.h:
      * workers/WorkerMessagingProxy.cpp:
      (WebCore::WorkerMessagingProxy::startWorkerContext):
      * workers/WorkerThread.cpp:
      (WebCore::WorkerThreadStartupData::create):
      (WebCore::WorkerThreadStartupData::WorkerThreadStartupData):
      (WebCore::WorkerThread::WorkerThread):
      (WebCore::WorkerThread::workerThread):
      * workers/WorkerThread.h:
      
      Source/WebKit/chromium: Pass Content-security-policy directive to worker threads.
      https://bugs.webkit.org/show_bug.cgi?id=73242
      
      Reviewed by David Levin.
      
      * src/WebSharedWorkerImpl.cpp:
      (WebKit::WebSharedWorkerImpl::startWorkerContext):
      * src/WebWorkerClientImpl.cpp:
      (WebKit::WebWorkerClientImpl::startWorkerContext):
      
      LayoutTests: Pass Content-Security-Policy directives to worker threads.
      https://bugs.webkit.org/show_bug.cgi?id=73242
      
      Reviewed by David Levin.
      
      * http/tests/security/contentSecurityPolicy/resources/shared-worker-make-xhr.js: Added.
      (onconnect):
      * http/tests/security/contentSecurityPolicy/resources/worker-make-xhr.js: Added.
      * http/tests/security/contentSecurityPolicy/shared-worker-connect-src-allowed-expected.txt: Added.
      * http/tests/security/contentSecurityPolicy/shared-worker-connect-src-allowed.html: Added.
      * http/tests/security/contentSecurityPolicy/shared-worker-connect-src-blocked-expected.txt: Added.
      * http/tests/security/contentSecurityPolicy/shared-worker-connect-src-blocked.html: Added.
      * http/tests/security/contentSecurityPolicy/worker-connect-src-allowed-expected.txt: Added.
      * http/tests/security/contentSecurityPolicy/worker-connect-src-allowed.html: Added.
      * http/tests/security/contentSecurityPolicy/worker-connect-src-blocked-expected.txt: Added.
      * http/tests/security/contentSecurityPolicy/worker-connect-src-blocked.html: Added.
      * platform/chromium/test_expectations.txt:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@104329 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      34a3d9f3
  10. 10 Oct, 2011 1 commit
    • yurys@chromium.org's avatar
      Web Inspector: allow to start WorkerContext paused · 2c79e13b
      yurys@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=69635
      
      Source/WebCore:
      
      Allow to pause WorkerContext on start.
      
      Reviewed by Pavel Feldman.
      
      * bindings/v8/ScriptDebugServer.cpp:
      (WebCore::ScriptDebugServer::setPauseOnNextStatement):
      * bindings/v8/WorkerScriptDebugServer.cpp:
      (WebCore::WorkerScriptDebugServer::runMessageLoopOnPause):
      * bindings/v8/WorkerScriptDebugServer.h:
      * inspector/InspectorController.cpp:
      (WebCore::InspectorController::InspectorController):
      * inspector/InspectorInstrumentation.cpp:
      (WebCore::InspectorInstrumentation::willEvaluateWorkerScript):
      * inspector/InspectorInstrumentation.h:
      * inspector/InspectorRuntimeAgent.cpp:
      (WebCore::InspectorRuntimeAgent::InspectorRuntimeAgent):
      (WebCore::InspectorRuntimeAgent::~InspectorRuntimeAgent):
      (WebCore::InspectorRuntimeAgent::pauseWorkerContext): this method will start
      running worker message loop in "debug" mode, i.e. it will process only inspector
      tasks until method InspectorRuntimeAgent::resume is called.
      (WebCore::InspectorRuntimeAgent::resume):
      * inspector/InspectorRuntimeAgent.h:
      * inspector/WorkerDebuggerAgent.cpp:
      * inspector/WorkerDebuggerAgent.h:
      * inspector/WorkerInspectorController.cpp:
      (WebCore::WorkerInspectorController::WorkerInspectorController):
      (WebCore::WorkerInspectorController::resume): method which is called from WebKit layer
      when it is known that inspector state was restored and it is OK to resume worker execution.
      * inspector/WorkerInspectorController.h:
      * workers/DedicatedWorkerThread.cpp:
      (WebCore::DedicatedWorkerThread::create):
      (WebCore::DedicatedWorkerThread::DedicatedWorkerThread):
      * workers/DedicatedWorkerThread.h:
      * workers/SharedWorkerThread.cpp:
      (WebCore::SharedWorkerThread::create):
      (WebCore::SharedWorkerThread::SharedWorkerThread):
      * workers/SharedWorkerThread.h:
      * workers/WorkerMessagingProxy.cpp:
      (WebCore::WorkerMessagingProxy::startWorkerContext):
      (WebCore::WorkerMessagingProxy::disconnectFromInspector):
      (WebCore::WorkerMessagingProxy::sendMessageToInspector):
      * workers/WorkerThread.cpp:
      (WebCore::WorkerThreadStartupData::create):
      (WebCore::WorkerThreadStartupData::WorkerThreadStartupData):
      (WebCore::WorkerThread::WorkerThread): WorkerThread is passed a booleand flag indicating
      whether the context should be paused and wait for explicit resume command before it
      starts running its script.
      (WebCore::WorkerThread::workerThread):
      * workers/WorkerThread.h:
      
      Source/WebKit/chromium:
      
      Expose methods for pausing shared worker on start.
      
      Reviewed by Pavel Feldman.
      
      * public/WebSharedWorker.h:
      (WebKit::WebSharedWorker::pauseWorkerContextOnStart): specifies that the worker
      context should be paused and weit for explicit call to resumeWorkerContext before
      running its script.
      (WebKit::WebSharedWorker::resumeWorkerContext):
      * src/WebSharedWorkerImpl.cpp:
      (WebKit::WebSharedWorkerImpl::WebSharedWorkerImpl):
      (WebKit::WebSharedWorkerImpl::startWorkerContext):
      (WebKit::WebSharedWorkerImpl::pauseWorkerContextOnStart):
      (WebKit::resumeWorkerContextTask):
      (WebKit::WebSharedWorkerImpl::resumeWorkerContext):
      (WebKit::WebSharedWorkerImpl::attachDevTools):
      (WebKit::reconnectToWorkerContextInspectorTask):
      (WebKit::WebSharedWorkerImpl::reattachDevTools):
      (WebKit::WebSharedWorkerImpl::detachDevTools):
      (WebKit::WebSharedWorkerImpl::dispatchDevToolsMessage):
      * src/WebSharedWorkerImpl.h:
      * src/WebWorkerClientImpl.cpp:
      (WebKit::WebWorkerClientImpl::startWorkerContext):
      (WebKit::WebWorkerClientImpl::updateInspectorStateCookie):
      * src/WebWorkerClientImpl.h:
      * src/WebWorkerImpl.cpp:
      (WebKit::WebWorkerImpl::startWorkerContext):
      (WebKit::WebWorkerImpl::detachDevTools):
      (WebKit::WebWorkerImpl::dispatchDevToolsMessage):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@97049 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2c79e13b
  11. 08 Jan, 2011 1 commit
  12. 11 Aug, 2009 1 commit
    • atwilson@chromium.org's avatar
      Need to refactor WorkerObjectProxy. · 364f6353
      atwilson@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=28136
      
      Reviewed by David Levin.
      
      Added WorkerReportingProxy for reporting worker state (exceptions, console messages, thread exited) to the parent.
      
      Existing tests are sufficient, as this is only a refactoring.
      
      * GNUmakefile.am:
      Added WorkerReportingProxy.h to build.
      * WebCore.gypi:
      Added WorkerReportingProxy.h to build.
      * WebCore.vcproj/WebCore.vcproj:
      Added WorkerReportingProxy.h to build.
      * WebCore.xcodeproj/project.pbxproj:
      Added WorkerReportingProxy.h to build.
      * workers/DedicatedWorkerContext.cpp:
      * workers/DedicatedWorkerContext.h:
      Removed addMessage/forwardException() APIs - now handled by WorkerReportingProxy.
      * workers/DedicatedWorkerThread.cpp:
      (WebCore::DedicatedWorkerThread::DedicatedWorkerThread):
      Changed constructor to pass WorkerReportingProxy to base class.
      * workers/DefaultSharedWorkerRepository.cpp:
      Updated SharedWorkerProxy to implement WorkerReportingProxy interface.
      (WebCore::SharedWorkerProxy::postExceptionToWorkerObject):
      (WebCore::SharedWorkerProxy::postConsoleMessageToWorkerObject):
      (WebCore::SharedWorkerProxy::workerContextClosed):
      (WebCore::SharedWorkerProxy::workerContextDestroyed):
      (WebCore::DefaultSharedWorkerRepository::workerScriptLoaded):
      Now passes in WorkerReportingProxy when creating SharedWorkerThread.
      * workers/SharedWorkerContext.cpp:
      * workers/SharedWorkerContext.h:
      Removed addMessage/forwardException() APIs - now handled by WorkerReportingProxy.
      * workers/SharedWorkerThread.cpp:
      (WebCore::SharedWorkerThread::create):
      (WebCore::SharedWorkerThread::SharedWorkerThread):
      Passes WorkerReportingProxy to base class constructor.
      * workers/SharedWorkerThread.h:
      Constructor now takes a WorkerReportingProxy.
      * workers/WorkerContext.cpp:
      (WebCore::WorkerContext::~WorkerContext):
      Moved code that calls workerContextDestroyed() into base class so shared workers share this functionality.
      (WebCore::WorkerContext::close):
      Now notifies WorkerReportingProxy when the thread is closing.
      (WebCore::WorkerContext::reportException):
      Reports exceptions via WorkerReportingProxy.
      (WebCore::WorkerContext::addMessage):
      Reports console messages via WorkerReportingProxy.
      * workers/WorkerContext.h:
      * workers/WorkerObjectProxy.h:
      (WebCore::WorkerObjectProxy::workerContextClosed):
      Default empty implementation for dedicated workers.
      * workers/WorkerReportingProxy.h: Added.
      Base interface that contains APIs moved from WorkerObjectProxy.
      (WebCore::WorkerReportingProxy::~WorkerReportingProxy):
      * workers/WorkerThread.cpp:
      (WebCore::WorkerThread::WorkerThread):
      Updated constructor to accept a WorkerReportingProxy.
      * workers/WorkerThread.h:
      (WebCore::WorkerThread::workerReportingProxy):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@47036 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      364f6353
  13. 06 Aug, 2009 1 commit
    • atwilson@chromium.org's avatar
      WebCore: · 5790d733
      atwilson@chromium.org authored
      2009-08-01  Drew Wilson  <atwilson@google.com>
      
              Reviewed by NOBODY (OOPS!).
      
              Created first working implementation of SharedWorkers (execution only, no sharing).
              https://bugs.webkit.org/show_bug.cgi?id=27927
      
              Added initial implementations of SharedWorkerThread and SharedWorkerContext.
              No v8 bindings yet.
      
              * DerivedSources.cpp:
              Added shared worker files.
              * DerivedSources.make:
              Added shared worker files.
              * GNUmakefile.am:
              Added shared worker files.
              * WebCore.gypi:
              Added shared worker files.
              * WebCore.pro:
              Added shared worker files.
              * WebCore.vcproj/WebCore.vcproj:
              Added shared worker files.
              * WebCore.xcodeproj/project.pbxproj:
              Added shared worker files.
              * bindings/js/JSEventTarget.cpp:
              (WebCore::toJS):
              Added code to convert from EventTarget to correct JS class.
              (WebCore::toEventTarget):
              Added code to cast from JS object to appropriate EventTarget impl class.
              * bindings/js/JSSharedWorkerConstructor.cpp:
              (WebCore::JSSharedWorkerConstructor::JSSharedWorkerConstructor):
              (WebCore::constructSharedWorker):
              Tweaked the constructor code to pass in the lexical global object like normal workers.
              * bindings/js/JSSharedWorkerContextCustom.cpp: Added.
              (WebCore::JSSharedWorkerContext::mark):
              Custom marking of the onconnect handler.
              * bindings/js/JSWorkerContextBase.cpp:
              (WebCore::toJSSharedWorkerContext):
              (WebCore::toJSWorkerContext):
              Added proper conversion to the correct WorkerContext derived class.
              * bindings/js/JSWorkerContextBase.h:
              * bindings/js/WorkerScriptController.cpp:
              (WebCore::WorkerScriptController::initScript):
              Updated WorkerScriptController to create the correct type of binding object (JSSharedWorkerContext vs JSDedicatedWorkerContext)
              * bindings/scripts/CodeGeneratorV8.pm:
              Added support for SharedWorkerContext.
              * bindings/v8/DOMObjectsInclude.h:
              Added shared worker bindings files.
              * dom/EventNames.h:
              Added connect event.
              * dom/EventTarget.cpp:
              (WebCore::EventTarget::toSharedWorkerContext):
              Added API for casting to new derived class (SharedWorkerContext).
              * dom/EventTarget.h:
              * workers/AbstractWorker.cpp:
              (WebCore::AbstractWorker::resolveURL):
              Moved code that resolves/validates URLs to base class so it can be shared between dedicated/shared workers.
              * workers/AbstractWorker.h:
              * workers/DedicatedWorkerContext.cpp:
              (WebCore::DedicatedWorkerContext::logException):
              Refactored exception handling code - moved onerror handling to base class.
              * workers/DedicatedWorkerContext.h:
              (WebCore::DedicatedWorkerContext::isDedicatedWorkerContext):
              * workers/SharedWorker.cpp:
              (WebCore::SharedWorker::SharedWorker):
              Changed constructor to fire up worker thread.
              * workers/SharedWorker.h:
              * workers/SharedWorkerContext.cpp: Added.
              (WebCore::SharedWorkerContext::SharedWorkerContext):
              (WebCore::SharedWorkerContext::~SharedWorkerContext):
              (WebCore::SharedWorkerContext::logException):
              (WebCore::SharedWorkerContext::addMessage):
              Placeholder methods until we add support for sending exceptions/messages to console.
              (WebCore::SharedWorkerContext::dispatchConnect):
              (WebCore::SharedWorkerContext::thread):
              * workers/SharedWorkerContext.h: Added.
              (WebCore::SharedWorkerContext::create):
              (WebCore::SharedWorkerContext::isSharedWorkerContext):
              (WebCore::SharedWorkerContext::toSharedWorkerContext):
              (WebCore::SharedWorkerContext::setOnconnect):
              (WebCore::SharedWorkerContext::onconnect):
              (WebCore::SharedWorkerContext::name):
              * workers/SharedWorkerContext.idl: Added.
              * workers/SharedWorkerRepository.h: Added.
              (WebCore::SharedWorkerRepository::~SharedWorkerRepository):
              * workers/DefaultSharedWorkerRepository.cpp: Added.
              Implementation of core singleton class that will be used to implement sharing.
              (WebCore::SharedWorkerProxy::setThread):
              Proxy object used to handle resource loading for a given shared worker.
              (WebCore::SharedWorkerProxy::postTaskToLoader):
              (WebCore::SharedWorkerProxy::postTaskForModeToWorkerContext):
              Placeholder routines until we implement loading.
              (WebCore::SharedWorkerConnectTask::create):
              Creates a task to fire off a connect event on the worker thread.
              (WebCore::SharedWorkerConnectTask::SharedWorkerConnectTask):
              (WebCore::SharedWorkerConnectTask::performTask):
              (WebCore::SharedWorkerLoader::SharedWorkerLoader):
              Added helper object to load the initial script for the worker.
              (WebCore::SharedWorkerLoader::load):
              (WebCore::SharedWorkerLoader::notifyFinished):
              (WebCore::SharedWorkerRepository::instance):
              (WebCore::DefaultSharedWorkerRepository::instance):
              (WebCore::DefaultSharedWorkerRepository::workerScriptLoaded):
              Fires off the worker thread once the script is loaded.
              (WebCore::SharedWorkerRepository::connect):
              (WebCore::DefaultSharedWorkerRepository::DefaultSharedWorkerRepository):
              (WebCore::DefaultSharedWorkerRepository::~DefaultSharedWorkerRepository):
              * workers/DefaultSharedWorkerRepository.h: Added.
              * workers/SharedWorkerThread.cpp: Added.
              (WebCore::SharedWorkerThread::create):
              (WebCore::SharedWorkerThread::SharedWorkerThread):
              (WebCore::SharedWorkerThread::~SharedWorkerThread):
              (WebCore::SharedWorkerThread::createWorkerContext):
              * workers/SharedWorkerThread.h: Added.
              * workers/Worker.cpp:
              (WebCore::Worker::Worker):
              * workers/WorkerContext.cpp:
              (WebCore::WorkerContext::reportException):
              * workers/WorkerContext.h:
              (WebCore::WorkerContext::isSharedWorkerContext):
              (WebCore::WorkerContext::isDedicatedWorkerContext):
              Added APIs to determine the type of a given context.
      
      LayoutTests:
      
      2009-08-05  Drew Wilson  <atwilson@google.com>
      
              Reviewed by NOBODY (OOPS!).
      
              SharedWorkers should instantiate a thread and a SharedWorkerContext
              https://bugs.webkit.org/show_bug.cgi?id=27927
      
              Added disabled tests for SharedWorker minimal functionality.
      
              Began refactoring of dedicated worker tests to allow sharing test cases between shared and dedicated worker (will continue in another patch).
      
              * fast/workers/resources/shared-worker-common.js: Added.
              * fast/workers/resources/shared-worker-script-error.js: Added.
              * fast/workers/resources/worker-replace-global-constructor.js: Moved common code into shared .js file.
              * fast/workers/shared-worker-constructor.html-disabled:
              * fast/workers/shared-worker-gc-expected.txt: Added.
              * fast/workers/shared-worker-gc.html-disabled: Added.
              * fast/workers/shared-worker-load-error-expected.txt: Added.
              * fast/workers/shared-worker-load-error.html-disabled: Added.
              * fast/workers/shared-worker-replace-global-constructor-expected.txt: Added.
              * fast/workers/shared-worker-replace-global-constructor.html-disabled: Added.
              * fast/workers/shared-worker-script-error-expected.txt: Added.
              * fast/workers/shared-worker-script-error.html-disabled: Added.
              * fast/workers/shared-worker-simple-expected.txt: Added.
              * fast/workers/shared-worker-simple.html-disabled: Added.
              * fast/workers/worker-replace-global-constructor.html:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@46845 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5790d733
  14. 24 Jul, 2009 1 commit
    • eric@webkit.org's avatar
      2009-07-22 Eric Seidel <eric@webkit.org> · 0560e061
      eric@webkit.org authored
              Reviewed by Adam Barth.
      
              Make most DOMObjects hold onto a JSDOMGlobalObject*
              https://bugs.webkit.org/show_bug.cgi?id=27588
      
              inner.document.constructor is fixed because all properties on the window
              object are created with the correct globalObject (instead of the lexical one).
              Since all objects now carry a globalObject pointer, when document creates
              HTMLDocumentConstructor it now has the right globalObject to use.
      
              * fast/dom/prototype-inheritance-2-expected.txt:
              * fast/dom/prototype-inheritance-expected.txt:
      
      2009-07-22  Eric Seidel  <eric@webkit.org>
      
              Reviewed by Adam Barth.
      
              Make most DOMObjects hold onto a JSDOMGlobalObject*
              https://bugs.webkit.org/show_bug.cgi?id=27588
      
              This change is almost entirely plumbing.  Only one functional
              change as part of this all (window.document.constructor has the correct prototype)
              Changes are detailed below.
      
              inner.document.constructor is fixed because all properties on the window
              object are created with the correct globalObject (instead of the lexical one).
              Since all objects now carry a globalObject pointer, when document creates
              HTMLDocumentConstructor it now has the right globalObject to use.
      
              Tests:
                fast/dom/prototype-inheritance.html
                fast/dom/prototype-inheritance-2.html
      
              * bindings/js/DOMObjectWithSVGContext.h:
              (WebCore::DOMObjectWithSVGContext::DOMObjectWithSVGContext):
                  Update the comment and add an ignored globalObject argument.
              * bindings/js/JSDOMBinding.h:
                  Pass a globalObject to all DOMObjects during creation.  Currently it's the wrong global object.
                  Once toJS is passed a globalObject it will be the right one.
              (WebCore::createDOMObjectWrapper):
              (WebCore::createDOMNodeWrapper):
              * bindings/js/JSDOMGlobalObject.h:
              (WebCore::JSDOMGlobalObject::globalObject): Makes binding generation easier.
              * bindings/js/JSDOMWindowCustom.cpp:
              (WebCore::JSDOMWindow::history): JSHistory is now passed a globalObject, but since it has no custom constructor it doesn't use it.
              (WebCore::JSDOMWindow::location): JSLocation is now passed a globalObject, but since it has no custom constructor it doesn't use it.
              * bindings/js/JSDocumentCustom.cpp:
              (WebCore::JSDocument::location): JSLocation is now passed a globalObject, but since it has no custom constructor it doesn't use it.
              * bindings/js/JSHTMLAllCollection.h:
              (WebCore::JSHTMLAllCollection::JSHTMLAllCollection):
              * bindings/js/JSHTMLCollectionCustom.cpp: Re-factoring needed to pass globalObject to JSNamedNodesCollection constructor.
              (WebCore::getNamedItems):
              (WebCore::callHTMLCollection):
              (WebCore::JSHTMLCollection::canGetItemsForName):
              (WebCore::JSHTMLCollection::nameGetter):
              (WebCore::JSHTMLCollection::item):
              (WebCore::JSHTMLCollection::namedItem):
              * bindings/js/JSHTMLFormElementCustom.cpp:
              (WebCore::JSHTMLFormElement::nameGetter):
              * bindings/js/JSNamedNodesCollection.cpp:
                   Now passed globalObject.  This is tested by inner.document.forms.testForm.
                   The passed globalObject is still wrong until toJS is fixed.
              (WebCore::JSNamedNodesCollection::JSNamedNodesCollection):
              * bindings/js/JSNamedNodesCollection.h:
              * bindings/js/JSSharedWorkerConstructor.cpp:
                   Add DOMConstructorObject missed by http://trac.webkit.org/changeset/45938
                   This class is not compiled by default, so not testable.
              (WebCore::JSSharedWorkerConstructor::JSSharedWorkerConstructor):
              * bindings/js/JSSharedWorkerConstructor.h:
              * bindings/scripts/CodeGeneratorJS.pm:
                   Make all bindings objects carry a globalObject pointer using DOMObjectWithGlobalPointer.
                   SVG bindings which need a context() pointer do not have enough space for globalObject() too.
                   WorkerContext does not need a globalObject (it is one), so special case it.
                   Make all .constructor calls use the stored globalObject().  This is what fixes window.document.constructor.
                   Make all constructors inherit from DOMConstructorObject for consistency.  Since the auto-bound constructors
                   override createStructure anyway, there is no functional change here.  Just completing work started in r45938.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@46320 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0560e061
  15. 13 Jul, 2009 1 commit
    • levin@chromium.org's avatar
      2009-07-13 Drew Wilson <atwilson@google.com> · e1b64a46
      levin@chromium.org authored
              Reviewed by David Levin.
      
              Add ENABLE(SHARED_WORKERS) flag and define SharedWorker APIs
              https://bugs.webkit.org/show_bug.cgi?id=26932
      
      .:
      
              Added ENABLE(SHARED_WORKERS) flag.
      
             * configure.ac:
      
      JavaScriptCore:
      
              Added ENABLE(SHARED_WORKERS) flag (off by default).
      
              * Configurations/FeatureDefines.xcconfig:
      
      WebCore:
      
              Initial IDL definition and bindings for SharedWorkers.
      
              * Configurations/FeatureDefines.xcconfig:
              Added new files for SharedWorker support.
              * DerivedSources.make:
              Added new files for SharedWorker support.
              * GNUmakefile.am:
              Added new files for SharedWorker support.
              * WebCore.gypi:
              Added new files for SharedWorker support.
              * WebCore.pro:
              Added new files for SharedWorker support.
              * WebCore.xcodeproj/project.pbxproj:
              Added new files for SharedWorker support.
              * bindings/js/JSAbstractWorkerCustom.cpp: Added.
              (WebCore::JSAbstractWorker::mark):
              Custom mark handler that marks the event listeners.
              (WebCore::JSAbstractWorker::addEventListener):
              (WebCore::JSAbstractWorker::removeEventListener):
              (WebCore::JSAbstractWorker::toJS):
              Custom toJS handler which differentiates between various subclasses.
              * bindings/js/JSDOMWindowCustom.cpp:
              (WebCore::JSDOMWindow::sharedWorker):
              SharedWorker constructor (only enabled when SHARED_WORKERS is
              enabled).
              * bindings/js/JSEventTarget.cpp:
              (WebCore::toJS):
              (WebCore::toEventTarget):
              Added support for converting to/from SharedWorkers.
              * bindings/js/JSSharedWorkerConstructor.cpp: Added.
              (WebCore::JSSharedWorkerConstructor::JSSharedWorkerConstructor):
              (WebCore::constructSharedWorker):
              (WebCore::JSSharedWorkerConstructor::getConstructData):
              * bindings/js/JSSharedWorkerConstructor.h: Added.
              (WebCore::JSSharedWorkerConstructor::classInfo):
              * bindings/js/JSSharedWorkerCustom.cpp: Added.
              (WebCore::JSSharedWorker::mark):
              Custom mark function that marks the internal MessagePort.
              * bindings/v8/DOMObjectsInclude.h:
              Updated to include new header files.
              * bindings/v8/V8Index.cpp:
              * bindings/v8/V8Index.h:
              * bindings/v8/custom/V8AbstractWorkerCustom.cpp: Added.
              (WebCore::getEventListener):
              (WebCore::ACCESSOR_GETTER):
              (WebCore::ACCESSOR_SETTER):
              (WebCore::CALLBACK_FUNC_DECL):
              V8 handlers for add/removeEventListener().
              * bindings/v8/custom/V8CustomBinding.h:
              * bindings/v8/custom/V8SharedWorkerCustom.cpp: Added.
              (WebCore::CALLBACK_FUNC_DECL):
              Custom constructor for SharedWorker.
              * dom/EventTarget.cpp:
              (WebCore::EventTarget::toSharedWorker):
              * dom/EventTarget.h:
              * page/DOMWindow.idl:
              * workers/AbstractWorker.cpp: Added.
              (WebCore::AbstractWorker::AbstractWorker):
              Common base class for SharedWorker and (soon) Worker. The functions below were copied from Worker.cpp.
              This is the first step in refactoring Worker to derive from AbstractWorker to enable code sharing.
              (WebCore::AbstractWorker::~AbstractWorker):
              (WebCore::AbstractWorker::addEventListener):
              (WebCore::AbstractWorker::removeEventListener):
              (WebCore::AbstractWorker::dispatchEvent):
              (WebCore::AbstractWorker::dispatchLoadErrorEvent):
              (WebCore::AbstractWorker::dispatchScriptErrorEvent):
              * workers/AbstractWorker.h: Added.
              Definitions of functionality shared by Worker.h and SharedWorker.h. In a future patch, Worker will derive from AbstractWorker.
              (WebCore::AbstractWorker::scriptExecutionContext):
              (WebCore::AbstractWorker::setOnerror):
              (WebCore::AbstractWorker::onerror):
              (WebCore::AbstractWorker::eventListeners):
              (WebCore::AbstractWorker::refEventTarget):
              (WebCore::AbstractWorker::derefEventTarget):
              * workers/AbstractWorker.idl: Added.
              * workers/SharedWorker.cpp: Added.
              (WebCore::SharedWorker::SharedWorker):
              (WebCore::SharedWorker::~SharedWorker):
              * workers/SharedWorker.h: Added.
              (WebCore::SharedWorker::create):
              (WebCore::SharedWorker::port):
              (WebCore::SharedWorker::toSharedWorker):
              * workers/SharedWorker.idl: Added.
      
      WebKit/mac:
      
              Added ENABLE(SHARED_WORKERS) flag (disabled by default).
      
              * Configurations/FeatureDefines.xcconfig:
      
      WebKitTools:
      
              Added support for --shared-workers (turned off by default)
      
              * Scripts/build-webkit:
      
      LayoutTests:
      
              Unit tests for new SharedWorker APIs (disabled by default).
      
              * fast/workers/shared-worker-constructor-expected.txt: Added.
              * fast/workers/shared-worker-constructor.html-disabled: Added.
              * fast/workers/shared-worker-event-listener-expected.txt: Added.
              * fast/workers/shared-worker-event-listener.html-disabled: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@45795 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e1b64a46
  16. 16 Apr, 2009 1 commit
    • dglazkov@chromium.org's avatar
      2009-04-15 Dimitri Glazkov <dglazkov@chromium.org> · cec6254f
      dglazkov@chromium.org authored
              Reviewed by Darin Fisher.
      
              https://bugs.webkit.org/show_bug.cgi?id=25201
              Add ScriptFunctionCall/ScriptObject for V8.
      
              * bindings/v8/ScriptFunctionCall.cpp: Added.
              * bindings/v8/ScriptFunctionCall.h: Added.
              * bindings/v8/ScriptObject.cpp: Added.
              * bindings/v8/ScriptObject.h: Added.
              * bindings/v8/ScriptObjectQuarantine.cpp: Added.
              * bindings/v8/ScriptObjectQuarantine.h: Added.
              * bindings/v8/ScriptScope.cpp: Added.
              * bindings/v8/ScriptScope.h: Added.
              * bindings/v8/ScriptState.h:
              (WebCore::ScriptState::ScriptState): Added new constructors.
              (WebCore::ScriptState::frame): Added Frame ptr accessor.
              * bindings/v8/ScriptString.h:
              (WebCore::ScriptString::ScriptString): Added default constructor.
              * bindings/v8/ScriptValue.h:
              (WebCore::ScriptValue::isEqual): Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@42568 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      cec6254f
  17. 27 Mar, 2009 4 commits
  18. 13 Mar, 2009 1 commit
    • dglazkov@chromium.org's avatar
      2009-03-13 Dimitri Glazkov <dglazkov@chromium.org> · e144f898
      dglazkov@chromium.org authored
              Reviewed by Timothy Hatcher.
      
              https://bugs.webkit.org/show_bug.cgi?id=24524
              Introduce ScriptObject and ScriptFunctionCall abstractions.
      
              * GNUmakefile.am: Added ScriptObject and ScriptFunctionCall to project.
              * WebCore.pro: Ditto.
              * WebCore.vcproj/WebCore.vcproj: Ditto.
              * WebCore.xcodeproj/project.pbxproj: Ditto.
              * WebCoreSources.bkl: Ditto.
              * bindings/js/ScriptFunctionCall.cpp: Added.
              * bindings/js/ScriptFunctionCall.h: Added.
              * bindings/js/ScriptObject.cpp: Added.
              * bindings/js/ScriptObject.h: Added.
              * bindings/js/ScriptObjectQuarantine.cpp: Added.
              * bindings/js/ScriptObjectQuarantine.h: Added.
              * inspector/InspectorController.cpp:
              (WebCore::InspectorController::populateScriptObjects): Changed to use InspectorDatabaseResource::bind.
              (WebCore::InspectorController::resetScriptObjects): Changed to use InspectorDatabaseResource::unbind.
              (WebCore::InspectorController::didOpenDatabase): Changed to use InspectorDatabaseResource::unbind.
              * inspector/InspectorController.h: Removed addScriptDatabaseResource and
              removeScriptDatabaseResource declarations.
              * inspector/InspectorDatabaseResource.cpp:
              (WebCore::InspectorDatabaseResource::InspectorDatabaseResource):
              (WebCore::InspectorDatabaseResource::bind): Added.
              (WebCore::InspectorDatabaseResource::unbind): Added.
              * inspector/InspectorDatabaseResource.h: Added bind and unbind declarations.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@41684 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e144f898
  19. 13 Jan, 2009 1 commit
    • darin@chromium.org's avatar
      2009-01-13 Darin Fisher <darin@chromium.org> · 0e8acfa7
      darin@chromium.org authored
              Reviewed by Eric Seidel.
      
              Landing portions of platform/chromium/, taken from here:
              http://src.chromium.org/viewvc/chrome/trunk/deps/third_party/WebKit/WebCore/platform/chromium/
      
              * platform/chromium/ChromiumBridge.h: Added.
              * platform/chromium/ChromiumDataObject.cpp: Added.
              (WebCore::ChromiumDataObject::clear):
              (WebCore::ChromiumDataObject::hasData):
              * platform/chromium/ChromiumDataObject.h: Added.
              (WebCore::ChromiumDataObject::create):
              (WebCore::ChromiumDataObject::ChromiumDataObject):
              * platform/chromium/ClipboardChromium.cpp: Added.
              (WebCore::):
              (WebCore::clipboardTypeFromMIMEType):
              (WebCore::ClipboardChromium::ClipboardChromium):
              (WebCore::ClipboardChromium::create):
              (WebCore::ClipboardChromium::clearData):
              (WebCore::ClipboardChromium::clearAllData):
              (WebCore::ClipboardChromium::getData):
              (WebCore::ClipboardChromium::setData):
              (WebCore::ClipboardChromium::types):
              (WebCore::ClipboardChromium::setDragImage):
              (WebCore::ClipboardChromium::setDragImageElement):
              (WebCore::ClipboardChromium::createDragImage):
              (WebCore::imageToMarkup):
              (WebCore::getCachedImage):
              (WebCore::writeImageToDataObject):
              (WebCore::ClipboardChromium::declareAndWriteDragImage):
              (WebCore::ClipboardChromium::writeURL):
              (WebCore::ClipboardChromium::writeRange):
              (WebCore::ClipboardChromium::hasData):
              * platform/chromium/ClipboardChromium.h: Added.
              (WebCore::ClipboardChromium::~ClipboardChromium):
              (WebCore::ClipboardChromium::dataObject):
              * platform/chromium/ClipboardUtilitiesChromium.cpp: Added.
              (WebCore::replaceNewlinesWithWindowsStyleNewlines):
              (WebCore::replaceNBSPWithSpace):
              (WebCore::urlToMarkup):
              * platform/chromium/ClipboardUtilitiesChromium.h: Added.
              * platform/chromium/ContextMenuChromium.cpp: Added.
              (WebCore::ContextMenu::ContextMenu):
              (WebCore::ContextMenu::~ContextMenu):
              (WebCore::ContextMenu::itemCount):
              (WebCore::ContextMenu::insertItem):
              (WebCore::ContextMenu::appendItem):
              (WebCore::ContextMenu::itemWithAction):
              (WebCore::ContextMenu::itemAtIndex):
              (WebCore::ContextMenu::setPlatformDescription):
              (WebCore::ContextMenu::platformDescription):
              (WebCore::ContextMenu::releasePlatformDescription):
              * platform/chromium/ContextMenuItemChromium.cpp: Added.
              (WebCore::ContextMenuItem::ContextMenuItem):
              (WebCore::ContextMenuItem::~ContextMenuItem):
              (WebCore::ContextMenuItem::releasePlatformDescription):
              (WebCore::ContextMenuItem::type):
              (WebCore::ContextMenuItem::action):
              (WebCore::ContextMenuItem::title):
              (WebCore::ContextMenuItem::platformSubMenu):
              (WebCore::ContextMenuItem::setType):
              (WebCore::ContextMenuItem::setAction):
              (WebCore::ContextMenuItem::setTitle):
              (WebCore::ContextMenuItem::setSubMenu):
              (WebCore::ContextMenuItem::setChecked):
              (WebCore::ContextMenuItem::setEnabled):
              (WebCore::ContextMenuItem::enabled):
              * platform/chromium/CursorChromium.cpp: Added.
              (WebCore::Cursor::Cursor):
              (WebCore::Cursor::~Cursor):
              (WebCore::Cursor::operator=):
              (WebCore::pointerCursor):
              (WebCore::crossCursor):
              (WebCore::handCursor):
              (WebCore::iBeamCursor):
              (WebCore::waitCursor):
              (WebCore::helpCursor):
              (WebCore::eastResizeCursor):
              (WebCore::northResizeCursor):
              (WebCore::northEastResizeCursor):
              (WebCore::northWestResizeCursor):
              (WebCore::southResizeCursor):
              (WebCore::southEastResizeCursor):
              (WebCore::southWestResizeCursor):
              (WebCore::westResizeCursor):
              (WebCore::northSouthResizeCursor):
              (WebCore::eastWestResizeCursor):
              (WebCore::northEastSouthWestResizeCursor):
              (WebCore::northWestSouthEastResizeCursor):
              (WebCore::columnResizeCursor):
              (WebCore::rowResizeCursor):
              (WebCore::middlePanningCursor):
              (WebCore::eastPanningCursor):
              (WebCore::northPanningCursor):
              (WebCore::northEastPanningCursor):
              (WebCore::northWestPanningCursor):
              (WebCore::southPanningCursor):
              (WebCore::southEastPanningCursor):
              (WebCore::southWestPanningCursor):
              (WebCore::westPanningCursor):
              (WebCore::moveCursor):
              (WebCore::verticalTextCursor):
              (WebCore::cellCursor):
              (WebCore::contextMenuCursor):
              (WebCore::aliasCursor):
              (WebCore::progressCursor):
              (WebCore::noDropCursor):
              (WebCore::copyCursor):
              (WebCore::noneCursor):
              (WebCore::notAllowedCursor):
              (WebCore::zoomInCursor):
              (WebCore::zoomOutCursor):
              (WebCore::grabCursor):
              (WebCore::grabbingCursor):
              * platform/chromium/DragDataChromium.cpp: Added.
              (WebCore::containsHTML):
              (WebCore::DragData::createClipboard):
              (WebCore::DragData::containsURL):
              (WebCore::DragData::asURL):
              (WebCore::DragData::containsFiles):
              (WebCore::DragData::asFilenames):
              (WebCore::DragData::containsPlainText):
              (WebCore::DragData::asPlainText):
              (WebCore::DragData::containsColor):
              (WebCore::DragData::canSmartReplace):
              (WebCore::DragData::containsCompatibleContent):
              (WebCore::DragData::asFragment):
              (WebCore::DragData::asColor):
              * platform/chromium/EditorChromium.cpp: Added.
              (WebCore::Editor::newGeneralClipboard):
              * platform/chromium/FileChooserChromium.cpp: Added.
              (WebCore::FileChooser::basenameForWidth):
              * platform/chromium/FileSystemChromium.cpp: Added.
              (WebCore::deleteFile):
              (WebCore::deleteEmptyDirectory):
              (WebCore::getFileSize):
              (WebCore::getFileModificationTime):
              (WebCore::directoryName):
              (WebCore::pathByAppendingComponent):
              (WebCore::makeAllDirectories):
              (WebCore::fileExists):
              * platform/chromium/FileSystemChromiumLinux.cpp: Added.
              (WebCore::pathGetFileName):
              * platform/chromium/FileSystemChromiumMac.mm: Added.
              (WebCore::pathGetFileName):
              * platform/chromium/FileSystemChromiumWin.cpp: Added.
              (WebCore::pathGetFileName):
              * platform/chromium/FramelessScrollView.cpp: Added.
              (WebCore::FramelessScrollView::~FramelessScrollView):
              (WebCore::FramelessScrollView::invalidateScrollbarRect):
              (WebCore::FramelessScrollView::isActive):
              (WebCore::FramelessScrollView::invalidateRect):
              (WebCore::FramelessScrollView::hostWindow):
              (WebCore::FramelessScrollView::windowClipRect):
              (WebCore::FramelessScrollView::paintContents):
              (WebCore::FramelessScrollView::contentsResized):
              (WebCore::FramelessScrollView::visibleContentsResized):
              * platform/chromium/FramelessScrollView.h: Added.
              (WebCore::FramelessScrollView::FramelessScrollView):
              (WebCore::FramelessScrollView::client):
              (WebCore::FramelessScrollView::setClient):
              * platform/chromium/FramelessScrollViewClient.h: Added.
              * platform/chromium/ScrollbarThemeChromiumWin.cpp: Added.
              (WebCore::):
              (WebCore::ScrollbarThemeChromium::scrollbarThickness):
              (WebCore::ScrollbarThemeChromium::invalidateOnMouseEnterExit):
              (WebCore::ScrollbarThemeChromium::paintTrackPiece):
              (WebCore::ScrollbarThemeChromium::paintButton):
              (WebCore::ScrollbarThemeChromium::paintThumb):
              (WebCore::ScrollbarThemeChromium::getThemeState):
              (WebCore::ScrollbarThemeChromium::getThemeArrowState):
              (WebCore::ScrollbarThemeChromium::getClassicThemeState):
              * platform/chromium/SoundChromiumPosix.cpp: Added.
              (WebCore::systemBeep):
              * platform/chromium/SoundChromiumWin.cpp: Added.
              (WebCore::systemBeep):
              * platform/chromium/SystemTimeChromium.cpp: Added.
              (WebCore::currentTime):
              (WebCore::userIdleTime):
              * platform/chromium/WidgetChromium.cpp: Added.
              (WebCore::Widget::Widget):
              (WebCore::Widget::~Widget):
              (WebCore::Widget::show):
              (WebCore::Widget::hide):
              (WebCore::Widget::setCursor):
              (WebCore::Widget::paint):
              (WebCore::Widget::setFocus):
              (WebCore::Widget::setIsSelected):
              (WebCore::Widget::frameRect):
              (WebCore::Widget::setFrameRect):
              * platform/chromium/WindowsVersion.cpp: Added.
              (WebCore::isVistaOrNewer):
              * platform/chromium/WindowsVersion.h: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@39861 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0e8acfa7
  20. 09 Jan, 2009 1 commit
    • darin@chromium.org's avatar
      2009-01-09 Darin Fisher <darin@chromium.org> · 45f77239
      darin@chromium.org authored
              Reviewed by Eric Seidel.
      
              https://bugs.webkit.org/show_bug.cgi?id=23214
              Upstream platform/network/chromium/
      
              * platform/network/chromium/AuthenticationChallenge.h: Added.
              (WebCore::AuthenticationChallenge::AuthenticationChallenge):
              (WebCore::AuthenticationChallenge::sourceHandle):
              * platform/network/chromium/AuthenticationChallengeChromium.cpp: Added.
              (WebCore::AuthenticationChallenge::platformCompare):
              * platform/network/chromium/CookieJarChromium.cpp: Added.
              (WebCore::setCookies):
              (WebCore::cookies):
              (WebCore::cookiesEnabled):
              * platform/network/chromium/DNSChromium.cpp: Added.
              (WebCore::prefetchDNS):
              * platform/network/chromium/NetworkStateNotifierChromium.cpp: Added.
              (WebCore::NetworkStateNotifier::updateState):
              (WebCore::NetworkStateNotifier::NetworkStateNotifier):
              * platform/network/chromium/NetworkStateNotifierPrivate.h: Added.
              * platform/network/chromium/ResourceError.h: Added.
              (WebCore::ResourceError::ResourceError):
              * platform/network/chromium/ResourceRequest.h: Added.
              (WebCore::ResourceRequest::):
              (WebCore::ResourceRequest::ResourceRequest):
              (WebCore::ResourceRequest::frame):
              (WebCore::ResourceRequest::setFrame):
              (WebCore::ResourceRequest::setTargetType):
              (WebCore::ResourceRequest::targetType):
              (WebCore::ResourceRequest::originPid):
              (WebCore::ResourceRequest::setOriginPid):
              (WebCore::ResourceRequest::securityInfo):
              (WebCore::ResourceRequest::setSecurityInfo):
              (WebCore::ResourceRequest::doUpdatePlatformRequest):
              (WebCore::ResourceRequest::doUpdateResourceRequest):
              * platform/network/chromium/ResourceResponse.h:
              (WebCore::ResourceResponse::ResourceResponse):
              (WebCore::ResourceResponse::getSecurityInfo):
              (WebCore::ResourceResponse::setSecurityInfo):
              (WebCore::ResourceResponse::isContentFiltered):
              (WebCore::ResourceResponse::setIsContentFiltered):
              (WebCore::ResourceResponse::doUpdateResourceResponse):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@39760 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      45f77239
  21. 07 Jan, 2009 1 commit
    • eric@webkit.org's avatar
      Reviewed by Gavin Barraclough. · f39bd282
      eric@webkit.org authored
              Upstream 3 more files to get the WebCore-Chromium build a bit further.
      
              * WebCore.scons:
              * page/chromium/AccessibilityObjectChromium.cpp: Added.
              (WebCore::AccessibilityObject::accessibilityIgnoreAttachment):
              * page/chromium/AccessibilityObjectWrapper.h: Added.
              (WebCore::AccessibilityObjectWrapper::~AccessibilityObjectWrapper):
              (WebCore::AccessibilityObjectWrapper::attached):
              (WebCore::AccessibilityObjectWrapper::accessibilityObject):
              (WebCore::AccessibilityObjectWrapper::AccessibilityObjectWrapper):
              * platform/chromium/PasteboardPrivate.h: Added.
              (WebCore::PasteboardPrivate::):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@39668 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f39bd282
  22. 26 Nov, 2008 1 commit
  23. 24 Nov, 2008 1 commit
    • darin@chromium.org's avatar
      2008-11-24 Darin Fisher <darin@chromium.org> · 6b41247a
      darin@chromium.org authored
              Reviewed by Sam Weinig.
      
              https://bugs.webkit.org/show_bug.cgi?id=22448
              Create an abstraction for JSC::SourceCode
      
              * WebCore.vcproj/WebCore.vcproj:
              * bindings/js/CachedScriptSourceProvider.h:
              * bindings/js/ScriptController.cpp:
              (WebCore::ScriptController::evaluate):
              * bindings/js/ScriptController.h:
              * bindings/js/ScriptSourceCode.h: Added.
              (WebCore::ScriptSourceCode::ScriptSourceCode):
              (WebCore::ScriptSourceCode::length):
              (WebCore::ScriptSourceCode::jsSourceCode):
              * bindings/js/WorkerScriptController.cpp:
              (WebCore::Workevn ScriptController::evaluate):
              * bindings/js/WorkerScriptController.h:
              * dom/ScriptElement.cpp:
              (WebCore::ScriptElement::insertedIntoDocument):
              (WebCore::ScriptElement::childrenChanged):
              (WebCore::ScriptElementData::evaluateScript):
              (WebCore::ScriptElementData::notifyFinished):
              * dom/ScriptElement.h:
              * dom/WorkerThread.cpp:
              (WebCore::WorkerThread::workerThread):
              * dom/WorkerThread.h:
              * dom/XMLTokenizer.cpp:
              (WebCore::XMLTokenizer::notifyFinished):
              * dom/XMLTokenizerLibxml2.cpp:
              (WebCore::XMLTokenizer::endElementNs):
              * dom/XMLTokenizerQt.cpp:
              (WebCore::XMLTokenizer::parseEndElement):
              * html/HTMLTokenizer.cpp:
              (WebCore::HTMLTokenizer::scriptHandler):
              (WebCore::HTMLTokenizer::scriptExecution):
              (WebCore::HTMLTokenizer::notifyFinished):
              * html/HTMLTokenizer.h:
              * loader/FrameLoader.cpp:
              (WebCore::FrameLoader::executeScript):
              * loader/FrameLoader.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38729 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6b41247a
  24. 20 Nov, 2008 1 commit
    • darin@chromium.org's avatar
      2008-11-18 Darin Fisher <darin@chromium.org> · cd84840e
      darin@chromium.org authored
              Reviewed by Geoff Garen.
      
              https://bugs.webkit.org/show_bug.cgi?id=22345
              Define ScriptValue as a thin container for a JSC::Value*.
      
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/js/ScheduledAction.cpp:
              * bindings/js/ScriptController.cpp:
              (WebCore::ScriptController::evaluate):
              * bindings/js/ScriptController.h:
              * bindings/js/ScriptValue.cpp: Added.
              (WebCore::ScriptValue::getString):
              * bindings/js/ScriptValue.h: Added.
              (WebCore::ScriptValue::ScriptValue):
              (WebCore::ScriptValue::jsValue):
              * dom/ScriptElement.cpp:
              * dom/XMLTokenizer.cpp:
              * dom/XMLTokenizerLibxml2.cpp:
              * html/HTMLTokenizer.cpp:
              * loader/FrameLoader.cpp:
              (WebCore::FrameLoader::executeIfJavaScriptURL):
              (WebCore::FrameLoader::executeScript):
              * loader/FrameLoader.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38610 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      cd84840e