1. 29 Feb, 2012 1 commit
    • yurys@chromium.org's avatar
      Web Inspector: enable Profiles panel for workers · f58fc046
      yurys@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=79908
      
      Introduced worker profiler agent. Enabled script profiling for
      workers.
      
      Reviewed by Pavel Feldman.
      
      * bindings/js/ScriptProfiler.cpp:
      (WebCore::ScriptProfiler::startForPage):
      (WebCore):
      (WebCore::ScriptProfiler::startForWorkerContext):
      (WebCore::ScriptProfiler::stopForPage):
      (WebCore::ScriptProfiler::stopForWorkerContext):
      * bindings/js/ScriptProfiler.h:
      (WebCore):
      (ScriptProfiler):
      * bindings/v8/ScriptProfiler.cpp:
      (WebCore::ScriptProfiler::startForPage):
      (WebCore):
      (WebCore::ScriptProfiler::startForWorkerContext):
      (WebCore::ScriptProfiler::stopForPage):
      (WebCore::ScriptProfiler::stopForWorkerContext):
      * bindings/v8/ScriptProfiler.h:
      (WebCore):
      (ScriptProfiler):
      * inspector/InspectorProfilerAgent.cpp:
      (WebCore):
      (PageProfilerAgent):
      (WebCore::PageProfilerAgent::PageProfilerAgent):
      (WebCore::PageProfilerAgent::~PageProfilerAgent):
      (WebCore::PageProfilerAgent::startProfiling):
      (WebCore::PageProfilerAgent::stopProfiling):
      (WebCore::InspectorProfilerAgent::create):
      (WorkerProfilerAgent):
      (WebCore::WorkerProfilerAgent::WorkerProfilerAgent):
      (WebCore::WorkerProfilerAgent::~WorkerProfilerAgent):
      (WebCore::WorkerProfilerAgent::startProfiling):
      (WebCore::WorkerProfilerAgent::stopProfiling):
      (WebCore::InspectorProfilerAgent::InspectorProfilerAgent):
      (WebCore::InspectorProfilerAgent::start):
      (WebCore::InspectorProfilerAgent::stop):
      * inspector/InspectorProfilerAgent.h:
      (WebCore):
      (InspectorProfilerAgent):
      * inspector/WorkerInspectorController.cpp:
      (WebCore::WorkerInspectorController::WorkerInspectorController):
      (WebCore::WorkerInspectorController::connectFrontend):
      (WebCore::WorkerInspectorController::disconnectFrontend):
      (WebCore::WorkerInspectorController::restoreInspectorStateFromCookie):
      * inspector/WorkerInspectorController.h:
      (WebCore):
      (WorkerInspectorController):
      * inspector/front-end/ProfilesPanel.js:
      * inspector/front-end/inspector.js:
      (WebInspector._createPanels):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@109214 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f58fc046
  2. 07 Dec, 2011 1 commit
    • vsevik@chromium.org's avatar
      Web Inspector: Extract default call stack creation and check for front-end from console. · dcf57087
      vsevik@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=73566
      
      Reviewed by Yury Semikhatsky.
      
      * bindings/js/ScriptCallStackFactory.cpp:
      (WebCore::createScriptCallStack):
      * bindings/js/ScriptCallStackFactory.h:
      * bindings/scripts/CodeGeneratorJS.pm:
      (GenerateParametersCheck):
      * bindings/scripts/CodeGeneratorV8.pm:
      (GenerateFunctionCallback):
      * bindings/scripts/test/JS/JSTestObj.cpp:
      (WebCore::jsTestObjPrototypeFunctionCustomArgsAndException):
      * bindings/scripts/test/V8/V8TestObj.cpp:
      (WebCore::TestObjInternal::customArgsAndExceptionCallback):
      * bindings/v8/ScriptCallStackFactory.cpp:
      (WebCore::createScriptCallStack):
      * bindings/v8/ScriptCallStackFactory.h:
      * inspector/InspectorInstrumentation.cpp:
      (WebCore::InspectorInstrumentation::hasFrontendForScriptContext):
      * inspector/InspectorInstrumentation.h:
      (WebCore::InspectorInstrumentation::hasFrontendForScriptContext):
      * inspector/WorkerInspectorController.h:
      (WebCore::WorkerInspectorController::hasFrontend):
      * page/Console.cpp:
      * page/Console.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@102233 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      dcf57087
  3. 02 Dec, 2011 2 commits
    • vsevik@chromium.org's avatar
      Unreviewed, rolling out r101794. · 112ea9c2
      vsevik@chromium.org authored
      http://trac.webkit.org/changeset/101794
      https://bugs.webkit.org/show_bug.cgi?id=73656
      
      Broke win build (Requested by vsevik on #webkit).
      
      Patch by Sheriff Bot <webkit.review.bot@gmail.com> on 2011-12-02
      
      * bindings/js/ScriptCallStackFactory.cpp:
      * bindings/js/ScriptCallStackFactory.h:
      * bindings/scripts/CodeGeneratorJS.pm:
      (GenerateParametersCheck):
      * bindings/scripts/CodeGeneratorV8.pm:
      (GenerateFunctionCallback):
      * bindings/scripts/test/JS/JSTestObj.cpp:
      (WebCore::jsTestObjPrototypeFunctionCustomArgsAndException):
      * bindings/scripts/test/V8/V8TestObj.cpp:
      (WebCore::TestObjInternal::customArgsAndExceptionCallback):
      * bindings/v8/ScriptCallStackFactory.cpp:
      * bindings/v8/ScriptCallStackFactory.h:
      * inspector/InspectorInstrumentation.cpp:
      * inspector/InspectorInstrumentation.h:
      * inspector/WorkerInspectorController.h:
      * page/Console.cpp:
      (WebCore::Console::shouldCaptureFullStackTrace):
      * page/Console.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@101797 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      112ea9c2
    • vsevik@chromium.org's avatar
      Web Inspector: Extract default call stack creation and check for front-end from console. · 272a0767
      vsevik@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=73566
      
      Reviewed by Yury Semikhatsky.
      
      * bindings/js/ScriptCallStackFactory.cpp:
      (WebCore::createScriptCallStack):
      * bindings/js/ScriptCallStackFactory.h:
      * bindings/scripts/CodeGeneratorJS.pm:
      (GenerateParametersCheck):
      * bindings/scripts/CodeGeneratorV8.pm:
      (GenerateFunctionCallback):
      * bindings/scripts/test/JS/JSTestObj.cpp:
      (WebCore::jsTestObjPrototypeFunctionCustomArgsAndException):
      * bindings/scripts/test/V8/V8TestObj.cpp:
      (WebCore::TestObjInternal::customArgsAndExceptionCallback):
      * bindings/v8/ScriptCallStackFactory.cpp:
      (WebCore::createScriptCallStack):
      * bindings/v8/ScriptCallStackFactory.h:
      * inspector/InspectorInstrumentation.cpp:
      (WebCore::InspectorInstrumentation::hasFrontendForScriptContext):
      * inspector/InspectorInstrumentation.h:
      (WebCore::InspectorInstrumentation::hasFrontendForScriptContext):
      * inspector/WorkerInspectorController.h:
      (WebCore::WorkerInspectorController::hasFrontend):
      * page/Console.cpp:
      * page/Console.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@101794 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      272a0767
  4. 24 Nov, 2011 1 commit
    • yurys@chromium.org's avatar
      Web Inspector: exceptions in shared workers should be logged to web inspector console · 415d1a90
      yurys@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=73022
      
      According to section "4.7 Runtime script errors" of Web Workers spec "For shared
      workers, if the error is still not handled afterwards, or if the error occurred
      while handling a previous script error, the error may be reported to the user."
      
      This change adds uncaugh exceptions to the shared worker web inspector console.
      
      Reviewed by Pavel Feldman.
      
      * inspector/InspectorConsoleAgent.cpp:
      (WebCore::InspectorConsoleAgent::restore):
      * inspector/InspectorConsoleInstrumentation.h:
      (WebCore::InspectorInstrumentation::addMessageToConsole):
      * inspector/InspectorDebuggerAgent.cpp:
      (WebCore::InspectorDebuggerAgent::restore):
      * inspector/InspectorInstrumentation.cpp:
      (WebCore::InspectorInstrumentation::instrumentingAgentsForWorkerContext):
      * inspector/InspectorInstrumentation.h:
      * inspector/WorkerInspectorController.cpp:
      (WebCore::WorkerInspectorController::connectFrontend):
      (WebCore::WorkerInspectorController::disconnectFrontend):
      (WebCore::WorkerInspectorController::restoreInspectorStateFromCookie):
      * inspector/WorkerInspectorController.h:
      * inspector/front-end/WorkerManager.js:
      (WebInspector.WorkerManager.showWorkerTerminatedScreen):
      * inspector/front-end/inspector.js:
      * workers/SharedWorkerContext.cpp:
      (WebCore::SharedWorkerContext::logExceptionToConsole):
      * workers/SharedWorkerContext.h:
      * workers/WorkerContext.cpp:
      (WebCore::WorkerContext::addMessage): console messages are now added to
      the worker console agent.
      (WebCore::WorkerContext::addMessageToWorkerConsole):
      * workers/WorkerContext.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@101125 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      415d1a90
  5. 23 Nov, 2011 1 commit
    • yurys@chromium.org's avatar
      Web Inspector: split console agent into worker and page console agents · bc7ab39b
      yurys@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=73019
      
      InspectorConsoleAgent now has two descendants: WorkerConsoleAgent and PageConsoleAgent
      which encapsulate functionality specific for the type of inspected instance.
      
      Reviewed by Pavel Feldman.
      
      * CMakeLists.txt:
      * GNUmakefile.list.am:
      * Target.pri:
      * WebCore.gypi:
      * WebCore.vcproj/WebCore.vcproj:
      * WebCore.xcodeproj/project.pbxproj:
      * inspector/InspectorConsoleAgent.cpp:
      (WebCore::InspectorConsoleAgent::InspectorConsoleAgent):
      (WebCore::InspectorConsoleAgent::~InspectorConsoleAgent):
      (WebCore::InspectorConsoleAgent::clearMessages):
      (WebCore::InspectorConsoleAgent::addMessageToConsole):
      (WebCore::InspectorConsoleAgent::resourceRetrievedByXMLHttpRequest):
      (WebCore::InspectorConsoleAgent::didReceiveResponse):
      (WebCore::InspectorConsoleAgent::didFailLoading):
      (WebCore::InspectorConsoleAgent::addConsoleMessage):
      * inspector/InspectorConsoleAgent.h:
      * inspector/InspectorController.cpp:
      (WebCore::InspectorController::InspectorController):
      * inspector/InspectorStyleTextEditor.cpp:
      * inspector/InspectorStyleTextEditor.h:
      * inspector/PageConsoleAgent.cpp: Copied from Source/WebCore/inspector/PageDebuggerAgent.cpp.
      (WebCore::PageConsoleAgent::PageConsoleAgent):
      (WebCore::PageConsoleAgent::~PageConsoleAgent):
      (WebCore::PageConsoleAgent::clearMessages):
      (WebCore::PageConsoleAgent::addInspectedNode):
      (WebCore::PageConsoleAgent::developerExtrasEnabled):
      * inspector/PageConsoleAgent.h: Copied from Source/WebCore/inspector/PageDebuggerAgent.h.
      * inspector/PageDebuggerAgent.cpp:
      * inspector/PageDebuggerAgent.h:
      * inspector/PageRuntimeAgent.cpp: Copied from Source/WebCore/inspector/PageDebuggerAgent.h.
      (WebCore::PageRuntimeAgent::PageRuntimeAgent): PageRuntimeAgent was moved into its own file.
      (WebCore::PageRuntimeAgent::~PageRuntimeAgent):
      (WebCore::PageRuntimeAgent::scriptStateForFrameId):
      (WebCore::PageRuntimeAgent::getDefaultInspectedState):
      * inspector/PageRuntimeAgent.h: Copied from Source/WebCore/inspector/PageDebuggerAgent.h.
      * inspector/WorkerConsoleAgent.cpp: Copied from Source/WebCore/inspector/PageDebuggerAgent.h.
      (WebCore::WorkerConsoleAgent::WorkerConsoleAgent):
      (WebCore::WorkerConsoleAgent::~WorkerConsoleAgent):
      (WebCore::WorkerConsoleAgent::addInspectedNode):
      (WebCore::WorkerConsoleAgent::developerExtrasEnabled):
      * inspector/WorkerConsoleAgent.h: Copied from Source/WebCore/inspector/PageDebuggerAgent.h.
      * inspector/WorkerDebuggerAgent.cpp:
      * inspector/WorkerDebuggerAgent.h:
      * inspector/WorkerInspectorController.cpp:
      (WebCore::WorkerInspectorController::WorkerInspectorController):
      * inspector/WorkerInspectorController.h:
      * inspector/WorkerRuntimeAgent.cpp: Copied from Source/WebCore/inspector/PageDebuggerAgent.h.
      (WebCore::WorkerRuntimeAgent::WorkerRuntimeAgent): WorkerRuntimeAgent was moved into its own file.
      (WebCore::WorkerRuntimeAgent::~WorkerRuntimeAgent):
      (WebCore::WorkerRuntimeAgent::scriptStateForFrameId):
      (WebCore::WorkerRuntimeAgent::getDefaultInspectedState):
      * inspector/WorkerRuntimeAgent.h: Copied from Source/WebCore/inspector/PageDebuggerAgent.h.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@101081 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bc7ab39b
  6. 14 Oct, 2011 1 commit
  7. 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
  8. 05 Oct, 2011 1 commit
    • yurys@chromium.org's avatar
      Web Inspector: provide a way for persisting worker inspector state · 6f74112a
      yurys@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=69422
      
      Source/WebCore:
      
      Worker inspector can persist and restore its state. InspectorStateClient is
      exctracted into a separate interface and has a custom implementation in case
      of worker inspector.
      
      Reviewed by Pavel Feldman.
      
      * GNUmakefile.list.am:
      * WebCore.gypi:
      * WebCore.vcproj/WebCore.vcproj:
      * WebCore.xcodeproj/project.pbxproj:
      * inspector/InspectorClient.h:
      * inspector/InspectorState.cpp:
      (WebCore::InspectorState::InspectorState):
      * inspector/InspectorState.h:
      * inspector/InspectorStateClient.h: Copied from Source/WebCore/inspector/InspectorClient.h.
      (WebCore::InspectorStateClient::~InspectorStateClient):
      (WebCore::InspectorStateClient::updateInspectorStateCookie):
      * inspector/WorkerInspectorController.cpp:
      (WebCore::WorkerInspectorController::WorkerInspectorController):
      (WebCore::WorkerInspectorController::restoreInspectorStateFromCookie):
      * inspector/WorkerInspectorController.h:
      * workers/DefaultSharedWorkerRepository.cpp:
      (WebCore::SharedWorkerProxy::postMessageToPageInspector):
      (WebCore::SharedWorkerProxy::updateInspectorStateCookie):
      * workers/WorkerMessagingProxy.cpp:
      (WebCore::WorkerMessagingProxy::updateInspectorStateCookie):
      * workers/WorkerMessagingProxy.h:
      * workers/WorkerReportingProxy.h:
      
      Source/WebKit/chromium:
      
      Provided an API for saving/restoring worker inspector state.
      
      Reviewed by Pavel Feldman.
      
      * public/WebCommonWorkerClient.h:
      (WebKit::WebCommonWorkerClient::saveDevToolsAgentState):
      * public/WebSharedWorker.h:
      (WebKit::WebSharedWorker::reattachDevTools):
      * src/WebSharedWorkerImpl.cpp:
      (WebKit::reconnectToWorkerContextInspectorTask):
      (WebKit::WebSharedWorkerImpl::reattachDevTools):
      * src/WebSharedWorkerImpl.h:
      * src/WebWorkerBase.cpp:
      (WebKit::WebWorkerBase::updateInspectorStateCookie):
      (WebKit::WebWorkerBase::updateInspectorStateCookieTask):
      * src/WebWorkerBase.h:
      * src/WebWorkerClientImpl.cpp:
      (WebKit::WebWorkerClientImpl::updateInspectorStateCookie):
      * src/WebWorkerClientImpl.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@96710 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6f74112a
  9. 09 Aug, 2011 1 commit
    • yurys@chromium.org's avatar
      Web Inspector: get rid of InspectorInstrumentation::inspectorAgents() map · bea92f2c
      yurys@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=54678
      
      Added two functions for retrieving InstrumentingAgents from Page and WorkerContext.
      
      Reviewed by Pavel Feldman.
      
      * CMakeLists.txt:
      * GNUmakefile.list.am:
      * WebCore.gypi:
      * WebCore.pro:
      * WebCore.vcproj/WebCore.vcproj:
      * WebCore.xcodeproj/project.pbxproj:
      * inspector/InspectorController.cpp:
      (WebCore::InspectorController::InspectorController):
      (WebCore::InspectorController::inspectedPageDestroyed):
      * inspector/InspectorController.h:
      * inspector/InspectorInstrumentation.cpp:
      (WebCore::InspectorInstrumentation::instrumentingAgentsForPage):
      * inspector/InspectorInstrumentation.h:
      * inspector/InstrumentingAgents.cpp: Copied from Source/WebCore/inspector/WorkerInspectorController.h.
      (WebCore::instrumentationForPage):
      (WebCore::instrumentationForWorkerContext):
      * inspector/InstrumentingAgents.h:
      * inspector/WorkerInspectorController.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@92677 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bea92f2c
  10. 27 May, 2011 1 commit
  11. 23 May, 2011 1 commit
    • yurys@chromium.org's avatar
      2011-05-23 Yury Semikhatsky <yurys@chromium.org> · 43678996
      yurys@chromium.org authored
              Reviewed by Pavel Feldman.
      
              [Chromium] Web Inspector: provide initial implementation of worker inspector transport
              https://bugs.webkit.org/show_bug.cgi?id=60267
      
              All methods of WorkerContextInspectorProxy are inlined in WorkerContextProxy and
              the class itself is removed. Messages from worker inspector to page inspector
              are sent by means of WorkerReportingProxy.
      
              * GNUmakefile.list.am:
              * WebCore.gypi:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * inspector/InspectorWorkerAgent.cpp:
              (WebCore::InspectorWorkerAgent::WorkerFrontendChannel::WorkerFrontendChannel):
              (WebCore::InspectorWorkerAgent::WorkerFrontendChannel::proxy):
              (WebCore::InspectorWorkerAgent::WorkerFrontendChannel::dispatchMessageFromWorker):
              (WebCore::InspectorWorkerAgent::sendMessageToWorker):
              (WebCore::InspectorWorkerAgent::didStartWorkerContext):
              * inspector/InspectorWorkerAgent.h:
              * inspector/WorkerInspectorController.cpp:
              (WebCore::WorkerInspectorController::connectFrontend):
              (WebCore::WorkerInspectorController::disconnectFrontend):
              * inspector/WorkerInspectorController.h:
              * workers/DefaultSharedWorkerRepository.cpp:
              (WebCore::SharedWorkerProxy::postMessageToPageInspector):
              * workers/WorkerContextInspectorProxy.h: Removed.
              * workers/WorkerContextProxy.h:
              (WebCore::WorkerContextProxy::PageInspector::~PageInspector):
              (WebCore::WorkerContextProxy::connectToInspector):
              (WebCore::WorkerContextProxy::disconnectFromInspector):
              (WebCore::WorkerContextProxy::sendMessageToInspector):
              * workers/WorkerMessagingProxy.cpp:
              (WebCore::WorkerMessagingProxy::postMessageToPageInspector):
              * workers/WorkerMessagingProxy.h:
              * workers/WorkerReportingProxy.h:
      2011-05-23  Yury Semikhatsky  <yurys@chromium.org>
      
              Reviewed by Pavel Feldman.
      
              [Chromium] Web Inspector: provide initial implementation of worker inspector transport
              https://bugs.webkit.org/show_bug.cgi?id=60267
      
              WebWorker and WebWorkerClient are extended with methods for passing
              DevTools messages between worker context inspector and page inspector.
      
              * public/WebWorker.h:
              (WebKit::WebWorker::attachDevTools):
              (WebKit::WebWorker::detachDevTools):
              (WebKit::WebWorker::dispatchDevToolsMessage):
              * public/WebWorkerClient.h:
              (WebKit::WebWorkerClient::dispatchDevToolsMessage):
              * src/WebWorkerBase.cpp:
              (WebKit::WebWorkerBase::postMessageToPageInspector):
              (WebKit::WebWorkerBase::postMessageToPageInspectorTask):
              * src/WebWorkerBase.h:
              * src/WebWorkerClientImpl.cpp:
              (WebKit::WebWorkerClientImpl::WebWorkerClientImpl):
              (WebKit::WebWorkerClientImpl::connectToInspector):
              (WebKit::WebWorkerClientImpl::disconnectFromInspector):
              (WebKit::WebWorkerClientImpl::sendMessageToInspector):
              (WebKit::WebWorkerClientImpl::dispatchDevToolsMessage):
              * src/WebWorkerClientImpl.h:
              * src/WebWorkerImpl.cpp:
              (WebKit::WebWorkerImpl::startWorkerContext):
              (WebKit::connectToWorkerContextInspectorTask):
              (WebKit::WebWorkerImpl::attachDevTools):
              (WebKit::disconnectFromWorkerContextInspectorTask):
              (WebKit::WebWorkerImpl::detachDevTools):
              (WebKit::dispatchOnInspectorBackendTask):
              (WebKit::WebWorkerImpl::dispatchDevToolsMessage):
              * src/WebWorkerImpl.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@87074 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      43678996
  12. 20 May, 2011 1 commit
  13. 18 Apr, 2011 1 commit
    • yurys@chromium.org's avatar
      2011-04-15 Yury Semikhatsky <yurys@chromium.org> · 7d4e39b1
      yurys@chromium.org authored
              Reviewed by Pavel Feldman.
      
              Web Inspector: introduce WorkerInspectorController
              https://bugs.webkit.org/show_bug.cgi?id=58668
      
              WorkerInspectorController will be owned by WorkerContext and will hold all inspector
              agents and will also manage connection to the inspector frontend.
      
              * CMakeLists.txt:
              * GNUmakefile.list.am:
              * WebCore.gypi:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/js/ScriptState.cpp:
              (WebCore::scriptStateFromWorkerContext):
              * bindings/js/ScriptState.h:
              * bindings/v8/ScriptState.cpp:
              (WebCore::scriptStateFromWorkerContext):
              * bindings/v8/ScriptState.h:
              * inspector/InspectorState.cpp:
              (WebCore::InspectorState::updateCookie):
              * inspector/WorkerInspectorController.cpp: Added.
              (WebCore::WorkerInspectorController::WorkerInspectorController):
              (WebCore::WorkerInspectorController::~WorkerInspectorController):
              (WebCore::WorkerInspectorController::connectFrontend):
              (WebCore::WorkerInspectorController::disconnectFrontend):
              (WebCore::WorkerInspectorController::dispatchMessageFromFrontend):
              * inspector/WorkerInspectorController.h: Copied from Source/WebCore/bindings/js/ScriptState.h.
              * workers/WorkerContext.cpp:
              (WebCore::WorkerContext::WorkerContext):
              * workers/WorkerContext.h:
              (WebCore::WorkerContext::workerInspectorController):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@84125 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7d4e39b1
  14. 13 Apr, 2011 1 commit
    • pfeldman@chromium.org's avatar
      2011-04-12 Pavel Feldman <pfeldman@google.com> · 9b5c70fc
      pfeldman@chromium.org authored
              Reviewed by Yury Semikhatsky.
      
              Web Inspector: another pass of protocol renames.
              https://bugs.webkit.org/show_bug.cgi?id=58340
      
              * inspector/Inspector.json:
              * inspector/InspectorDOMAgent.cpp:
              (WebCore::InspectorDOMAgent::getDocument):
              (WebCore::InspectorDOMAgent::performSearch):
              (WebCore::InspectorDOMAgent::setSearchingForNode):
              * inspector/InspectorDOMAgent.h:
              * inspector/InspectorDebuggerAgent.cpp:
              (WebCore::InspectorDebuggerAgent::evaluateOnCallFrame):
              * inspector/InspectorDebuggerAgent.h:
              * inspector/InspectorRuntimeAgent.cpp:
              (WebCore::InspectorRuntimeAgent::evaluate):
              * inspector/InspectorRuntimeAgent.h:
              * inspector/front-end/ElementsPanel.js:
              (WebInspector.ElementsPanel.prototype._setSearchingForNode):
              (WebInspector.ElementsPanel.prototype.setSearchingForNode):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@83706 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9b5c70fc
  15. 04 Apr, 2011 2 commits
    • yurys@chromium.org's avatar
      2011-04-04 Yury Semikhatsky <yurys@chromium.org> · 3a661699
      yurys@chromium.org authored
              Reviewed by Pavel Feldman.
      
              Web Inspector: InspectorRuntimeAgent should not depend on Page
              https://bugs.webkit.org/show_bug.cgi?id=57759
      
              Descendants of InspectorRuntimeAgent should implement a method providing access to the default
              inspected state used for console evaluations.
      
              * inspector/InspectorAgent.cpp:
              (WebCore::InspectorAgent::InspectorAgent): runtime agent is created and deleted along with other agents.
              (WebCore::InspectorAgent::setFrontend):
              * inspector/InspectorAgent.h:
              * inspector/InspectorRuntimeAgent.cpp:
              (WebCore::InspectorRuntimeAgent::create):
              (WebCore::InspectorRuntimeAgent::InspectorRuntimeAgent):
              (WebCore::InspectorRuntimeAgent::evaluate):
              * inspector/InspectorRuntimeAgent.h:
              (WebCore::InspectorRuntimeAgent::InspectedStateProvider::~InspectedStateProvider):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@82845 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3a661699
    • loislo@chromium.org's avatar
      2011-04-04 Ilya Tikhonovsky <loislo@chromium.org> · 3639d621
      loislo@chromium.org authored
              Reviewed by Pavel Feldman.
      
              Web Inspector: introduce support of 'optional' flag for command arguments.
              https://bugs.webkit.org/show_bug.cgi?id=57698
      
              * inspector/protocol/runtime-agent-expected.txt:
              * inspector/protocol/runtime-agent.html:
              * inspector/report-API-errors-expected.txt:
              * inspector/report-API-errors.html:
              * inspector/report-protocol-errors-expected.txt:
      2011-04-04  Ilya Tikhonovsky  <loislo@chromium.org>
      
              Reviewed by Pavel Feldman.
      
              Web Inspector: introduce support of 'optional' flag for command arguments.
              https://bugs.webkit.org/show_bug.cgi?id=57698
      
              * inspector/CodeGeneratorInspector.pm:
              * inspector/Inspector.json:
              * inspector/InspectorDebuggerAgent.cpp:
              (WebCore::InspectorDebuggerAgent::setBreakpointByUrl):
              (WebCore::InspectorDebuggerAgent::setBreakpoint):
              (WebCore::InspectorDebuggerAgent::evaluateOnCallFrame):
              * inspector/InspectorDebuggerAgent.h:
              * inspector/InspectorPageAgent.cpp:
              (WebCore::InspectorPageAgent::reloadPage):
              * inspector/InspectorPageAgent.h:
              * inspector/InspectorResourceAgent.cpp:
              (WebCore::InspectorResourceAgent::getResourceContent):
              * inspector/InspectorResourceAgent.h:
              * inspector/InspectorRuntimeAgent.cpp:
              (WebCore::InspectorRuntimeAgent::evaluate):
              * inspector/InspectorRuntimeAgent.h:
              * inspector/generate-inspector-idl:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@82804 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3639d621
  16. 31 Mar, 2011 1 commit
    • pfeldman@chromium.org's avatar
      2011-03-31 Pavel Feldman <pfeldman@chromium.org> · 2dd0dc0f
      pfeldman@chromium.org authored
              Reviewed by Yury Semikhatsky.
      
              Web Inspector: disable properties abbreviation.
              https://bugs.webkit.org/show_bug.cgi?id=57525
      
              * inspector/console/console-dir-global.html:
              * inspector/protocol/runtime-agent-expected.txt:
              * inspector/protocol/runtime-agent.html:
      2011-03-31  Pavel Feldman  <pfeldman@chromium.org>
      
              Reviewed by Yury Semikhatsky.
      
              Web Inspector: disable properties abbreviation.
              https://bugs.webkit.org/show_bug.cgi?id=57525
      
              * inspector/InjectedScript.cpp:
              (WebCore::InjectedScript::getProperties):
              * inspector/InjectedScript.h:
              * inspector/InjectedScriptSource.js:
              (.):
              ():
              * inspector/Inspector.json:
              * inspector/InspectorRuntimeAgent.cpp:
              (WebCore::InspectorRuntimeAgent::getProperties):
              * inspector/InspectorRuntimeAgent.h:
              * inspector/front-end/ConsoleView.js:
              (WebInspector.ConsoleView.prototype.completions.evaluated):
              (WebInspector.ConsoleView.prototype._formatarray):
              * inspector/front-end/ObjectPropertiesSection.js:
              (WebInspector.ObjectPropertiesSection.prototype.update.callback):
              (WebInspector.ObjectPropertiesSection.prototype.update):
              (WebInspector.ObjectPropertyTreeElement.prototype.onpopulate):
              (WebInspector.ObjectPropertyTreeElement.prototype.update):
              (WebInspector.ObjectPropertyTreeElement.prototype.startEditing):
              * inspector/front-end/PropertiesSidebarPane.js:
              (WebInspector.PropertiesSidebarPane.prototype.update.nodePrototypesReady):
              * inspector/front-end/RemoteObject.js:
              (WebInspector.RemoteObject.prototype.getOwnProperties):
              (WebInspector.RemoteObject.prototype.getAllProperties):
              (WebInspector.RemoteObject.prototype._getProperties):
              (WebInspector.LocalJSONObject.prototype.getOwnProperties):
              (WebInspector.LocalJSONObject.prototype.getAllProperties):
              * inspector/front-end/inspector.css:
              (.console-formatted-string, .console-formatted-regexp):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@82609 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2dd0dc0f
  17. 21 Mar, 2011 1 commit
    • pfeldman@chromium.org's avatar
      2011-03-21 Pavel Feldman <pfeldman@chromium.org> · 7827856e
      pfeldman@chromium.org authored
              Reviewed by Yury Semikhatsky.
      
              Web Inspector: expose object id as string, not JSON struct in the protocol.
              https://bugs.webkit.org/show_bug.cgi?id=56681
      
              * http/tests/inspector/protocol-test.js:
              (initialize_ProtocolTest.InspectorTest.filterProps):
              (initialize_ProtocolTest.InspectorTest._dumpCallArguments):
              * inspector/protocol/runtime-agent-expected.txt:
              * inspector/protocol/runtime-agent.html:
      2011-03-21  Pavel Feldman  <pfeldman@chromium.org>
      
              Reviewed by Yury Semikhatsky.
      
              Web Inspector: expose object id as string, not JSON struct in the protocol.
              https://bugs.webkit.org/show_bug.cgi?id=56681
      
              * bindings/js/JSInjectedScriptHostCustom.cpp:
              (WebCore::JSInjectedScriptHost::inspect):
              * bindings/v8/custom/V8InjectedScriptHostCustom.cpp:
              (WebCore::V8InjectedScriptHost::inspectCallback):
              * inspector/InjectedScript.cpp:
              (WebCore::InjectedScript::evaluateOn):
              (WebCore::InjectedScript::evaluateOnCallFrame):
              (WebCore::InjectedScript::getProperties):
              (WebCore::InjectedScript::nodeForObjectId):
              (WebCore::InjectedScript::setPropertyValue):
              (WebCore::InjectedScript::releaseObject):
              * inspector/InjectedScript.h:
              * inspector/InjectedScriptHost.cpp:
              (WebCore::InjectedScriptHost::inspectImpl):
              * inspector/InjectedScriptHost.h:
              * inspector/InjectedScriptManager.cpp:
              (WebCore::InjectedScriptManager::injectedScriptForObjectId):
              (WebCore::InjectedScriptManager::releaseObjectGroup):
              * inspector/InjectedScriptManager.h:
              * inspector/InjectedScriptSource.js:
              * inspector/Inspector.json:
              * inspector/InspectorConsoleAgent.cpp:
              (WebCore::InspectorConsoleAgent::clearConsoleMessages):
              * inspector/InspectorDOMAgent.cpp:
              (WebCore::InspectorDOMAgent::pushNodeToFrontend):
              * inspector/InspectorDOMAgent.h:
              * inspector/InspectorDebuggerAgent.cpp:
              (WebCore::InspectorDebuggerAgent::evaluateOnCallFrame):
              * inspector/InspectorDebuggerAgent.h:
              * inspector/InspectorRuntimeAgent.cpp:
              (WebCore::InspectorRuntimeAgent::evaluateOn):
              (WebCore::InspectorRuntimeAgent::getProperties):
              (WebCore::InspectorRuntimeAgent::setPropertyValue):
              (WebCore::InspectorRuntimeAgent::releaseObject):
              (WebCore::InspectorRuntimeAgent::releaseObjectGroup):
              * inspector/InspectorRuntimeAgent.h:
              * inspector/front-end/ConsoleView.js:
              (WebInspector.ConsoleView.prototype.completions.evaluatedProperties):
              (WebInspector.ConsoleView.prototype.completions):
              * inspector/front-end/PropertiesSidebarPane.js:
              * inspector/front-end/ScriptsPanel.js:
              (WebInspector.SourceFrameDelegateForScriptsPanel.prototype.releaseEvaluationResult):
              * inspector/front-end/WatchExpressionsSidebarPane.js:
              (WebInspector.WatchExpressionsSection.prototype.update):
              * inspector/front-end/inspector.js:
              (WebInspector.inspect):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@81570 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7827856e
  18. 17 Mar, 2011 1 commit
    • pfeldman@chromium.org's avatar
      2011-03-17 Pavel Feldman <pfeldman@chromium.org> · e573fa38
      pfeldman@chromium.org authored
              Reviewed by Yury Semikhatsky.
      
              Web Inspector: add types markup to the IDL, remove Value types from the protocol.
              https://bugs.webkit.org/show_bug.cgi?id=56562
      
              * inspector/ConsoleMessage.cpp:
              (WebCore::ConsoleMessage::addToFrontend):
              * inspector/InjectedScript.cpp:
              (WebCore::InjectedScript::evaluate):
              (WebCore::InjectedScript::evaluateOn):
              (WebCore::InjectedScript::evaluateOnCallFrame):
              (WebCore::InjectedScript::getProperties):
              (WebCore::InjectedScript::setPropertyValue):
              (WebCore::InjectedScript::callFrames):
              (WebCore::InjectedScript::makeCall):
              (WebCore::InjectedScript::makeObjectCall):
              * inspector/InjectedScript.h:
              * inspector/InjectedScriptSource.js:
              (.):
              * inspector/Inspector.idl:
              * inspector/InspectorApplicationCacheAgent.cpp:
              (WebCore::InspectorApplicationCacheAgent::getApplicationCaches):
              * inspector/InspectorApplicationCacheAgent.h:
              * inspector/InspectorCSSAgent.cpp:
              (WebCore::InspectorCSSAgent::getStylesForNode):
              (WebCore::InspectorCSSAgent::getInlineStyleForNode):
              (WebCore::InspectorCSSAgent::getComputedStyleForNode):
              (WebCore::InspectorCSSAgent::getStyleSheet):
              (WebCore::InspectorCSSAgent::setPropertyText):
              (WebCore::InspectorCSSAgent::toggleProperty):
              (WebCore::InspectorCSSAgent::setRuleSelector):
              (WebCore::InspectorCSSAgent::addRule):
              * inspector/InspectorCSSAgent.h:
              * inspector/InspectorDOMAgent.cpp:
              (WebCore::InspectorDOMAgent::resolveNode):
              * inspector/InspectorDOMAgent.h:
              * inspector/InspectorDebuggerAgent.cpp:
              (WebCore::InspectorDebuggerAgent::editScriptSource):
              (WebCore::InspectorDebuggerAgent::evaluateOnCallFrame):
              (WebCore::InspectorDebuggerAgent::currentCallFrames):
              * inspector/InspectorDebuggerAgent.h:
              * inspector/InspectorResourceAgent.cpp:
              (WebCore::InspectorResourceAgent::identifierForInitialRequest):
              * inspector/InspectorRuntimeAgent.cpp:
              (WebCore::InspectorRuntimeAgent::evaluate):
              (WebCore::InspectorRuntimeAgent::evaluateOn):
              (WebCore::InspectorRuntimeAgent::getProperties):
              (WebCore::InspectorRuntimeAgent::setPropertyValue):
              * inspector/InspectorRuntimeAgent.h:
              * inspector/ScriptCallStack.cpp:
              (WebCore::ScriptCallStack::buildInspectorArray):
              * inspector/ScriptCallStack.h:
              * inspector/TimelineRecordFactory.cpp:
              (WebCore::TimelineRecordFactory::createGenericRecord):
              * inspector/front-end/NetworkManager.js:
              (WebInspector.NetworkDispatcher.prototype._createResource):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@81368 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e573fa38
  19. 12 Mar, 2011 1 commit
    • pfeldman@chromium.org's avatar
      2011-03-11 Pavel Feldman <pfeldman@chromium.org> · 9b80d1d8
      pfeldman@chromium.org authored
              Reviewed by Yury Semikhatsky.
      
              Web Inspector: follow up to error reporting, fixing multiple regressions.
              https://bugs.webkit.org/show_bug.cgi?id=56243
      
              * inspector/elements/elements-panel-search.html:
      2011-03-11  Pavel Feldman  <pfeldman@chromium.org>
      
              Reviewed by Yury Semikhatsky.
      
              Web Inspector: follow up to error reporting, fixing multiple regressions.
              https://bugs.webkit.org/show_bug.cgi?id=56243
      
              * inspector/InjectedScript.cpp:
              (WebCore::InjectedScript::setPropertyValue):
              * inspector/InjectedScript.h:
              * inspector/Inspector.idl:
              * inspector/InspectorDOMAgent.cpp:
              (WebCore::InspectorDOMAgent::getChildNodes):
              (WebCore::InspectorDOMAgent::getOuterHTML):
              (WebCore::InspectorDOMAgent::getEventListenersForNode):
              * inspector/InspectorDOMAgent.h:
              * inspector/InspectorRuntimeAgent.cpp:
              (WebCore::InspectorRuntimeAgent::setPropertyValue):
              * inspector/InspectorRuntimeAgent.h:
              * inspector/front-end/DOMAgent.js:
              (WebInspector.DOMNode.prototype.setNodeName):
              (WebInspector.DOMNode.prototype.setNodeValue):
              (WebInspector.DOMNode.prototype.getChildNodes):
              (WebInspector.DOMNode.prototype.getOuterHTML):
              (WebInspector.DOMNode.prototype.setOuterHTML):
              (WebInspector.DOMNode.prototype.removeNode):
              (WebInspector.DOMNode.prototype.copyNode):
              (WebInspector.DOMAgent.prototype.pushNodeToFrontend):
              (WebInspector.DOMAgent.prototype.pushNodeByPathToFrontend):
              (WebInspector.EventListeners.getEventListenersForNode):
              * inspector/front-end/DOMStorage.js:
              (WebInspector.DOMStorage.prototype.getEntries):
              (WebInspector.DOMStorage.prototype.setItem):
              (WebInspector.DOMStorage.prototype.removeItem):
              * inspector/front-end/DOMStorageItemsView.js:
              (WebInspector.DOMStorageItemsView.prototype.update):
              (WebInspector.DOMStorageItemsView.prototype._showDOMStorageEntries):
              * inspector/front-end/ElementsTreeOutline.js:
              (WebInspector.ElementsTreeElement.prototype._createTooltipForNode.setTooltip):
              (WebInspector.ElementsTreeElement.prototype.updateChildren):
              ():
              * inspector/front-end/EventListenersSidebarPane.js:
              (WebInspector.EventListenersSidebarPane.prototype.update.callback):
              (WebInspector.EventListenersSidebarPane.prototype.update):
              * inspector/front-end/ObjectPropertiesSection.js:
              (WebInspector.ObjectPropertyTreeElement.prototype.applyExpression.callback):
              (WebInspector.ObjectPropertyTreeElement.prototype.applyExpression):
              * inspector/front-end/PropertiesSidebarPane.js:
              (WebInspector.PropertiesSidebarPane.prototype.update.nodeResolved):
              * inspector/front-end/RemoteObject.js:
              (WebInspector.RemoteObject.prototype.setPropertyValue):
              (WebInspector.RemoteObject.prototype.evaluate):
              * inspector/front-end/inspector.js:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@80931 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9b80d1d8
  20. 11 Mar, 2011 3 commits
    • yurys@chromium.org's avatar
      2011-03-11 Yury Semikhatsky <yurys@chromium.org> · 8eee6593
      yurys@chromium.org authored
              Reviewed by Pavel Feldman.
      
              Web Inspector: split InjectedScriptHost into InjectedScriptManager and InjectedScriptHost
              https://bugs.webkit.org/show_bug.cgi?id=56173
      
              * inspector/protocol/console-agent-expected.txt:
              * inspector/protocol/console-agent.html:
      2011-03-11  Yury Semikhatsky  <yurys@chromium.org>
      
              Reviewed by Pavel Feldman.
      
              Web Inspector: split InjectedScriptHost into InjectedScriptManager and InjectedScriptHost
              https://bugs.webkit.org/show_bug.cgi?id=56173
      
              Moved all injected script managing logic into InjectedScriptManager which is owned by InspectorController.
      
              * CMakeLists.txt:
              * GNUmakefile.am:
              * WebCore.gypi:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/js/JSInjectedScriptHostCustom.cpp:
              * bindings/js/JSInjectedScriptManager.cpp: Added.
              (WebCore::InjectedScriptManager::createInjectedScript):
              (WebCore::InjectedScriptManager::discardInjectedScript):
              (WebCore::InjectedScriptManager::injectedScriptFor):
              (WebCore::InjectedScriptManager::canAccessInspectedWindow):
              * bindings/v8/custom/V8InjectedScriptHostCustom.cpp:
              * bindings/v8/custom/V8InjectedScriptManager.cpp: Copied from Source/WebCore/bindings/v8/custom/V8InjectedScriptHostCustom.cpp.
              (WebCore::WeakReferenceCallback):
              (WebCore::createInjectedScriptHostV8Wrapper):
              (WebCore::InjectedScriptManager::createInjectedScript):
              (WebCore::InjectedScriptManager::discardInjectedScript):
              (WebCore::InjectedScriptManager::injectedScriptFor):
              (WebCore::InjectedScriptManager::canAccessInspectedWindow):
              * inspector/ConsoleMessage.cpp:
              (WebCore::ConsoleMessage::addToFrontend):
              * inspector/ConsoleMessage.h:
              * inspector/InjectedScript.cpp:
              (WebCore::InjectedScript::canAccessInspectedWindow):
              * inspector/InjectedScript.h:
              * inspector/InjectedScriptHost.cpp:
              (WebCore::InjectedScriptHost::create):
              (WebCore::InjectedScriptHost::InjectedScriptHost):
              (WebCore::InjectedScriptHost::~InjectedScriptHost):
              (WebCore::InjectedScriptHost::disconnect):
              (WebCore::InjectedScriptHost::inspectImpl):
              (WebCore::InjectedScriptHost::clearConsoleMessages):
              (WebCore::InjectedScriptHost::databaseIdImpl):
              (WebCore::InjectedScriptHost::storageIdImpl):
              * inspector/InjectedScriptHost.h:
              (WebCore::InjectedScriptHost::init):
              (WebCore::InjectedScriptHost::setFrontend):
              (WebCore::InjectedScriptHost::clearFrontend):
              * inspector/InjectedScriptManager.cpp: Added.
              (WebCore::InjectedScriptManager::create):
              (WebCore::InjectedScriptManager::InjectedScriptManager):
              (WebCore::InjectedScriptManager::~InjectedScriptManager):
              (WebCore::InjectedScriptManager::disconnect):
              (WebCore::InjectedScriptManager::injectedScriptHost):
              (WebCore::InjectedScriptManager::injectedScriptForId):
              (WebCore::InjectedScriptManager::injectedScriptForObjectId):
              (WebCore::InjectedScriptManager::discardInjectedScripts):
              (WebCore::InjectedScriptManager::releaseObjectGroup):
              (WebCore::InjectedScriptManager::injectedScriptSource):
              (WebCore::InjectedScriptManager::injectScript):
              * inspector/InjectedScriptManager.h: Copied from Source/WebCore/inspector/InjectedScriptHost.h.
              * inspector/Inspector.idl:
              * inspector/InspectorAgent.cpp:
              (WebCore::InspectorAgent::InspectorAgent):
              (WebCore::InspectorAgent::inspectedPageDestroyed):
              (WebCore::InspectorAgent::focusNode):
              (WebCore::InspectorAgent::didClearWindowObjectInWorld):
              (WebCore::InspectorAgent::createFrontendLifetimeAgents):
              (WebCore::InspectorAgent::didCommitLoad):
              (WebCore::InspectorAgent::domContentLoadedEventFired):
              * inspector/InspectorAgent.h:
              * inspector/InspectorBrowserDebuggerAgent.cpp:
              * inspector/InspectorConsoleAgent.cpp:
              (WebCore::InspectorConsoleAgent::InspectorConsoleAgent):
              (WebCore::InspectorConsoleAgent::~InspectorConsoleAgent):
              (WebCore::InspectorConsoleAgent::clearConsoleMessages):
              (WebCore::InspectorConsoleAgent::addInspectedNode):
              (WebCore::InspectorConsoleAgent::setConsoleMessagesEnabled):
              (WebCore::InspectorConsoleAgent::addConsoleMessage):
              * inspector/InspectorConsoleAgent.h:
              * inspector/InspectorController.cpp:
              (WebCore::InspectorController::InspectorController):
              (WebCore::InspectorController::connectFrontend):
              (WebCore::InspectorController::disconnectFrontend):
              * inspector/InspectorController.h:
              * inspector/InspectorDOMAgent.cpp:
              (WebCore::InspectorDOMAgent::InspectorDOMAgent):
              (WebCore::InspectorDOMAgent::discardBindings):
              (WebCore::InspectorDOMAgent::pushNodeToFrontend):
              (WebCore::InspectorDOMAgent::resolveNode):
              * inspector/InspectorDOMAgent.h:
              (WebCore::InspectorDOMAgent::create):
              * inspector/InspectorDebuggerAgent.cpp:
              (WebCore::InspectorDebuggerAgent::create):
              (WebCore::InspectorDebuggerAgent::InspectorDebuggerAgent):
              (WebCore::InspectorDebuggerAgent::evaluateOnCallFrame):
              (WebCore::InspectorDebuggerAgent::currentCallFrames):
              * inspector/InspectorDebuggerAgent.h:
              * inspector/InspectorRuntimeAgent.cpp:
              (WebCore::InspectorRuntimeAgent::create):
              (WebCore::InspectorRuntimeAgent::InspectorRuntimeAgent):
              (WebCore::InspectorRuntimeAgent::~InspectorRuntimeAgent):
              (WebCore::InspectorRuntimeAgent::evaluate):
              (WebCore::InspectorRuntimeAgent::evaluateOn):
              (WebCore::InspectorRuntimeAgent::getProperties):
              (WebCore::InspectorRuntimeAgent::setPropertyValue):
              (WebCore::InspectorRuntimeAgent::releaseObject):
              (WebCore::InspectorRuntimeAgent::releaseObjectGroup):
              * inspector/InspectorRuntimeAgent.h:
              * inspector/front-end/ElementsPanel.js:
              (WebInspector.ElementsPanel.this.treeOutline.focusedNodeChanged):
              (WebInspector.ElementsPanel):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@80844 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8eee6593
    • yurys@chromium.org's avatar
      2011-03-11 Yury Semikhatsky <yurys@chromium.org> · 66f87d67
      yurys@chromium.org authored
              Unreviewed. Roll out r80837.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@80839 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      66f87d67
    • yurys@chromium.org's avatar
      2011-03-11 Yury Semikhatsky <yurys@chromium.org> · e67c6bd5
      yurys@chromium.org authored
              Reviewed by Pavel Feldman.
      
              Web Inspector: split InjectedScriptHost into InjectedScriptManager and InjectedScriptHost
              https://bugs.webkit.org/show_bug.cgi?id=56173
      
              * inspector/protocol/console-agent-expected.txt:
              * inspector/protocol/console-agent.html:
      2011-03-11  Yury Semikhatsky  <yurys@chromium.org>
      
              Reviewed by Pavel Feldman.
      
              Web Inspector: split InjectedScriptHost into InjectedScriptManager and InjectedScriptHost
              https://bugs.webkit.org/show_bug.cgi?id=56173
      
              Moved all injected script managing logic into InjectedScriptManager which is owned by InspectorController.
      
              * CMakeLists.txt:
              * GNUmakefile.am:
              * WebCore.gypi:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/js/JSInjectedScriptHostCustom.cpp:
              * bindings/js/JSInjectedScriptManager.cpp: Added.
              (WebCore::InjectedScriptManager::createInjectedScript):
              (WebCore::InjectedScriptManager::discardInjectedScript):
              (WebCore::InjectedScriptManager::injectedScriptFor):
              (WebCore::InjectedScriptManager::canAccessInspectedWindow):
              * bindings/v8/custom/V8InjectedScriptHostCustom.cpp:
              * bindings/v8/custom/V8InjectedScriptManager.cpp: Copied from Source/WebCore/bindings/v8/custom/V8InjectedScriptHostCustom.cpp.
              (WebCore::WeakReferenceCallback):
              (WebCore::createInjectedScriptHostV8Wrapper):
              (WebCore::InjectedScriptManager::createInjectedScript):
              (WebCore::InjectedScriptManager::discardInjectedScript):
              (WebCore::InjectedScriptManager::injectedScriptFor):
              (WebCore::InjectedScriptManager::canAccessInspectedWindow):
              * inspector/ConsoleMessage.cpp:
              (WebCore::ConsoleMessage::addToFrontend):
              * inspector/ConsoleMessage.h:
              * inspector/InjectedScript.cpp:
              (WebCore::InjectedScript::canAccessInspectedWindow):
              * inspector/InjectedScript.h:
              * inspector/InjectedScriptHost.cpp:
              (WebCore::InjectedScriptHost::create):
              (WebCore::InjectedScriptHost::InjectedScriptHost):
              (WebCore::InjectedScriptHost::~InjectedScriptHost):
              (WebCore::InjectedScriptHost::disconnect):
              (WebCore::InjectedScriptHost::inspectImpl):
              (WebCore::InjectedScriptHost::clearConsoleMessages):
              (WebCore::InjectedScriptHost::databaseIdImpl):
              (WebCore::InjectedScriptHost::storageIdImpl):
              * inspector/InjectedScriptHost.h:
              (WebCore::InjectedScriptHost::init):
              (WebCore::InjectedScriptHost::setFrontend):
              (WebCore::InjectedScriptHost::clearFrontend):
              * inspector/InjectedScriptManager.cpp: Added.
              (WebCore::InjectedScriptManager::create):
              (WebCore::InjectedScriptManager::InjectedScriptManager):
              (WebCore::InjectedScriptManager::~InjectedScriptManager):
              (WebCore::InjectedScriptManager::disconnect):
              (WebCore::InjectedScriptManager::injectedScriptHost):
              (WebCore::InjectedScriptManager::injectedScriptForId):
              (WebCore::InjectedScriptManager::injectedScriptForObjectId):
              (WebCore::InjectedScriptManager::discardInjectedScripts):
              (WebCore::InjectedScriptManager::releaseObjectGroup):
              (WebCore::InjectedScriptManager::injectedScriptSource):
              (WebCore::InjectedScriptManager::injectScript):
              * inspector/InjectedScriptManager.h: Copied from Source/WebCore/inspector/InjectedScriptHost.h.
              * inspector/Inspector.idl:
              * inspector/InspectorAgent.cpp:
              (WebCore::InspectorAgent::InspectorAgent):
              (WebCore::InspectorAgent::inspectedPageDestroyed):
              (WebCore::InspectorAgent::focusNode):
              (WebCore::InspectorAgent::didClearWindowObjectInWorld):
              (WebCore::InspectorAgent::createFrontendLifetimeAgents):
              (WebCore::InspectorAgent::didCommitLoad):
              (WebCore::InspectorAgent::domContentLoadedEventFired):
              * inspector/InspectorAgent.h:
              * inspector/InspectorBrowserDebuggerAgent.cpp:
              * inspector/InspectorConsoleAgent.cpp:
              (WebCore::InspectorConsoleAgent::InspectorConsoleAgent):
              (WebCore::InspectorConsoleAgent::~InspectorConsoleAgent):
              (WebCore::InspectorConsoleAgent::clearConsoleMessages):
              (WebCore::InspectorConsoleAgent::addInspectedNode):
              (WebCore::InspectorConsoleAgent::setConsoleMessagesEnabled):
              (WebCore::InspectorConsoleAgent::addConsoleMessage):
              * inspector/InspectorConsoleAgent.h:
              * inspector/InspectorController.cpp:
              (WebCore::InspectorController::InspectorController):
              (WebCore::InspectorController::connectFrontend):
              (WebCore::InspectorController::disconnectFrontend):
              * inspector/InspectorController.h:
              * inspector/InspectorDOMAgent.cpp:
              (WebCore::InspectorDOMAgent::InspectorDOMAgent):
              (WebCore::InspectorDOMAgent::discardBindings):
              (WebCore::InspectorDOMAgent::pushNodeToFrontend):
              (WebCore::InspectorDOMAgent::resolveNode):
              * inspector/InspectorDOMAgent.h:
              (WebCore::InspectorDOMAgent::create):
              * inspector/InspectorDebuggerAgent.cpp:
              (WebCore::InspectorDebuggerAgent::create):
              (WebCore::InspectorDebuggerAgent::InspectorDebuggerAgent):
              (WebCore::InspectorDebuggerAgent::evaluateOnCallFrame):
              (WebCore::InspectorDebuggerAgent::currentCallFrames):
              * inspector/InspectorDebuggerAgent.h:
              * inspector/InspectorRuntimeAgent.cpp:
              (WebCore::InspectorRuntimeAgent::create):
              (WebCore::InspectorRuntimeAgent::InspectorRuntimeAgent):
              (WebCore::InspectorRuntimeAgent::~InspectorRuntimeAgent):
              (WebCore::InspectorRuntimeAgent::evaluate):
              (WebCore::InspectorRuntimeAgent::evaluateOn):
              (WebCore::InspectorRuntimeAgent::getProperties):
              (WebCore::InspectorRuntimeAgent::setPropertyValue):
              (WebCore::InspectorRuntimeAgent::releaseObject):
              (WebCore::InspectorRuntimeAgent::releaseObjectGroup):
              * inspector/InspectorRuntimeAgent.h:
              * inspector/front-end/ElementsPanel.js:
              (WebInspector.ElementsPanel.this.treeOutline.focusedNodeChanged):
              (WebInspector.ElementsPanel):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@80837 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e67c6bd5
  21. 04 Mar, 2011 2 commits
    • loislo@chromium.org's avatar
      2011-03-04 Ilya Tikhonovsky <loislo@chromium.org> · d7d49c29
      loislo@chromium.org authored
              Reviewed by Yury Semikhatsky.
      
              Web Inspector: rename RuntimeAgent's function from releaseWrapperObjectGroup to releaseObjectGroup.
              https://bugs.webkit.org/show_bug.cgi?id=55773
      
              * inspector/protocol/runtime-agent-expected.txt:
              * inspector/protocol/runtime-agent.html:
      2011-03-04  Ilya Tikhonovsky  <loislo@chromium.org>
      
              Reviewed by Yury Semikhatsky.
      
              Web Inspector: rename RuntimeAgent's function from releaseWrapperObjectGroup to releaseObjectGroup.
              https://bugs.webkit.org/show_bug.cgi?id=55773
      
              * inspector/CodeGeneratorInspector.pm:
              * inspector/InjectedScript.cpp:
              (WebCore::InjectedScript::releaseObjectGroup):
              * inspector/InjectedScript.h:
              * inspector/InjectedScriptHost.cpp:
              (WebCore::InjectedScriptHost::releaseObjectGroup):
              * inspector/InjectedScriptHost.h:
              * inspector/InjectedScriptSource.js:
              (.):
              * inspector/Inspector.idl:
              * inspector/InspectorConsoleAgent.cpp:
              (WebCore::InspectorConsoleAgent::clearConsoleMessages):
              * inspector/InspectorRuntimeAgent.cpp:
              (WebCore::InspectorRuntimeAgent::releaseObjectGroup):
              * inspector/InspectorRuntimeAgent.h:
              * inspector/front-end/ConsoleView.js:
              (WebInspector.ConsoleView.prototype.completions.evaluatedProperties):
              (WebInspector.ConsoleView.prototype.completions):
              * inspector/front-end/PropertiesSidebarPane.js:
              * inspector/front-end/SourceFrame.js:
              (WebInspector.SourceFrame.prototype._hidePopup):
              * inspector/front-end/WatchExpressionsSidebarPane.js:
              (WebInspector.WatchExpressionsSection.prototype.update):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@80349 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d7d49c29
    • pfeldman@chromium.org's avatar
      2011-03-04 Pavel Feldman <pfeldman@chromium.org> · 2f0d9a8b
      pfeldman@chromium.org authored
              Reviewed by Yury Semikhatsky.
      
              Web Inspector: implement getCompletions via evaluate.
              https://bugs.webkit.org/show_bug.cgi?id=55759
      
              * inspector/InjectedScript.cpp:
              * inspector/InjectedScript.h:
              * inspector/InjectedScriptSource.js:
              * inspector/Inspector.idl:
              * inspector/InspectorDebuggerAgent.cpp:
              * inspector/InspectorDebuggerAgent.h:
              * inspector/InspectorRuntimeAgent.cpp:
              * inspector/InspectorRuntimeAgent.h:
              * inspector/front-end/ConsoleView.js:
              (WebInspector.ConsoleView.prototype.completions.evaluated):
              (WebInspector.ConsoleView.prototype.completions.evaluatedProperties):
              (WebInspector.ConsoleView.prototype.completions):
              (WebInspector.ConsoleView.prototype._reportCompletions):
              * inspector/front-end/ScriptsPanel.js:
              (WebInspector.ScriptsPanel.prototype.evaluateInSelectedCallFrame.updatingCallbackWrapper):
              (WebInspector.ScriptsPanel.prototype.evaluateInSelectedCallFrame):
              * inspector/front-end/SourceFrame.js:
              (WebInspector.SourceFrame.prototype._showPopup):
              (WebInspector.SourceFrame.prototype._evalSelectionInCallFrame):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@80342 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2f0d9a8b
  22. 02 Mar, 2011 1 commit
    • pfeldman@chromium.org's avatar
      2011-03-02 Pavel Feldman <pfeldman@chromium.org> · ad390c69
      pfeldman@chromium.org authored
              Reviewed by Yury Semikhatsky.
      
              Web Inspector: remove InjectedScriptHost -> DOMAgent dependency.
              https://bugs.webkit.org/show_bug.cgi?id=55575
      
              * bindings/js/JSInjectedScriptHostCustom.cpp:
              (WebCore::JSInjectedScriptHost::inspectedNode):
              * bindings/v8/custom/V8InjectedScriptHostCustom.cpp:
              (WebCore::V8InjectedScriptHost::inspectedNodeCallback):
              * inspector/ConsoleMessage.cpp:
              (WebCore::ConsoleMessage::addToFrontend):
              * inspector/InjectedScript.cpp:
              (WebCore::InjectedScript::evaluateOn):
              (WebCore::InjectedScript::wrapObject):
              (WebCore::InjectedScript::wrapNode):
              (WebCore::InjectedScript::inspectNode):
              (WebCore::InjectedScript::nodeAsScriptValue):
              * inspector/InjectedScript.h:
              * inspector/InjectedScriptHost.cpp:
              (WebCore::InjectedScriptHost::addInspectedNode):
              (WebCore::InjectedScriptHost::clearInspectedNodes):
              (WebCore::InjectedScriptHost::copyText):
              (WebCore::InjectedScriptHost::inspectedNode):
              * inspector/InjectedScriptHost.h:
              * inspector/InjectedScriptHost.idl:
              * inspector/InjectedScriptSource.js:
              * inspector/Inspector.idl:
              * inspector/InspectorDOMAgent.cpp:
              (WebCore::InspectorDOMAgent::discardBindings):
              (WebCore::InspectorDOMAgent::addInspectedNode):
              (WebCore::InspectorDOMAgent::resolveNode):
              (WebCore::InspectorDOMAgent::injectedScriptForNode):
              * inspector/InspectorDOMAgent.h:
              * inspector/InspectorRuntimeAgent.cpp:
              (WebCore::InspectorRuntimeAgent::evaluateOn):
              * inspector/InspectorRuntimeAgent.h:
              * inspector/front-end/ElementsTreeOutline.js:
              (WebInspector.ElementsTreeElement.prototype._createTooltipForNode.setTooltip):
              (WebInspector.ElementsTreeElement.prototype._createTooltipForNode.resolvedNode):
              (WebInspector.ElementsTreeElement.prototype._createTooltipForNode):
              * inspector/front-end/PropertiesSidebarPane.js:
              (WebInspector.PropertiesSidebarPane.prototype.update.nodeResolved):
              (WebInspector.PropertiesSidebarPane.prototype.update.nodePrototypesReady):
              (WebInspector.PropertiesSidebarPane.prototype.update.fillSection):
              (WebInspector.PropertiesSidebarPane.prototype.update):
              * inspector/front-end/RemoteObject.js:
              (WebInspector.RemoteObject.resolveNode):
              (WebInspector.RemoteObject.prototype.pushNodeToFrontend):
              (WebInspector.RemoteObject.prototype.evaluate):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@80141 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ad390c69
  23. 24 Feb, 2011 2 commits
    • pfeldman@chromium.org's avatar
      2011-02-23 Pavel Feldman <pfeldman@chromium.org> · 351b1a98
      pfeldman@chromium.org authored
              Reviewed by Yury Semikhatsky.
      
              Web Inspector: refactor inspect() workflow so that it did not push dom nodes.
              https://bugs.webkit.org/show_bug.cgi?id=55057
      
              * http/tests/inspector/inspector-test.js:
              (initialize_InspectorTest.InspectorTest.runTestSuite.runner):
              (initialize_InspectorTest.InspectorTest.runTestSuite):
              * inspector/console/command-line-api-inspect-expected.txt: Added.
              * inspector/console/command-line-api-inspect.html: Added.
      2011-02-23  Pavel Feldman  <pfeldman@chromium.org>
      
              Reviewed by Yury Semikhatsky.
      
              Web Inspector: refactor inspect() workflow so that it did not push dom nodes.
              https://bugs.webkit.org/show_bug.cgi?id=55057
      
              Test: inspector/console/command-line-api-inspect.html
      
              I am working on getting rid of DOM agent pushes - everything should happen upon
              front-end request. This patch changes the way we handle inspect() command line
              api: instead of pushing nodes, we are telling front-end that inspect(object) has
              been requested. It is then up to front-end to request dom nodes and focus them in
              the tree. I also made inspect() work in a generic manner, using same routines for
              nodes, databases, storages and potentially new elements.
      
              As a side-effect, we don't do console.log from within inspect() anymore, but dump
              inspected value as inspect's result.
      
              Also, I added individual object release method and made object groups optional.
      
              * bindings/js/JSInjectedScriptHostCustom.cpp:
              (WebCore::InjectedScriptHost::scriptValueAsNode):
              (WebCore::InjectedScriptHost::nodeAsScriptValue):
              (WebCore::JSInjectedScriptHost::inspect):
              (WebCore::JSInjectedScriptHost::databaseId):
              (WebCore::JSInjectedScriptHost::storageId):
              * bindings/v8/custom/V8InjectedScriptHostCustom.cpp:
              (WebCore::InjectedScriptHost::scriptValueAsNode):
              (WebCore::InjectedScriptHost::nodeAsScriptValue):
              (WebCore::V8InjectedScriptHost::inspectCallback):
              (WebCore::V8InjectedScriptHost::databaseIdCallback):
              (WebCore::V8InjectedScriptHost::storageIdCallback):
              * inspector/InjectedScript.cpp:
              (WebCore::InjectedScript::nodeForObjectId):
              (WebCore::InjectedScript::releaseObject):
              (WebCore::InjectedScript::wrapForConsole):
              (WebCore::InjectedScript::inspectNode):
              * inspector/InjectedScript.h:
              * inspector/InjectedScriptHost.cpp:
              (WebCore::InjectedScriptHost::inspectImpl):
              (WebCore::InjectedScriptHost::databaseIdImpl):
              (WebCore::InjectedScriptHost::storageIdImpl):
              * inspector/InjectedScriptHost.h:
              * inspector/InjectedScriptHost.idl:
              * inspector/InjectedScriptSource.js:
              * inspector/Inspector.idl:
              * inspector/InspectorAgent.cpp:
              (WebCore::InspectorAgent::focusNode):
              * inspector/InspectorDOMAgent.cpp:
              * inspector/InspectorDOMAgent.h:
              * inspector/InspectorDOMStorageAgent.cpp:
              (WebCore::InspectorDOMStorageAgent::storageId):
              (WebCore::InspectorDOMStorageAgent::didUseDOMStorage):
              * inspector/InspectorDOMStorageAgent.h:
              * inspector/InspectorDOMStorageResource.cpp:
              * inspector/InspectorDOMStorageResource.h:
              * inspector/InspectorDatabaseAgent.cpp:
              (WebCore::InspectorDatabaseAgent::databaseId):
              * inspector/InspectorDatabaseAgent.h:
              * inspector/InspectorDatabaseResource.cpp:
              * inspector/InspectorDatabaseResource.h:
              * inspector/InspectorRuntimeAgent.cpp:
              (WebCore::InspectorRuntimeAgent::releaseObject):
              * inspector/InspectorRuntimeAgent.h:
              * inspector/front-end/AuditRules.js:
              (WebInspector.AuditRules.evaluateInTargetWindow):
              (WebInspector.AuditRules.ImageDimensionsRule.prototype.doRun):
              * inspector/front-end/DOMStorage.js:
              * inspector/front-end/Database.js:
              * inspector/front-end/ExtensionServer.js:
              (WebInspector.ExtensionServer.prototype._onEvaluateOnInspectedPage):
              * inspector/front-end/inspector.js:
              (WebInspector.inspect):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@79556 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      351b1a98
    • loislo@chromium.org's avatar
      2011-02-24 Ilya Tikhonovsky <loislo@chromium.org> · df5982d5
      loislo@chromium.org authored
              Reviewed by Pavel Feldman.
      
              Web Inspector: There is a validator of the protocol message format.
      
              It has two parts. InspectorBackendStub.js is the frontend part.
              InspectorBackendDispatcher.cpp is the backend part.
              Both parts are checking protocol message format and report the error if
              the message has not enough fields or the types of fields do not match with
              Inspector.idl specification. These validators are generated automatically.
      
              In addition, we have a number of places at the backend where we check the
              function arguments and do nothing if the arguments are invalid
              from the business logic point of view.
      
              This patch bring us an ability to report a custom error from such function to the frontend.
      
              https://bugs.webkit.org/show_bug.cgi?id=54971
      
              * inspector/CodeGeneratorInspector.pm:
              * inspector/InjectedScriptHost.cpp:
              * inspector/InspectorAgent.cpp:
              * inspector/InspectorAgent.h:
              * inspector/InspectorApplicationCacheAgent.cpp:
              * inspector/InspectorApplicationCacheAgent.h:
              * inspector/InspectorBrowserDebuggerAgent.cpp:
              * inspector/InspectorBrowserDebuggerAgent.h:
              * inspector/InspectorCSSAgent.cpp:
              * inspector/InspectorCSSAgent.h:
              * inspector/InspectorConsoleAgent.cpp:
              * inspector/InspectorConsoleAgent.h:
              * inspector/InspectorController.cpp:
              * inspector/InspectorDOMAgent.cpp:
              * inspector/InspectorDOMAgent.h:
              * inspector/InspectorDOMStorageAgent.cpp:
              * inspector/InspectorDOMStorageAgent.h:
              * inspector/InspectorDatabaseAgent.cpp:
              * inspector/InspectorDatabaseAgent.h:
              * inspector/InspectorDebuggerAgent.cpp:
              * inspector/InspectorDebuggerAgent.h:
              * inspector/InspectorProfilerAgent.cpp:
              * inspector/InspectorProfilerAgent.h:
              * inspector/InspectorResourceAgent.cpp:
              * inspector/InspectorResourceAgent.h:
              * inspector/InspectorRuntimeAgent.cpp:
              * inspector/InspectorRuntimeAgent.h:
              * inspector/InspectorTimelineAgent.cpp:
              * inspector/InspectorTimelineAgent.h:
      
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@79539 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      df5982d5
  24. 26 Jan, 2011 1 commit
    • pfeldman@chromium.org's avatar
      2011-01-26 Pavel Feldman <pfeldman@chromium.org> · 9c856a3a
      pfeldman@chromium.org authored
              Reviewed by Yury Semikhatsky.
      
              Web Inspector: Incorrect on-hover evaluation of a variable named 'profile'.
              https://bugs.webkit.org/show_bug.cgi?id=53018
      
              * inspector/InjectedScript.cpp:
              (WebCore::InjectedScript::evaluate):
              (WebCore::InjectedScript::evaluateOnCallFrame):
              (WebCore::InjectedScript::getCompletions):
              (WebCore::InjectedScript::getCompletionsOnCallFrame):
              * inspector/InjectedScript.h:
              * inspector/InjectedScriptSource.js:
              (.):
              * inspector/Inspector.idl:
              * inspector/InspectorDebuggerAgent.cpp:
              (WebCore::InspectorDebuggerAgent::evaluateOnCallFrame):
              (WebCore::InspectorDebuggerAgent::getCompletionsOnCallFrame):
              * inspector/InspectorDebuggerAgent.h:
              * inspector/InspectorRuntimeAgent.cpp:
              (WebCore::InspectorRuntimeAgent::evaluate):
              (WebCore::InspectorRuntimeAgent::getCompletions):
              * inspector/InspectorRuntimeAgent.h:
              * inspector/front-end/ConsoleView.js:
              (WebInspector.ConsoleView.prototype.completions):
              (WebInspector.ConsoleView.prototype.evalInInspectedWindow):
              (WebInspector.ConsoleView.prototype._enterKeyPressed):
              * inspector/front-end/ScriptsPanel.js:
              (WebInspector.ScriptsPanel.prototype.evaluateInSelectedCallFrame.updatingCallbackWrapper):
              (WebInspector.ScriptsPanel.prototype.evaluateInSelectedCallFrame):
              * inspector/front-end/SourceFrame.js:
              (WebInspector.SourceFrame.prototype._showPopup):
              * inspector/front-end/WatchExpressionsSidebarPane.js:
              (WebInspector.WatchExpressionsSection.prototype.update):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@76680 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9c856a3a
  25. 20 Jan, 2011 2 commits
    • ossy@webkit.org's avatar
      Refactoring of the custom allocation framework · 95c1bc42
      ossy@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=49897
      
      Patch by Zoltan Horvath <zoltan@webkit.org> on 2011-01-20
      Reviewed by Csaba Osztrogonác.
      
      Source/JavaScriptCore:
      
      Inheriting from FastAllocBase can result in objects getting larger (bug #33896, #46589).
      The modification replaces Noncopyable and FastAllocBase classes and these inherits with their
      equivalent macro implementation at the necessary places.
      
      * wtf/FastAllocBase.h: Turn FastAllocBase's implementation into a macro.
      
      Source/WebCore:
      
      Inheriting from FastAllocBase can result in objects getting larger (bug #33896, #46589).
      The modification replaces Noncopyable and FastAllocBase classes and these inherits with their
      equivalent macro implementation at the necessary places.
      
      Source/WebKit:
      
      Inheriting from FastAllocBase can result in objects getting larger (bug #33896, #46589).
      The modification replaces Noncopyable and FastAllocBase classes and these inherits with their
      equivalent macro implementation at the necessary places.
      
      Source/WebKit2:
      
      Inheriting from FastAllocBase can result in objects getting larger (bug #33896, #46589).
      The modification replaces Noncopyable and FastAllocBase classes and these inherits with their
      equivalent macro implementation at the necessary places.
      
      Tools:
      
      Inheriting from FastAllocBase can result in objects getting larger (bug #33896, #46589).
      The modification replaces Noncopyable and FastAllocBase classes and these inherits with their
      equivalent macro implementation at the necessary places.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@76248 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      95c1bc42
    • pfeldman@chromium.org's avatar
      2011-01-20 Pavel Feldman <pfeldman@chromium.org> · 00355ae7
      pfeldman@chromium.org authored
              Not reviewed: build fix.
      
              * inspector/InspectorState.h:
              (WebCore::InspectorState::setBoolean):
              (WebCore::InspectorState::setString):
              (WebCore::InspectorState::setLong):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@76231 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      00355ae7
  26. 19 Jan, 2011 1 commit
    • pfeldman@chromium.org's avatar
      2011-01-19 Pavel Feldman <pfeldman@chromium.org> · c4776e30
      pfeldman@chromium.org authored
              Reviewed by Yury Semikhatsky.
      
              Web Inspector: move methods from InjectedScript domain into DOM,
              Runtime and Debugger domains. Introduce InspectorRuntimeAgent.
              https://bugs.webkit.org/show_bug.cgi?id=52717
      
              * CMakeLists.txt:
              * GNUmakefile.am:
              * WebCore.gypi:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * inspector/CodeGeneratorInspector.pm:
              * inspector/InjectedScript.cpp:
              (WebCore::InjectedScript::evaluateOnCallFrame):
              (WebCore::InjectedScript::getCompletions):
              (WebCore::InjectedScript::getCompletionsOnCallFrame):
              * inspector/InjectedScript.h:
              * inspector/InjectedScriptHost.cpp:
              (WebCore::InjectedScriptHost::injectedScriptForMainWorld):
              * inspector/InjectedScriptHost.h:
              * inspector/InjectedScriptSource.js:
              (.):
              ():
              * inspector/Inspector.idl:
              * inspector/InspectorController.cpp:
              (WebCore::InspectorController::connectFrontend):
              (WebCore::InspectorController::releaseFrontendLifetimeAgents):
              * inspector/InspectorController.h:
              * inspector/InspectorDOMAgent.cpp:
              (WebCore::InspectorDOMAgent::InspectorDOMAgent):
              (WebCore::InspectorDOMAgent::resolveNode):
              (WebCore::InspectorDOMAgent::getNodeProperties):
              (WebCore::InspectorDOMAgent::getNodePrototypes):
              (WebCore::InspectorDOMAgent::injectedScriptForNodeId):
              * inspector/InspectorDOMAgent.h:
              (WebCore::EventListenerInfo::EventListenerInfo):
              (WebCore::InspectorDOMAgent::DOMListener::~DOMListener):
              (WebCore::InspectorDOMAgent::create):
              (WebCore::InspectorDOMAgent::cast):
              (WebCore::InspectorDOMAgent::documents):
              * inspector/InspectorDebuggerAgent.cpp:
              (WebCore::InspectorDebuggerAgent::evaluateOnCallFrame):
              (WebCore::InspectorDebuggerAgent::getCompletionsOnCallFrame):
              (WebCore::InspectorDebuggerAgent::injectedScriptForCallFrameId):
              * inspector/InspectorDebuggerAgent.h:
              * inspector/InspectorRuntimeAgent.cpp: Added.
              (WebCore::InspectorRuntimeAgent::InspectorRuntimeAgent):
              (WebCore::InspectorRuntimeAgent::~InspectorRuntimeAgent):
              (WebCore::InspectorRuntimeAgent::evaluate):
              (WebCore::InspectorRuntimeAgent::getCompletions):
              (WebCore::InspectorRuntimeAgent::getProperties):
              (WebCore::InspectorRuntimeAgent::setPropertyValue):
              (WebCore::InspectorRuntimeAgent::pushNodeToFrontend):
              (WebCore::InspectorRuntimeAgent::injectedScriptForObjectId):
              * inspector/InspectorRuntimeAgent.h: Copied from Source/WebCore/inspector/InjectedScript.h.
              (WebCore::InspectorRuntimeAgent::create):
              * inspector/front-end/ConsoleView.js:
              (WebInspector.ConsoleView.prototype.completions):
              * inspector/front-end/ScriptsPanel.js:
              (WebInspector.ScriptsPanel.prototype.doEvalInCallFrame):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@76136 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c4776e30
  27. 14 Jan, 2011 1 commit
    • pfeldman@chromium.org's avatar
      2011-01-14 Pavel Feldman <pfeldman@chromium.org> · 08a4cfe7
      pfeldman@chromium.org authored
              Reviewed by Yury Semikhatsky.
      
              Web Inspector: extract InspectorSettings from InspectorState,
              simplify it.
              https://bugs.webkit.org/show_bug.cgi?id=52429
      
              * CMakeLists.txt:
              * GNUmakefile.am:
              * WebCore.gypi:
              * WebCore.pro:
              * WebCore.xcodeproj/project.pbxproj:
              * inspector/InspectorClient.h:
              * inspector/InspectorController.cpp:
              (WebCore::InspectorController::InspectorController):
              (WebCore::InspectorController::inspectorStartsAttached):
              (WebCore::InspectorController::setInspectorStartsAttached):
              (WebCore::InspectorController::setInspectorAttachedHeight):
              (WebCore::InspectorController::inspectorAttachedHeight):
              (WebCore::InspectorController::setMonitoringXHREnabled):
              (WebCore::InspectorController::restoreDebugger):
              (WebCore::InspectorController::restoreProfiler):
              (WebCore::InspectorController::ensureSettingsLoaded):
              (WebCore::InspectorController::enableProfiler):
              (WebCore::InspectorController::disableProfiler):
              (WebCore::InspectorController::enableDebuggerFromFrontend):
              (WebCore::InspectorController::disableDebugger):
              * inspector/InspectorController.h:
              * inspector/InspectorSettings.cpp: Added.
              (WebCore::InspectorSettings::InspectorSettings):
              (WebCore::InspectorSettings::getBoolean):
              (WebCore::InspectorSettings::setBoolean):
              (WebCore::InspectorSettings::getLong):
              (WebCore::InspectorSettings::setLong):
              (WebCore::InspectorSettings::registerBoolean):
              (WebCore::InspectorSettings::registerLong):
              * inspector/InspectorSettings.h: Added.
              * inspector/InspectorState.cpp:
              (WebCore::InspectorState::InspectorState):
              (WebCore::InspectorState::setValue):
              (WebCore::InspectorState::setObject):
              (WebCore::InspectorState::registerBoolean):
              (WebCore::InspectorState::registerString):
              (WebCore::InspectorState::registerLong):
              (WebCore::InspectorState::registerObject):
              (WebCore::InspectorState::Property::create):
              * inspector/InspectorState.h:
              (WebCore::InspectorState::setBoolean):
              (WebCore::InspectorState::setString):
              (WebCore::InspectorState::setLong):
      
      2011-01-14  Pavel Feldman  <pfeldman@chromium.org>
      
              Reviewed by Yury Semikhatsky.
      
              Web Inspector: extract InspectorSettings from InspectorState, 
              simplify it.
              https://bugs.webkit.org/show_bug.cgi?id=52429
      
              * WebProcess/WebCoreSupport/WebInspectorClient.cpp:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75777 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      08a4cfe7
  28. 08 Jan, 2011 1 commit
  29. 10 Aug, 2010 1 commit
    • barraclough@apple.com's avatar
      Bug 43786 - Move AtomicStringHash from WebCore to WTF · bbb3cd43
      barraclough@apple.com authored
      Also remove deprecated string headers from WebCore/platform/text.
      
      Rubber stamped by Sam Weinig.
      
      JavaScriptCore: 
      
      * GNUmakefile.am:
      * JavaScriptCore.gypi:
      * JavaScriptCore.vcproj/WTF/WTF.vcproj:
      * JavaScriptCore.xcodeproj/project.pbxproj:
      * wtf/text/AtomicString.h:
      * wtf/text/AtomicStringHash.h: Copied from WebCore/platform/text/AtomicStringHash.h.
      
      WebCore: 
      
      * ForwardingHeaders/wtf/text/AtomicStringHash.h: Added.
      * GNUmakefile.am:
      * WebCore.gypi:
      * WebCore.pro:
      * WebCore.vcproj/WebCore.vcproj:
      * WebCore.xcodeproj/project.pbxproj:
      * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
      * bindings/cpp/WebDOMHTMLCollectionCustom.cpp:
      * bindings/js/JSCSSStyleDeclarationCustom.cpp:
      * bindings/js/JSClipboardCustom.cpp:
      * bindings/js/JSDOMApplicationCacheCustom.cpp:
      * bindings/js/JSDOMMimeTypeArrayCustom.cpp:
      * bindings/js/JSDOMPluginArrayCustom.cpp:
      * bindings/js/JSDOMPluginCustom.cpp:
      * bindings/js/JSDOMStringMapCustom.cpp:
      * bindings/js/JSDOMWindowCustom.cpp:
      * bindings/js/JSDataGridColumnListCustom.cpp:
      * bindings/js/JSHTMLAllCollectionCustom.cpp:
      * bindings/js/JSHTMLCollectionCustom.cpp:
      * bindings/js/JSMessagePortCustom.cpp:
      * bindings/js/JSNodeListCustom.cpp:
      * bindings/scripts/CodeGeneratorCPP.pm:
      * bindings/scripts/CodeGeneratorJS.pm:
      * bindings/scripts/CodeGeneratorV8.pm:
      * bindings/scripts/test/CPP/WebDOMTestCallback.cpp:
      * bindings/scripts/test/CPP/WebDOMTestObj.cpp:
      * bindings/scripts/test/V8/V8TestInterface.h:
      * bindings/scripts/test/V8/V8TestObj.h:
      * bindings/v8/ScriptDebugServer.h:
      * bindings/v8/V8Binding.cpp:
      * bindings/v8/V8Binding.h:
      * bridge/jni/v8/JavaClassV8.h:
      * css/CSSFontFaceSource.h:
      * css/CSSFontSelector.cpp:
      * css/CSSFontSelector.h:
      * css/CSSNamespace.h:
      * css/CSSParser.cpp:
      * css/CSSParser.h:
      * css/CSSParserValues.h:
      * css/CSSStyleSelector.h:
      * css/CSSVariablesDeclaration.h:
      * css/MediaFeatureNames.h:
      * css/MediaQueryExp.h:
      * css/WebKitCSSKeyframesRule.h:
      * dom/CustomEvent.h:
      * dom/Document.cpp:
      * dom/Event.cpp:
      * dom/Event.h:
      * dom/EventNames.h:
      * dom/EventTarget.h:
      * dom/InputElement.h:
      * dom/MessagePort.cpp:
      * dom/MessagePort.h:
      * dom/NameNodeList.h:
      * dom/NodeRareData.h:
      * dom/QualifiedName.h:
      * dom/ScriptElement.cpp:
      * dom/SpaceSplitString.h:
      * dom/TagNodeList.h:
      * dom/XMLDocumentParser.h:
      * editing/EditorCommand.cpp:
      * history/mac/HistoryItemMac.mm:
      * html/BlobBuilder.cpp:
      * html/DataGridColumn.h:
      * html/DataGridColumnList.cpp:
      * html/HTMLDocument.h:
      * html/HTMLInputElement.cpp:
      * html/HTMLTokenizer.cpp:
      * html/HTMLTokenizer.h:
      * html/LegacyPreloadScanner.cpp:
      * html/LegacyPreloadScanner.h:
      * inspector/InspectorCSSStore.h:
      * inspector/InspectorController.h:
      * inspector/InspectorDOMAgent.cpp:
      * inspector/InspectorDOMAgent.h:
      * inspector/InspectorDebuggerAgent.h:
      * inspector/InspectorValues.h:
      * loader/Cache.h:
      * loader/CrossOriginAccessControl.cpp:
      * loader/CrossOriginPreflightResultCache.h:
      * loader/DocLoader.h:
      * loader/ImageLoader.h:
      * loader/appcache/ApplicationCache.h:
      * loader/appcache/ApplicationCacheStorage.h:
      * loader/appcache/DOMApplicationCache.h:
      * loader/icon/IconDatabase.h:
      * loader/icon/IconRecord.h:
      * loader/loader.h:
      * notifications/Notification.h:
      * page/FrameTree.h:
      * page/Page.cpp:
      * page/PageGroup.h:
      * page/SecurityOrigin.h:
      * page/Settings.h:
      * page/WindowFeatures.cpp:
      * page/animation/AnimationBase.h:
      * page/animation/AnimationControllerPrivate.h:
      * page/animation/CompositeAnimation.h:
      * platform/Cookie.h:
      * platform/KURL.cpp:
      * platform/KURLGoogle.cpp:
      * platform/KURLHash.h:
      * platform/Length.cpp:
      * platform/LinkHash.cpp:
      * platform/LinkHash.h:
      * platform/MIMETypeRegistry.cpp:
      * platform/MIMETypeRegistry.h:
      * platform/SchemeRegistry.h:
      * platform/ThreadGlobalData.cpp:
      * platform/ThreadGlobalData.h:
      * platform/cf/BinaryPropertyList.cpp:
      * platform/chromium/SearchPopupMenuChromium.cpp:
      * platform/efl/ClipboardEfl.cpp:
      * platform/efl/CookieJarEfl.cpp:
      * platform/efl/PlatformKeyboardEventEfl.cpp:
      * platform/graphics/FontCache.cpp:
      * platform/graphics/FontFamily.h:
      * platform/graphics/MediaPlayer.h:
      * platform/graphics/cg/ImageSourceCGWin.cpp:
      * platform/graphics/chromium/FontCacheChromiumWin.cpp:
      * platform/graphics/chromium/FontCacheLinux.cpp:
      * platform/graphics/chromium/FontUtilsChromiumWin.cpp:
      * platform/graphics/chromium/LayerChromium.h:
      * platform/graphics/filters/Filter.h:
      * platform/graphics/mac/FontPlatformData.h:
      * platform/graphics/mac/GraphicsLayerCA.h:
      * platform/graphics/qt/FontCacheQt.cpp:
      * platform/graphics/win/FontCacheWin.cpp:
      * platform/graphics/win/FontPlatformDataCGWin.cpp:
      * platform/graphics/win/FontPlatformDataCairoWin.cpp:
      * platform/graphics/win/FontPlatformDataWin.cpp:
      * platform/graphics/win/MediaPlayerPrivateQuickTimeVisualContext.cpp:
      * platform/graphics/win/MediaPlayerPrivateQuickTimeWin.cpp:
      * platform/graphics/win/WKCACFLayer.h:
      * platform/graphics/wince/FontPlatformData.cpp:
      * platform/graphics/wx/FontPlatformData.h:
      * platform/gtk/ClipboardGtk.cpp:
      * platform/gtk/DataObjectGtk.h:
      * platform/haiku/ClipboardHaiku.cpp:
      * platform/haiku/CookieJarHaiku.cpp:
      * platform/haiku/SearchPopupMenuHaiku.cpp:
      * platform/mac/SearchPopupMenuMac.mm:
      * platform/mac/ThreadCheck.mm:
      * platform/network/CredentialStorage.cpp:
      * platform/network/HTTPHeaderMap.h:
      * platform/network/cf/DNSCFNet.cpp:
      * platform/network/curl/CookieJarCurl.cpp:
      * platform/qt/ClipboardQt.cpp:
      * platform/text/AtomicString.h: Removed.
      * platform/text/AtomicStringHash.h: Removed.
      * platform/text/AtomicStringImpl.h: Removed.
      * platform/text/AtomicStringKeyedMRUCache.h:
      * platform/text/StringBuilder.cpp:
      * platform/text/StringHash.h: Removed.
      * platform/text/StringImpl.h: Removed.
      * platform/text/TextCodecLatin1.cpp:
      * platform/text/TextCodecUTF16.cpp:
      * platform/text/TextCodecUserDefined.cpp:
      * platform/text/cf/HyphenationCF.cpp:
      * platform/text/cf/StringImplCF.cpp:
      * platform/text/mac/HyphenationMac.mm:
      * platform/text/mac/StringImplMac.mm:
      * platform/text/transcoder/FontTranscoder.h:
      * platform/text/wince/TextCodecWinCE.cpp:
      * platform/win/BString.cpp:
      * platform/win/ClipboardWin.cpp:
      * platform/win/SearchPopupMenuWin.cpp:
      * platform/wince/SearchPopupMenuWince.cpp:
      * platform/wx/ClipboardWx.cpp:
      * plugins/DOMMimeTypeArray.cpp:
      * plugins/DOMPlugin.cpp:
      * plugins/DOMPluginArray.cpp:
      * plugins/PluginDatabase.h:
      * plugins/PluginPackage.h:
      * plugins/PluginStream.h:
      * rendering/RenderApplet.h:
      * rendering/RenderText.cpp:
      * rendering/style/BindingURI.h:
      * rendering/style/ContentData.cpp:
      * rendering/style/CounterContent.h:
      * rendering/style/CounterDirectives.h:
      * rendering/style/KeyframeList.h:
      * rendering/style/StyleRareInheritedData.h:
      * storage/AbstractDatabase.cpp:
      * storage/DatabaseAuthorizer.h:
      * storage/DatabaseTracker.h:
      * storage/IDBDatabaseBackendImpl.h:
      * storage/IDBFactoryBackendImpl.h:
      * storage/IDBObjectStoreBackendImpl.h:
      * storage/OriginQuotaManager.h:
      * storage/OriginUsageRecord.h:
      * storage/SQLTransactionCoordinator.h:
      * storage/StorageAreaSync.h:
      * storage/StorageMap.h:
      * storage/StorageNamespaceImpl.cpp:
      * storage/chromium/QuotaTracker.h:
      * svg/SVGAltGlyphElement.h:
      * svg/SVGDocumentExtensions.cpp:
      * svg/SVGDocumentExtensions.h:
      * svg/SVGFitToViewBox.cpp:
      * svg/SVGLangSpace.h:
      * svg/animation/SMILTimeContainer.h:
      * svg/graphics/filters/SVGFilterBuilder.h:
      * websockets/WebSocket.h:
      * websockets/WebSocketChannel.cpp:
      * websockets/WebSocketHandshake.cpp:
      * websockets/WebSocketHandshakeResponse.cpp:
      * wml/WMLPageState.h:
      * workers/AbstractWorker.h:
      * workers/DefaultSharedWorkerRepository.h:
      * workers/Worker.h:
      * workers/WorkerContext.h:
      * xml/XMLHttpRequest.h:
      * xml/XMLHttpRequestUpload.cpp:
      * xml/XMLHttpRequestUpload.h:
      * xml/XPathExpressionNode.h:
      * xml/XPathNamespace.h:
      * xml/XPathParser.cpp:
      * xml/XSLTProcessor.h:
      
      WebKit/chromium: 
      
      * src/WebKit.cpp:
      * src/WebPageSerializerImpl.h:
      * src/WebString.cpp:
      
      WebKit/gtk: 
      
      * gdom/ConvertToGCharPrivate.h:
      
      WebKit/wx: 
      
      * WebEdit.cpp:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65077 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bbb3cd43
  30. 27 Jul, 2010 1 commit
    • dumi@chromium.org's avatar
      Move all WebSQLDatabases-specific code behind #if ENABLE(DATABASE). · e8fdeee1
      dumi@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=43035
      
      Reviewed by David Levin.
      
      WebCore: 
      
      Make Chromium compile with ENABLE_DATABASE=0. The #ifdefs in
      DatabaseAuthorizer and ChromiumBridge are removed, because they're
      used by non-HTML5 DBs too (the classes in WebCore/platform/sql/),
      which are used by other features too. So they need to be compiled
      in even if HTML5 DBs are disabled.
      
      * bindings/v8/custom/V8DOMWindowCustom.cpp:
      * page/DOMWindow.idl:
      * platform/chromium/ChromiumBridge.h:
      * storage/DatabaseAuthorizer.cpp:
      * storage/chromium/DatabaseObserver.h:
      * storage/chromium/DatabaseTrackerChromium.cpp:
      * storage/chromium/QuotaTracker.cpp:
      * storage/chromium/QuotaTracker.h:
      * storage/chromium/SQLTransactionClientChromium.cpp:
      
      WebKit/chromium: 
      
      Make Chromium compile with ENABLE_DATABASE=0.
      
      * src/ChromiumBridge.cpp:
      (WebCore::ChromiumBridge::databaseGetFileSize):
      * src/DatabaseObserver.cpp:
      * src/WebDatabase.cpp:
      (WebCore::AbstractDatabase::stringIdentifier):
      (WebCore::AbstractDatabase::displayName):
      (WebCore::AbstractDatabase::estimatedSize):
      (WebCore::AbstractDatabase::securityOrigin):
      (WebKit::WebDatabase::updateDatabaseSize):
      (WebKit::WebDatabase::closeDatabaseImmediately):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64151 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e8fdeee1
  31. 30 Mar, 2010 1 commit
    • barraclough@apple.com's avatar
      Rubber stamped by Sam Weinig. · 00b7992e
      barraclough@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=36866
      Move CString to WTF
      
      JavaScriptCore: 
      
      * Android.mk:
      * GNUmakefile.am:
      * JavaScriptCore.exp:
      * JavaScriptCore.gypi:
      * JavaScriptCore.pro:
      * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.def:
      * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.vcproj:
      * JavaScriptCore.vcproj/WTF/WTF.vcproj:
      * JavaScriptCore.xcodeproj/project.pbxproj:
      * wtf/text: Added.
      * wtf/text/CString.cpp: Copied from WebCore/platform/text/CString.cpp.
      * wtf/text/CString.h: Copied from WebCore/platform/text/CString.h.
      (WTF::CStringBuffer::data):
      (WTF::CStringBuffer::length):
      (WTF::CStringBuffer::create):
      (WTF::CStringBuffer::CStringBuffer):
      (WTF::CStringBuffer::mutableData):
      (WTF::CString::CString):
      (WTF::CString::isNull):
      (WTF::CString::buffer):
      (WTF::operator!=):
      
      WebCore: 
      
      * Android.mk:
      * ForwardingHeaders/wtf/text: Added.
      * ForwardingHeaders/wtf/text/CString.h: Added.
      * GNUmakefile.am:
      * WebCore.base.exp:
      * WebCore.gypi:
      * WebCore.order:
      * WebCore.pro:
      * WebCore.vcproj/WebCore.vcproj:
      * WebCore.xcodeproj/project.pbxproj:
      * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
      * bindings/js/JSDOMWindowBase.cpp:
      * bindings/js/ScheduledAction.cpp:
      * bindings/js/ScriptController.cpp:
      * bindings/v8/ScriptController.cpp:
      * bindings/v8/V8Binding.cpp:
      * bindings/v8/V8DOMWindowShell.cpp:
      * bridge/jni/JNIBridge.cpp:
      * bridge/jni/v8/JavaStringV8.h:
      (JSC::Bindings::JavaStringImpl::init):
      * css/CSSParser.cpp:
      * dom/CharacterData.cpp:
      * dom/Document.cpp:
      * dom/Element.cpp:
      * dom/Node.cpp:
      * dom/Position.cpp:
      * dom/Range.cpp:
      * dom/Text.cpp:
      * dom/XMLTokenizer.cpp:
      * dom/XMLTokenizerLibxml2.cpp:
      * dom/XMLTokenizerQt.cpp:
      * editing/SelectionController.cpp:
      * editing/VisiblePosition.cpp:
      * editing/VisibleSelection.cpp:
      * history/CachedFrame.cpp:
      * history/HistoryItem.cpp:
      * history/qt/HistoryItemQt.cpp:
      * html/FormDataList.h:
      (WebCore::FormDataList::appendData):
      (WebCore::FormDataList::Item::Item):
      (WebCore::FormDataList::Item::data):
      * html/HTMLDocument.cpp:
      * html/PreloadScanner.cpp:
      * inspector/InspectorController.cpp:
      * inspector/InspectorDOMAgent.cpp:
      * loader/DocLoader.cpp:
      * loader/FTPDirectoryDocument.cpp:
      * loader/FrameLoader.cpp:
      * loader/HistoryController.cpp:
      * loader/ProgressTracker.cpp:
      * loader/appcache/ApplicationCacheStorage.cpp:
      * loader/archive/cf/LegacyWebArchive.cpp:
      * loader/icon/wince/IconDatabaseWince.cpp:
      * loader/loader.cpp:
      * page/Console.cpp:
      * page/DOMWindow.cpp:
      * page/SecurityOrigin.cpp:
      * page/XSSAuditor.cpp:
      * page/animation/AnimationBase.cpp:
      * platform/ContextMenu.cpp:
      * platform/FileSystem.h:
      * platform/KURL.cpp:
      * platform/KURLGoogle.cpp:
      * platform/KURLGooglePrivate.h:
      * platform/Pasteboard.h:
      * platform/android/FileSystemAndroid.cpp:
      * platform/android/TemporaryLinkStubs.cpp:
      * platform/brew/KURLBrew.cpp:
      * platform/cf/FileSystemCF.cpp:
      * platform/chromium/MIMETypeRegistryChromium.cpp:
      * platform/efl/FileSystemEfl.cpp:
      * platform/efl/PasteboardEfl.cpp:
      * platform/efl/PlatformKeyboardEventEfl.cpp:
      * platform/efl/PlatformScreenEfl.cpp:
      * platform/efl/RenderThemeEfl.cpp:
      * platform/efl/ScrollbarEfl.cpp:
      * platform/efl/SharedBufferEfl.cpp:
      * platform/efl/WidgetEfl.cpp:
      * platform/graphics/GlyphPageTreeNode.cpp:
      * platform/graphics/cairo/FontPlatformDataCairo.cpp:
      * platform/graphics/cg/ImageBufferCG.cpp:
      * platform/graphics/chromium/FontCacheLinux.cpp:
      * platform/graphics/chromium/FontPlatformDataLinux.h:
      * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
      * platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp:
      * platform/graphics/gtk/FontPlatformDataPango.cpp:
      * platform/graphics/gtk/IconGtk.cpp:
      * platform/graphics/gtk/ImageGtk.cpp:
      * platform/graphics/haiku/GraphicsContextHaiku.cpp:
      * platform/graphics/mac/GraphicsContext3DMac.cpp:
      * platform/graphics/mac/GraphicsLayerCA.mm:
      * platform/graphics/qt/GraphicsContext3DQt.cpp:
      * platform/graphics/qt/ImageBufferQt.cpp:
      * platform/graphics/qt/MediaPlayerPrivatePhonon.cpp:
      * platform/graphics/qt/MediaPlayerPrivateQt.cpp:
      * platform/graphics/skia/GraphicsLayerSkia.cpp:
      * platform/graphics/win/GraphicsLayerCACF.cpp:
      * platform/graphics/win/WKCACFLayer.cpp:
      * platform/graphics/wx/FontPlatformData.h:
      * platform/gtk/ClipboardGtk.cpp:
      * platform/gtk/ContextMenuItemGtk.cpp:
      * platform/gtk/DataObjectGtk.h:
      * platform/gtk/FileChooserGtk.cpp:
      * platform/gtk/FileSystemGtk.cpp:
      * platform/gtk/GeolocationServiceGtk.cpp:
      * platform/gtk/KURLGtk.cpp:
      * platform/gtk/Language.cpp:
      * platform/gtk/LocalizedStringsGtk.cpp:
      * platform/gtk/PasteboardGtk.cpp:
      * platform/gtk/PopupMenuGtk.cpp:
      * platform/gtk/RenderThemeGtk.cpp:
      * platform/gtk/SharedBufferGtk.cpp:
      * platform/haiku/FileSystemHaiku.cpp:
      * platform/haiku/PlatformKeyboardEventHaiku.cpp:
      * platform/network/CredentialStorage.cpp:
      * platform/network/FormData.cpp:
      * platform/network/FormData.h:
      * platform/network/FormDataBuilder.cpp:
      * platform/network/FormDataBuilder.h:
      * platform/network/HTTPParsers.cpp:
      * platform/network/android/ResourceHandleAndroid.cpp:
      * platform/network/cf/FormDataStreamCFNet.cpp:
      * platform/network/cf/ResourceHandleCFNet.cpp:
      * platform/network/chromium/ResourceResponse.h:
      * platform/network/curl/FormDataStreamCurl.cpp:
      * platform/network/curl/ResourceHandleManager.cpp:
      * platform/network/curl/ResourceHandleManager.h:
      * platform/network/mac/FormDataStreamMac.mm:
      * platform/network/mac/ResourceHandleMac.mm:
      * platform/network/qt/QNetworkReplyHandler.cpp:
      * platform/network/soup/CookieJarSoup.cpp:
      * platform/network/soup/ResourceHandleSoup.cpp:
      * platform/network/soup/ResourceRequestSoup.cpp:
      * platform/network/soup/ResourceResponseSoup.cpp:
      * platform/network/win/ResourceHandleWin.cpp:
      * platform/posix/FileSystemPOSIX.cpp:
      * platform/qt/FileSystemQt.cpp:
      * platform/qt/KURLQt.cpp:
      * platform/qt/TemporaryLinkStubs.cpp:
      * platform/sql/chromium/SQLiteFileSystemChromium.cpp:
      * platform/text/CString.cpp: Removed.
      * platform/text/CString.h: Removed.
      * platform/text/PlatformString.h:
      * platform/text/String.cpp:
      * platform/text/StringImpl.cpp:
      * platform/text/TextCodec.h:
      * platform/text/TextCodecICU.cpp:
      * platform/text/TextCodecLatin1.cpp:
      * platform/text/TextCodecUTF16.cpp:
      * platform/text/TextCodecUserDefined.cpp:
      * platform/text/TextEncoding.cpp:
      * platform/text/TextEncoding.h:
      * platform/text/chromium/TextBreakIteratorInternalICUChromium.cpp:
      * platform/text/gtk/TextCodecGtk.cpp:
      * platform/text/haiku/StringHaiku.cpp:
      * platform/text/mac/TextCodecMac.cpp:
      * platform/text/qt/TextCodecQt.cpp:
      * platform/text/wx/StringWx.cpp:
      * platform/win/ClipboardUtilitiesWin.cpp:
      * platform/win/ClipboardWin.cpp:
      * platform/win/ContextMenuItemWin.cpp:
      * platform/win/ContextMenuWin.cpp:
      * platform/win/FileSystemWin.cpp:
      * platform/win/GDIObjectCounter.cpp:
      * platform/win/Language.cpp:
      * platform/win/PasteboardWin.cpp:
      * platform/wince/FileSystemWince.cpp:
      * platform/wince/KeygenWince.cpp:
      * platform/wince/PasteboardWince.cpp:
      * platform/wx/FileSystemWx.cpp:
      * platform/wx/LoggingWx.cpp:
      * plugins/PluginDebug.h:
      * plugins/PluginPackage.cpp:
      * plugins/PluginStream.cpp:
      * plugins/PluginStream.h:
      * plugins/PluginView.h:
      * plugins/gtk/PluginPackageGtk.cpp:
      * plugins/mac/PluginPackageMac.cpp:
      * plugins/qt/PluginPackageQt.cpp:
      * plugins/symbian/PluginPackageSymbian.cpp:
      * plugins/win/PluginPackageWin.cpp:
      * rendering/RenderLayer.cpp:
      * rendering/RenderLayerCompositor.cpp:
      * rendering/RenderTreeAsText.cpp:
      * storage/Database.cpp:
      * storage/SQLTransactionCoordinator.cpp:
      * storage/SQLTransactionCoordinator.h:
      * storage/StorageAreaSync.cpp:
      * storage/StorageSyncManager.cpp:
      * storage/chromium/DatabaseTrackerChromium.cpp:
      * storage/chromium/QuotaTracker.cpp:
      * storage/chromium/QuotaTracker.h:
      * svg/SVGFontFaceElement.cpp:
      * svg/SVGStyledElement.cpp:
      * svg/SVGUseElement.cpp:
      * websockets/WebSocket.cpp:
      * websockets/WebSocketChannel.cpp:
      * websockets/WebSocketHandshake.cpp:
      * wml/WMLErrorHandling.cpp:
      * wml/WMLGoElement.cpp:
      * wml/WMLPageState.cpp:
      * wml/WMLPostfieldElement.cpp:
      * wml/WMLSelectElement.cpp:
      * xml/XMLHttpRequest.cpp:
      * xml/XSLStyleSheetLibxslt.cpp:
      * xml/XSLTProcessorLibxslt.cpp:
      
      WebKit: 
      
      * efl/WebCoreSupport/ChromeClientEfl.cpp:
      * efl/ewk/ewk_frame.cpp:
      (ewk_frame_name_get):
      (ewk_frame_selection_get):
      (ewk_frame_uri_changed):
      * efl/ewk/ewk_history.cpp:
      * efl/ewk/ewk_settings.cpp:
      
      WebKit/chromium: 
      
      * public/WebCString.h:
      * src/FrameLoaderClientImpl.cpp:
      * src/GraphicsContext3D.cpp:
      * src/WebCString.cpp:
      (WebKit::WebCString::assign):
      (WebKit::WebCString::WebCString):
      (WebKit::WebCString::operator=):
      (WebKit::WebCString::operator WTF::CString):
      * src/WebMediaPlayerClientImpl.cpp:
      * src/WebString.cpp:
      * src/WebURLError.cpp:
      
      WebKit/gtk: 
      
      * WebCoreSupport/ChromeClientGtk.cpp:
      * WebCoreSupport/ContextMenuClientGtk.cpp:
      * WebCoreSupport/EditorClientGtk.cpp:
      * WebCoreSupport/FrameLoaderClientGtk.cpp:
      * WebCoreSupport/InspectorClientGtk.cpp:
      * gdom/ConvertToGCharPrivate.h:
      * webkit/webkitdownload.cpp:
      * webkit/webkithittestresult.cpp:
      * webkit/webkitnetworkrequest.cpp:
      * webkit/webkitprivate.h:
      * webkit/webkitsecurityorigin.cpp:
      * webkit/webkitwebdatabase.cpp:
      * webkit/webkitwebframe.cpp:
      * webkit/webkitwebhistoryitem.cpp:
      (webkit_web_history_item_finalize):
      (webkit_web_history_item_get_target):
      * webkit/webkitwebresource.cpp:
      * webkit/webkitwebsettings.cpp:
      * webkit/webkitwebview.cpp:
      
      WebKit/mac: 
      
      * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
      (WebKit::NetscapePluginInstanceProxy::getCookies):
      (WebKit::NetscapePluginInstanceProxy::getProxy):
      (WebKit::NetscapePluginInstanceProxy::getAuthenticationInfo):
      (WebKit::NetscapePluginInstanceProxy::resolveURL):
      * Plugins/WebBaseNetscapePluginView.h:
      * Plugins/WebBaseNetscapePluginView.mm:
      * Plugins/WebNetscapePluginView.mm:
      (-[WebNetscapePluginView resolveURL:forTarget:]):
      
      WebKit/qt: 
      
      * Api/qwebelement.cpp:
      
      WebKit/win: 
      
      * WebDownload.cpp:
      * WebDownloadCFNet.cpp:
      * WebDownloadCurl.cpp:
      * WebHistoryItem.cpp:
      * WebLocalizableStrings.cpp:
      * WebMutableURLRequest.cpp:
      * WebPreferences.cpp:
      (WebPreferences::migrateWebKitPreferencesToCFPreferences):
      * WebView.cpp:
      
      WebKit/wx: 
      
      * WebFrame.cpp:
      * WebView.cpp:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@56825 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      00b7992e
  32. 02 Nov, 2009 1 commit
  33. 20 Aug, 2009 1 commit
    • levin@chromium.org's avatar
      WebCore: https://bugs.webkit.org/show_bug.cgi?id=24853: Provide a way for WebKit clients to · 234cc228
      levin@chromium.org authored
      specify a more granular policy for cross-origin XHR access.
      
      Patch by Aaron Boodman <aa@chromium.org> on 2009-08-19
      Reviewed by David Levin.
      
      Tests: http/tests/xmlhttprequest/origin-whitelisting-all.html
             http/tests/xmlhttprequest/origin-whitelisting-exact-match.html
             http/tests/xmlhttprequest/origin-whitelisting-https.html
             http/tests/xmlhttprequest/origin-whitelisting-ip-addresses-with-subdomains.html
             http/tests/xmlhttprequest/origin-whitelisting-ip-addresses.html
             http/tests/xmlhttprequest/origin-whitelisting-subdomains.html
      
      * WebCore.base.exp: Export methods to manipulate origin access whitelists to enable
      testing via layout tests.
      
      * WebCore.xcodeproj/project.pbxproj: Add OriginAccessEntry.*
      * GNUmakefile.am: Ditto.
      * WebCore.gypi: Ditto.
      * WebCore.pro: Ditto.
      * WebCore.vcproj/WebCore.vcproj: Ditto.
      * WebCoreSources.blk: Ditto.
      
      * page/SecurityOrigin.h: Implement origin access whitelists.
      (WebCore::originAccessMap): Static getter for access whitelists.
      (WebCore::SecurityOrigin::canRequest): Modify request checking logic to check whitelists.
      (WebCore::SecurityOrigin::whiteListAccessFromOrigin): Add an entry to a whitelist.
      (WebCore::SecurityOrigin::resetOriginAccessWhiteLists): Clear all the whitelists.
      
      * page/OriginAccessEntry.h: Added. An entry in an origin access whitelist.
      * page/OriginAccessEntry.cpp: Ditto.
      
      WebKit/gtk: https://bugs.webkit.org/show_bug.cgi?id=24853: Provide a way for WebKit clients to
      specify a more granular policy for cross-origin XHR access.
      
      Patch by Aaron Boodman <aa@chromium.org> on 2009-08-19
      Reviewed by David Levin.
      
      * webkit/webkitprivate.cpp:
      (webkit_white_list_access_to_origin): Add API to manipulate origin access whitelists.
      (webkit_reset_origin_access_white_lists): Ditto.
      * webkit/webkitprivate.h: Ditto.
      
      WebKit/mac: https://bugs.webkit.org/show_bug.cgi?id=24853: Provide a way for WebKit clients to
      specify a more granular policy for cross-origin XHR access.
      
      Patch by Aaron Boodman <aa@chromium.org> on 2009-08-19
      Reviewed by David Levin.
      
      * WebView/WebView.mm: Add SPI to manipulate origin access whitelists.
      (+[WebView _whiteListAccessFromOrigin:destinationProtocol:destinationHost:allowDestinationSubdomains:]): Ditto.
      (+[WebView _resetOriginAccessWhiteLists]): Ditto.
      * WebView/WebViewPrivate.h: Ditto.
      
      WebKit/qt: https://bugs.webkit.org/show_bug.cgi?id=24853: Provide a way for WebKit clients to
      specify a more granular policy for cross-origin XHR access.
      
      Patch by Aaron Boodman <aa@chromium.org> on 2009-08-19
      Reviewed by David Levin.
      
      * Api/qwebsecurityorigin.cpp: Add API to manipulate origin access whitelists.
      (QWebSecurityOrigin::whiteListAccessFromOrigin): Ditto.
      (QWebSecurityOrigin::resetOriginAccessWhiteLists): Ditto.
      * Api/qwebsecurityorigin.h: Ditto.
      
      WebKitTools: https://bugs.webkit.org/show_bug.cgi?id=24853: Provide a way for WebKit clients to
      specify a more granular policy for cross-origin XHR access.
      
      Patch by Aaron Boodman <aa@chromium.org> on 2009-08-19
      Reviewed by David Levin.
      
      * DumpRenderTree/LayoutTestController.cpp: Expose whiteListAccessFromOrigin() to layout tests.
      (whiteListAccessFromOriginCallback): Ditto.
      (LayoutTestController::staticFunctions): Ditto.
      * DumpRenderTree/LayoutTestController.h: Ditto.
      * DumpRenderTree/gtk/LayoutTestControllerGtk.cpp: Ditto.
      (LayoutTestController::whiteListAccessToOrigin): Ditto.
      * DumpRenderTree/mac/LayoutTestControllerMac.mm: Ditto.
      (LayoutTestController::whiteListAccessFromOrigin): Ditto.
      * DumpRenderTree/qt/jsobjects.cpp: Ditto.
      (LayoutTestController::whiteListAccessFromOrigin): Ditto.
      * DumpRenderTree/win/LayoutTestControllerWin.cpp: Stub out whiteListAccessFromOrigin().
      (LayoutTestController::whiteListAccessFromOrigin): Ditto.
      * DumpRenderTree/gtk/DumpRenderTree.cpp: Reset origin access lists before each test.
      (resetWebViewToConsistentStateBeforeTesting): Ditto.
      * DumpRenderTree/mac/DumpRenderTree.mm: Ditto.
      (resetWebViewToConsistentStateBeforeTesting): Ditto.
      * DumpRenderTree/qt/DumpRenderTree.cpp: Ditto.
      (WebCore::DumpRenderTree::resetToConsistentStateBeforeTesting): Ditto.
      
      LayoutTests: https://bugs.webkit.org/show_bug.cgi?id=24853: Provide a way for WebKit clients to
      specify a more granular policy for cross-origin XHR access.
      
      Patch by Aaron Boodman <aa@chromium.org> on 2009-08-19
      Reviewed by David Levin.
      
      * http/tests/xmlhttprequest/origin-whitelisting-all-expected.txt: Added.
      * http/tests/xmlhttprequest/origin-whitelisting-all.html: Added.
      * http/tests/xmlhttprequest/origin-whitelisting-exact-match-expected.txt: Added.
      * http/tests/xmlhttprequest/origin-whitelisting-exact-match.html: Added.
      * http/tests/xmlhttprequest/origin-whitelisting-https-expected.txt: Added.
      * http/tests/xmlhttprequest/origin-whitelisting-https.html: Added.
      * http/tests/xmlhttprequest/origin-whitelisting-ip-addresses-expected.txt: Added.
      * http/tests/xmlhttprequest/origin-whitelisting-ip-addresses-with-subdomains-expected.txt: Added.
      * http/tests/xmlhttprequest/origin-whitelisting-ip-addresses-with-subdomains.html: Added.
      * http/tests/xmlhttprequest/origin-whitelisting-ip-addresses.html: Added.
      * http/tests/xmlhttprequest/origin-whitelisting-subdomains-expected.txt: Added.
      * http/tests/xmlhttprequest/origin-whitelisting-subdomains.html: Added.
      * http/tests/xmlhttprequest/resources/origin-whitelisting-ip-address-test.html: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@47548 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      234cc228