Changeset 93654 in webkit


Ignore:
Timestamp:
Aug 23, 2011 4:22:19 PM (13 years ago)
Author:
commit-queue@webkit.org
Message:

https://bugs.webkit.org/show_bug.cgi?id=66751
[Chromium]WebWorkerClientImpl should always invoke
InspectorIntrumentation on main thread.
The fix moves calls to InspectorInstrumentation from
WebWorkerClientImpl to unedrlying WorkerMessagingProxy.

Patch by Dmitry Lomov <Dmitry Lomov (dslomov@google.com)> on 2011-08-23
Reviewed by Pavel Feldman.

Source/WebCore:

Covered by existing tests.

  • inspector/InstrumentingAgents.cpp:

(WebCore::instrumentationForPage):

  • workers/WorkerMessagingProxy.cpp:

(WebCore::WorkerMessagingProxy::workerContextDestroyedInternal):
(WebCore::WorkerMessagingProxy::terminateWorkerContext):

Source/WebKit/chromium:

  • src/WebWorkerClientImpl.cpp:

(WebKit::WebWorkerClientImpl::terminateWorkerContext):
(WebKit::WebWorkerClientImpl::workerContextDestroyed):

Location:
trunk/Source
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r93652 r93654  
     12011-08-23  Dmitry Lomov  <Dmitry Lomov (dslomov@google.com)>
     2
     3        https://bugs.webkit.org/show_bug.cgi?id=66751
     4        [Chromium]WebWorkerClientImpl should always invoke
     5        InspectorIntrumentation on main thread.
     6        The fix moves calls to InspectorInstrumentation from
     7        WebWorkerClientImpl to unedrlying WorkerMessagingProxy.
     8
     9        Reviewed by Pavel Feldman.
     10
     11        Covered by existing tests.
     12
     13        * inspector/InstrumentingAgents.cpp:
     14        (WebCore::instrumentationForPage):
     15        * workers/WorkerMessagingProxy.cpp:
     16        (WebCore::WorkerMessagingProxy::workerContextDestroyedInternal):
     17        (WebCore::WorkerMessagingProxy::terminateWorkerContext):
     18
    1192011-08-23  Misha Tyutyunik  <michael.tyutyunik@nokia.com>
    220
  • trunk/Source/WebCore/inspector/InstrumentingAgents.cpp

    r92677 r93654  
    4343InstrumentingAgents* instrumentationForPage(Page* page)
    4444{
     45    ASSERT(isMainThread());
    4546    if (InspectorController* controller = page->inspectorController())
    4647        return controller->m_instrumentingAgents.get();
  • trunk/Source/WebCore/workers/WorkerMessagingProxy.cpp

    r92068 r93654  
    3939#include "ErrorEvent.h"
    4040#include "ExceptionCode.h"
     41#include "InspectorInstrumentation.h"
    4142#include "MessageEvent.h"
    4243#include "ScriptCallStack.h"
     
    341342    m_askedToTerminate = true;
    342343    m_workerThread = 0;
     344
     345    InspectorInstrumentation::workerContextTerminated(m_scriptExecutionContext.get(), this);
     346
    343347    if (!m_workerObject)
    344348        delete this;
     
    353357    if (m_workerThread)
    354358        m_workerThread->stop();
     359
     360    InspectorInstrumentation::workerContextTerminated(m_scriptExecutionContext.get(), this);
    355361}
    356362
  • trunk/Source/WebKit/chromium/ChangeLog

    r93632 r93654  
     12011-08-23  Dmitry Lomov  <Dmitry Lomov (dslomov@google.com)>
     2
     3        https://bugs.webkit.org/show_bug.cgi?id=66751
     4        [Chromium]WebWorkerClientImpl should always invoke
     5        InspectorIntrumentation on main thread.
     6        The fix moves calls to InspectorInstrumentation from
     7        WebWorkerClientImpl to unedrlying WorkerMessagingProxy.
     8
     9        Reviewed by Pavel Feldman.
     10
     11        * src/WebWorkerClientImpl.cpp:
     12        (WebKit::WebWorkerClientImpl::terminateWorkerContext):
     13        (WebKit::WebWorkerClientImpl::workerContextDestroyed):
     14
    1152011-08-23  Adam Klein  <adamk@chromium.org>
    216
  • trunk/Source/WebKit/chromium/src/WebWorkerClientImpl.cpp

    r93330 r93654  
    4040#include "Frame.h"
    4141#include "FrameLoaderClient.h"
    42 #include "InspectorInstrumentation.h"
    4342#include "MessageEvent.h"
    4443#include "MessagePort.h"
     
    9796{
    9897    m_proxy->terminateWorkerContext();
    99     InspectorInstrumentation::workerContextTerminated(m_scriptExecutionContext.get(), this);
    10098}
    10199
     
    186184{
    187185    m_proxy->workerContextDestroyed();
    188     InspectorInstrumentation::workerContextTerminated(m_scriptExecutionContext.get(), this);
    189186}
    190187
Note: See TracChangeset for help on using the changeset viewer.